OpendTect-6_4  6.4
flatviewzoommgr.h
Go to the documentation of this file.
1 #ifndef flatviewzoommgr_h
2 #define flatviewzoommgr_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bert
8  Date: Feb 2007
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uiflatviewmod.h"
15 #include "geometry.h"
16 #include "sets.h"
17 
18 namespace FlatView
19 {
20 
26 mExpClass(uiFlatView) ZoomMgr
27 {
28 public:
29 
32 
33 
34  ZoomMgr();
35  ~ZoomMgr();
36 
37  void setNrViewers(int);
38 
39  void init(const Geom::PosRectangle<double>&);
40  void reInit(const Geom::PosRectangle<double>&);
42 
44  void reInit(const TypeSet<Geom::PosRectangle<double> >&);
45 
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;
76 
77  double fwdFac() const { return fwdfac_; }
78  void setFwdFac(double fac);
81 
82 protected:
83 
85 
87  {
89  Point center_;
90  };
91 
93 
94  double fwdfac_;
95 
96 };
97 
98 } // namespace FlatView
99 
100 
101 #endif
TypeSet< int > current_
Definition: flatviewzoommgr.h:84
#define mExpClass(module)
Definition: commondefs.h:160
double fwdfac_
Definition: flatviewzoommgr.h:94
bool init()
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

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019