Public Types | Public Member Functions | Protected Attributes

FlatView::ZoomMgr Class Reference

Manages zoom factors. Will always provide a new zoom when forward() called, using fwdFac(). For back, will stop at initial. More...

List of all members.

Public Types

typedef Geom::Size2D< double > Size
typedef Geom::Point2D< double > Point

Public Member Functions

 ZoomMgr ()
void init (const Geom::Rectangle< double > &)
void reInit (const Geom::Rectangle< double > &)
 Will try to keep as many zooms as possible.
void add (Size)
Size current () const
Size back () const
 never past initial zoom
Size forward () const
 goes on and on
bool atStart () const
Size toStart () const
int nrZooms () const
Size initialSize () const
double fwdFac () const
void setFwdFac (double fac)
Point initialCenter () const

Protected Attributes

int cur_
TypeSet< Sizezooms_
Point center_
double fwdfac_

Detailed Description

Manages zoom factors. Will always provide a new zoom when forward() called, using fwdFac(). For back, will stop at initial.


Member Typedef Documentation


Constructor & Destructor Documentation

FlatView::ZoomMgr::ZoomMgr (  )  [inline]

Member Function Documentation

void FlatView::ZoomMgr::add ( Size   ) 

Will put this Size at the right place and make it current will remove zooms larger than this one

bool FlatView::ZoomMgr::atStart (  )  const [inline]
Size FlatView::ZoomMgr::back (  )  const

never past initial zoom

Size FlatView::ZoomMgr::current (  )  const
Size FlatView::ZoomMgr::forward (  )  const

goes on and on

double FlatView::ZoomMgr::fwdFac (  )  const [inline]
void FlatView::ZoomMgr::init ( const Geom::Rectangle< double > &   ) 
Point FlatView::ZoomMgr::initialCenter (  )  const [inline]
Size FlatView::ZoomMgr::initialSize (  )  const [inline]
int FlatView::ZoomMgr::nrZooms (  )  const [inline]
void FlatView::ZoomMgr::reInit ( const Geom::Rectangle< double > &   ) 

Will try to keep as many zooms as possible.

void FlatView::ZoomMgr::setFwdFac ( double  fac  )  [inline]
Size FlatView::ZoomMgr::toStart (  )  const

Member Data Documentation

int FlatView::ZoomMgr::cur_ [mutable, protected]
double FlatView::ZoomMgr::fwdfac_ [protected]