OpendTect  6.3
uipsviewer2d.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: Bruno
7  Date: Feb 2011
8 ________________________________________________________________________
9 
10 -*/
11 
12 #include "uiprestackprocessingmod.h"
13 #include "position.h"
14 #include "datapack.h"
15 #include "uiobjectitemview.h"
16 #include "uigroup.h"
17 
18 class uiFlatViewer;
19 
20 namespace PreStackView
21 {
22  class Viewer2DGatherPainter;
23  class uiViewer2DAxisPainter;
24 
30 mExpClass(uiPreStackProcessing) uiGatherDisplay : public uiGroup
31 {
32 public:
34  ~uiGatherDisplay();
35 
36  virtual void setPosition(const BinID&,
37  const Interval<double>* zrg=0);
38  void setVDGather(DataPack::ID);
39  void setWVAGather(DataPack::ID);
40 
41  void displayAnnotation(bool yn);
42  bool displaysAnnotation() const;
43 
44  void setFixedOffsetRange(bool yn,
45  const Interval<float>&);
46  bool getFixedOffsetRange() const;
47  const Interval<float>& getOffsetRange() const;
48  const Interval<double>* getZRange() const { return zrg_; }
49  const Interval<float>& getZDataRange() const { return zdatarange_; }
50 
51  uiFlatViewer* getUiFlatViewer() { return viewer_; }
52  BinID getBinID() const;
53 
54  void setInitialSize(const uiSize&);
55  void setWidth(int);
56  void updateViewRange();
57 
58 protected:
59 
62 
69 
70  void updateViewRange(const uiWorldRect&);
71 };
72 
73 
74 
75 mExpClass(uiPreStackProcessing) uiViewer2D : public uiObjectItemView
76 {
77 public:
79  ~uiViewer2D();
80 
81  uiGatherDisplay* addGatherDisplay(DataPack::ID vdid,
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
Definition: uigroup.h:53
#define mExpClass(module)
Definition: commondefs.h:157
uiFlatViewer * viewer_
Definition: uipsviewer2d.h:60
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
Interval< float > offsetrange_
Definition: uipsviewer2d.h:64
Interval< double > * zrg_
Definition: uipsviewer2d.h:66
Embeds some uiObjects in a uiGraphicsView following a horizontal layout. Objects can be dynamically r...
Definition: uiobjectitemview.h:26
Gather display.
Definition: psviewer2dgatherpainter.h:25
Displays multiple PreStack Gathers side by side with dynamic redraw possibility.
Definition: uipsviewer2d.h:30
Definition: uiparent.h:24
Definition: uigeom.h:23
const Interval< float > & getZDataRange() const
Definition: uipsviewer2d.h:49
static ObjID getInvalid()
Definition: groupedid.h:41
void doReSize()
Definition: uipsviewer2d.h:91
Definition: psviewer2dgatherpainter.h:28
Viewer2DGatherPainter * gatherpainter_
Definition: uipsviewer2d.h:61
const Interval< double > * getZRange() const
Definition: uipsviewer2d.h:48
Interval< float > zdatarange_
Definition: uipsviewer2d.h:65
bool resizedraw_
Definition: uipsviewer2d.h:95
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:28
uiFlatViewer * getUiFlatViewer()
Definition: uipsviewer2d.h:51
bool fixedoffset_
Definition: uipsviewer2d.h:63
Definition: groupedid.h:41
BinID bid_
Definition: uipsviewer2d.h:67
Definition: uipsviewer2d.h:75
bool displayannotation_
Definition: uipsviewer2d.h:68
Fulfills the FlatView::Viewer specifications using &#39;ui&#39; classes.
Definition: uiflatviewer.h:31

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