OpendTect-6_4  6.4
uipsviewer2d.h
Go to the documentation of this file.
1 #ifndef uiprestackviewer2d_h
2 #define uiprestackviewer2d_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bruno
8  Date: Feb 2011
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uiprestackprocessingmod.h"
15 #include "position.h"
16 #include "uiobjectitemview.h"
17 #include "uigroup.h"
18 
19 class uiFlatViewer;
20 
21 namespace PreStackView
22 {
23  class Viewer2DGatherPainter;
24  class uiViewer2DAxisPainter;
25 
31 mExpClass(uiPreStackProcessing) uiGatherDisplay : public uiGroup
32 {
33 public:
35  ~uiGatherDisplay();
36 
37  virtual void setPosition(const BinID&,
38  const Interval<double>* zrg=0);
39  void setVDGather(int);
40  void setWVAGather(int);
41 
42  void displayAnnotation(bool yn);
43  bool displaysAnnotation() const;
44 
45  void setFixedOffsetRange(bool yn,
46  const Interval<float>&);
47  bool getFixedOffsetRange() const;
48  const Interval<float>& getOffsetRange() const;
49  const Interval<double>* getZRange() const { return zrg_; }
50  const Interval<float>& getZDataRange() const { return zdatarange_; }
51 
52  uiFlatViewer* getUiFlatViewer() { return viewer_; }
53  BinID getBinID() const;
54 
55  void setInitialSize(const uiSize&);
56  void setWidth(int);
57  void updateViewRange();
58 
59 protected:
60 
63 
70 
71  void updateViewRange(const uiWorldRect&);
72 };
73 
74 
75 
76 mExpClass(uiPreStackProcessing) uiViewer2D : public uiObjectItemView
77 {
78 public:
80  ~uiViewer2D();
81 
82  uiGatherDisplay* addGatherDisplay(int vdid, int wvaid=-1);
83  void addGatherDisplay(uiGatherDisplay*);
84  void removeGatherDisplay(const uiGatherDisplay*);
85  uiGatherDisplay& getGatherDisplay(int idx);
86  uiGatherDisplay* getGatherDisplay(const BinID&);
87  void removeAllGatherDisplays();
88  void enableScrollBars(bool);
89  void enableReSizeDraw(bool);
90  void doReSize(const uiSize&);
91  void doReSize() { reSized(0); }
92 
93  protected:
94 
96  void reSized(CallBacker*);
97 };
98 
99 
100 }; //namespace
101 
102 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
uiFlatViewer * viewer_
Definition: uipsviewer2d.h:61
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Interval< float > offsetrange_
Definition: uipsviewer2d.h:65
Interval< double > * zrg_
Definition: uipsviewer2d.h:67
Embeds some uiObjects in a uiGraphicsView following a horizontal layout. Objects can be dynamically r...
Definition: uiobjectitemview.h:27
Gather display.
Definition: psviewer2dgatherpainter.h:27
Displays multiple PreStack Gathers side by side with dynamic redraw possibility.
Definition: uipsviewer2d.h:31
Definition: uiparent.h:26
Definition: uigeom.h:25
const Interval< float > & getZDataRange() const
Definition: uipsviewer2d.h:50
void doReSize()
Definition: uipsviewer2d.h:91
Definition: psviewer2dgatherpainter.h:30
Viewer2DGatherPainter * gatherpainter_
Definition: uipsviewer2d.h:62
const Interval< double > * getZRange() const
Definition: uipsviewer2d.h:49
Interval< float > zdatarange_
Definition: uipsviewer2d.h:66
bool resizedraw_
Definition: uipsviewer2d.h:95
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
uiFlatViewer * getUiFlatViewer()
Definition: uipsviewer2d.h:52
bool fixedoffset_
Definition: uipsviewer2d.h:64
BinID bid_
Definition: uipsviewer2d.h:68
Definition: uipsviewer2d.h:76
bool displayannotation_
Definition: uipsviewer2d.h:69
Fulfills the FlatView::Viewer specifications using &#39;ui&#39; classes.
Definition: uiflatviewer.h:33

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