1 #ifndef flatviewzoommgr_h 2 #define flatviewzoommgr_h 14 #include "uiflatviewmod.h" 37 void setNrViewers(
int);
46 void add(Size,
int vieweridx=0);
50 Size current(
int vieweridx=0)
const;
51 Size back(
int vieweridx,
bool onlyvertical,
52 bool usefwdfac)
const;
58 Size forward(
int vieweridx,
bool onlyvertical,
59 bool usefwdfac)
const;
66 bool atStart(
int vieweridx=-1)
const;
69 void toStart(
int vieweridx=-1)
const;
73 int nrZooms(
int vieweridx=0)
const;
74 Size initialSize(
int vieweridx=0)
const;
75 Point initialCenter(
int vieweridx=0)
const;
77 double fwdFac()
const {
return fwdfac_; }
78 void setFwdFac(
double fac);
TypeSet< int > current_
Definition: flatviewzoommgr.h:84
#define mExpClass(module)
Definition: commondefs.h:160
double fwdfac_
Definition: flatviewzoommgr.h:94
Geom::Point2D< double > Point
Definition: flatviewzoommgr.h:31
Geom::Size2D< double > Size
Definition: flatviewzoommgr.h:30
Point center_
Definition: flatviewzoommgr.h:89
Basic 2D sizes (width/height) class.
Definition: geometry.h:76
Set of pointers to objects.
Definition: commontypes.h:32
Set of (small) copyable elements.
Definition: commontypes.h:30
TypeSet< Size > zooms_
Definition: flatviewzoommgr.h:88
ObjectSet< ViewerZoomData > viewerdata_
Definition: flatviewzoommgr.h:92
Manages zoom factors. Will always provide a new zoom when forward() called, using fwdFac()...
Definition: flatviewzoommgr.h:26
double fwdFac() const
Definition: flatviewzoommgr.h:77
Definition: flatviewzoommgr.h:86
Definition: bitmap2rgb.h:18