OpendTect-6_4  6.4
uimultiflatviewcontrol.h
Go to the documentation of this file.
1 #ifndef uimultiflatviewcontrol_h
2 #define uimultiflatviewcontrol_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bruno
8  Date: Feb 2012
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uiflatviewmod.h"
15 #include "uiflatviewstdcontrol.h"
16 #include "flatview.h"
17 #include "velocitycalc.h"
18 
24 {
25 public:
27  : isflattened_(false) {};
28  ~MFVCViewManager();
29  void setD2TModels(const ObjectSet<const TimeDepthModel>&);
30  void setViewerType(const uiFlatViewer* vwr,bool isintime);
31  bool getViewRect(const uiFlatViewer* activevwr,
32  const uiFlatViewer* curvwr,
33  uiWorldRect&) const;
34  void setFlattened( bool flattened )
35  { isflattened_ = flattened; }
36  bool isFlattened() const { return isflattened_; }
37 protected:
42 };
43 
44 
47 public:
50 
51  void setNewView(Geom::Point2D<double> mousepos,
53  uiFlatViewer* vwr=0);
54 
55  uiToolBar* getToolBar(int idx) { return toolbars_[idx]; }
56 
57  uiFlatViewer* activeVwr() const { return activevwr_; }
58  bool setActiveVwr(int vwridx);
59 
60  void setZoomCoupled( bool yn ) { iszoomcoupled_ = yn; }
61  void setDrawZoomBoxes( bool yn ) { drawzoomboxes_ = yn; }
62  void setViewerType( const uiFlatViewer* vwr, bool isintime )
63  { viewmgr_.setViewerType( vwr, isintime ); }
65  { viewmgr_.setD2TModels( d2t ); }
66  void setFlattened( bool flattened )
67  { viewmgr_.setFlattened( flattened ); }
68 
69  uiToolButton* parsButton(const uiFlatViewer*);
70 
71 protected:
72 
77 
78  bool handleUserClick(int vwridx);
81 
83  void updateZoomManager();
85 
86  void rubBandCB(CallBacker*);
87  void parsCB(CallBacker*);
88  void setZoomAreasCB(CallBacker*);
89  void setZoomBoxesCB(CallBacker*);
90  void vwrAdded(CallBacker*);
91  void zoomCB(CallBacker*);
92  void wheelMoveCB(CallBacker*);
93  void pinchZoomCB(CallBacker*);
94 };
95 
96 #endif
Definition: uitoolbar.h:31
#define mExpClass(module)
Definition: commondefs.h:160
int size() const
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
void setZoomCoupled(bool yn)
Definition: uimultiflatviewcontrol.h:60
ObjectSet< uiToolBar > toolbars_
Definition: uimultiflatviewcontrol.h:73
MFVCViewManager viewmgr_
Definition: uimultiflatviewcontrol.h:76
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
MFVCViewManager()
Definition: uimultiflatviewcontrol.h:26
void setDrawZoomBoxes(bool yn)
Definition: uimultiflatviewcontrol.h:61
uiFlatViewer * activevwr_
Definition: uimultiflatviewcontrol.h:82
uiToolBar * getToolBar(int idx)
Definition: uimultiflatviewcontrol.h:55
ObjectSet< FlatView::AuxData > zoomboxes_
Definition: uimultiflatviewcontrol.h:75
bool iszoomcoupled_
Definition: uimultiflatviewcontrol.h:79
Basic 2D sizes (width/height) class.
Definition: geometry.h:76
void setFlattened(bool flattened)
Definition: uimultiflatviewcontrol.h:34
void setD2TModels(const ObjectSet< const TimeDepthModel > &d2t)
Definition: uimultiflatviewcontrol.h:64
ObjectSet< const TimeDepthModel > d2tmodels_
Definition: uimultiflatviewcontrol.h:39
uiFlatViewer * activeVwr() const
Definition: uimultiflatviewcontrol.h:57
The standard tools to control uiFlatViewer(s).
Definition: uiflatviewstdcontrol.h:54
bool isFlattened() const
Definition: uimultiflatviewcontrol.h:36
bool drawzoomboxes_
Definition: uimultiflatviewcontrol.h:80
void setFlattened(bool flattened)
Definition: uimultiflatviewcontrol.h:66
void setViewerType(const uiFlatViewer *vwr, bool isintime)
Definition: uimultiflatviewcontrol.h:62
bool isflattened_
Definition: uimultiflatviewcontrol.h:41
A control for flatviewers with different zoom properties and settings.
Definition: uimultiflatviewcontrol.h:23
Definition: uitoolbutton.h:22
Definition: uimultiflatviewcontrol.h:45
BoolTypeSet zintimeflags_
Definition: uimultiflatviewcontrol.h:38
ObjectSet< const uiFlatViewer > vwrs_
Definition: uimultiflatviewcontrol.h:40
Fulfills the FlatView::Viewer specifications using &#39;ui&#39; classes.
Definition: uiflatviewer.h:33
Definition: uiflatviewstdcontrol.h:58
ObjectSet< uiToolButton > parsbuts_
Definition: uimultiflatviewcontrol.h:74

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