OpendTect  6.6
flatviewzoommgr.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3 ________________________________________________________________________
4 
5  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
6  Author: Bert
7  Date: Feb 2007
8  RCS: $Id$
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uiflatviewmod.h"
14 #include "geometry.h"
15 #include "sets.h"
16 
17 namespace FlatView
18 {
19 
25 mExpClass(uiFlatView) ZoomMgr
26 {
27 public:
28 
31 
32 
35 
36  void setNrViewers(int);
37 
41 
44 
45  void add(Size,int vieweridx=0);
49  Size current(int vieweridx=0) const;
50  Size back(int vieweridx,bool onlyvertical,
51  bool usefwdfac) const;
57  Size forward(int vieweridx,bool onlyvertical,
58  bool usefwdfac) const;
65  bool atStart(int vieweridx=-1) const;
68  void toStart(int vieweridx=-1) const;
72  int nrZooms(int vieweridx=0) const;
73  Size initialSize(int vieweridx=0) const;
74  Point initialCenter(int vieweridx=0) const;
75 
76  double fwdFac() const { return fwdfac_; }
77  void setFwdFac(double fac);
80 
81 protected:
82 
84 
86  {
89  };
90 
92 
93  double fwdfac_;
94 
95 };
96 
97 } // namespace FlatView
98 
99 
FlatView::ZoomMgr::atStart
bool atStart(int vieweridx=-1) const
FlatView::ZoomMgr::initialSize
Size initialSize(int vieweridx=0) const
FlatView::ZoomMgr::reInit
void reInit(const TypeSet< Geom::PosRectangle< double > > &)
geometry.h
ObjectSet
Set of pointers to objects.
Definition: commontypes.h:31
FlatView::ZoomMgr::~ZoomMgr
~ZoomMgr()
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
FlatView::ZoomMgr::viewerdata_
ObjectSet< ViewerZoomData > viewerdata_
Definition: flatviewzoommgr.h:91
FlatView::ZoomMgr::initialCenter
Point initialCenter(int vieweridx=0) const
FlatView
Definition: bitmap2rgb.h:17
FlatView::ZoomMgr::ViewerZoomData::center_
Point center_
Definition: flatviewzoommgr.h:88
Geom::PosRectangle< double >
FlatView::ZoomMgr::nrZooms
int nrZooms(int vieweridx=0) const
FlatView::ZoomMgr::setFwdFac
void setFwdFac(double fac)
FlatView::ZoomMgr::add
void add(Size, int vieweridx=0)
FlatView::ZoomMgr::setNrViewers
void setNrViewers(int)
FlatView::ZoomMgr::toStart
void toStart(int vieweridx=-1) const
FlatView::ZoomMgr::back
Size back(int vieweridx, bool onlyvertical, bool usefwdfac) const
FlatView::ZoomMgr::init
void init(const TypeSet< Geom::PosRectangle< double > > &)
Geom::Point2D< double >
FlatView::ZoomMgr::Point
Geom::Point2D< double > Point
Definition: flatviewzoommgr.h:30
FlatView::ZoomMgr::ZoomMgr
ZoomMgr()
FlatView::ZoomMgr::fwdFac
double fwdFac() const
Definition: flatviewzoommgr.h:76
Geom::Size2D
Basic 2D sizes (width/height) class.
Definition: geometry.h:81
FlatView::ZoomMgr::Size
Geom::Size2D< double > Size
Definition: flatviewzoommgr.h:29
FlatView::ZoomMgr::fwdfac_
double fwdfac_
Definition: flatviewzoommgr.h:93
FlatView::ZoomMgr::current
Size current(int vieweridx=0) const
FlatView::ZoomMgr::ViewerZoomData
Definition: flatviewzoommgr.h:86
FlatView::ZoomMgr::init
void init(const Geom::PosRectangle< double > &)
FlatView::ZoomMgr::ViewerZoomData::zooms_
TypeSet< Size > zooms_
Definition: flatviewzoommgr.h:87
sets.h
FlatView::ZoomMgr::reInit
void reInit(const Geom::PosRectangle< double > &)
Will try to keep as many zooms as possible.
FlatView::ZoomMgr::current_
TypeSet< int > current_
Definition: flatviewzoommgr.h:83
FlatView::ZoomMgr
Manages zoom factors. Will always provide a new zoom when forward() called, using fwdFac()....
Definition: flatviewzoommgr.h:26
FlatView::ZoomMgr::forward
Size forward(int vieweridx, bool onlyvertical, bool usefwdfac) const
TypeSet
Sets of (small) copyable elements.
Definition: commontypes.h:29

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