OpendTect-6_4  6.4
uistratlaymoddisp.h
Go to the documentation of this file.
1 #ifndef uistratlaymoddisp_h
2 #define uistratlaymoddisp_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Oct 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "flatview.h"
16 #include "uistratmod.h"
17 #include "uigroup.h"
18 #include "uistring.h"
19 
20 class PropertyRef;
21 class uiGraphicsScene;
23 class uiTextItem;
24 class uiFlatViewer;
25 namespace Strat { class LayerModel; class LayerModelProvider; class Layer; }
26 
33 mStruct(uiStrat) LMPropSpecificDispPars
34 {
35  LMPropSpecificDispPars( const char* nm=0 )
36  : propnm_(nm) {}
37  bool operator==( const LMPropSpecificDispPars& oth ) const
38  { return propnm_ == oth.propnm_; }
39 
40  ColTab::MapperSetup mapper_;
41  BufferString ctab_;
42  float overlap_;
43  BufferString propnm_;
44 };
45 
46 
49 public:
50 
54 
55  virtual void modelChanged() = 0;
56  virtual void reSetView() = 0;
57  void modelUpdate() { modelChanged(); reSetView(); }
58  virtual uiWorldRect zoomBox() const = 0;
59  virtual void setZoomBox(const uiWorldRect&) = 0;
60  virtual float getDisplayZSkip() const = 0;
61  uiGroup* getDisplayClone(uiParent*) const;
63  { return Interval<float>::udf(); }
64  virtual void reSetRelDepthZoneOfInterest() {}
65  virtual bool canSetDisplayProperties() const { return false; }
66  virtual void savePars() {}
67  virtual void retrievePars() {}
68 
69  const Strat::LayerModel& layerModel() const;
70  const TypeSet<float>& levelDepths() const { return lvldpths_; }
71  int selectedSequence() const { return selseqidx_; }
72  void selectSequence(int seqidx);
73 
74  uiFlatViewer* getViewer() { return &vwr_; }
75  bool isFlattened() const { return flattened_; }
76  void setFlattened(bool yn,bool trigger=true);
77  mDeprecated bool isFluidReplOn() const { return fluidreplon_; }
78  mDeprecated void setFluidReplOn(bool yn) { fluidreplon_= yn; }
79  mDeprecated bool isBrineFilled() const {return isbrinefilled_;}
80  mDeprecated void setBrineFilled(bool yn) { isbrinefilled_= yn; }
81  void displayFRText(bool yn,bool isbrine);
82 
83  float getLayerPropValue(const Strat::Layer&,
84  const PropertyRef*,int) const;
85  bool setPropDispPars(const LMPropSpecificDispPars&);
86  bool getCurPropDispPars(LMPropSpecificDispPars&) const;
87  void clearDispPars() { lmdisppars_.erase(); }
88 
95 
96 protected:
97 
105  /*mDeprecated*/ bool fluidreplon_;
106  /*mDeprecated*/ bool isbrinefilled_;
110 
111  bool haveAnyZoom() const;
112  uiGraphicsScene& scene() const;
113  mDeprecated void displayFRText();
114  virtual void drawSelectedSequence() = 0;
115 
116  int getClickedModelNr() const;
117  void mouseMoved(CallBacker*);
118  void updateTextPosCB(CallBacker*);
119  void doubleClicked(CallBacker*);
120  void usrClicked(CallBacker*);
121  virtual void selPropChgCB(CallBacker*) = 0;
122  virtual void dispLithChgCB(CallBacker*) = 0;
123  virtual void selContentChgCB(CallBacker*) = 0;
124  virtual void selLevelChgCB(CallBacker*) = 0;
125  virtual void dispEachChgCB(CallBacker*) = 0;
126  virtual void dispZoomedChgCB(CallBacker*) = 0;
127  bool doLayerModelIO(bool);
128  virtual void doLevelChg() = 0;
129  virtual void handleClick(bool dble) = 0;
131 
132 };
133 
134 
135 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
CNotifier< uiStratLayerModelDisp, IOPar > infoChanged
Definition: uistratlaymoddisp.h:93
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
mDeprecated void setFluidReplOn(bool yn)
Definition: uistratlaymoddisp.h:78
Notifier< uiStratLayerModelDisp > dispPropChanged
Definition: uistratlaymoddisp.h:94
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
bool fluidreplon_
Definition: uistratlaymoddisp.h:105
TypeSet< LMPropSpecificDispPars > lmdisppars_
Definition: uistratlaymoddisp.h:108
#define mStruct(module)
Definition: commondefs.h:165
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
bool isbrinefilled_
Definition: uistratlaymoddisp.h:106
virtual Interval< float > relDepthZoneOfInterest() const
Definition: uistratlaymoddisp.h:62
Ref Data for a (usually petrophysical) property.
Definition: propertyref.h:42
virtual void retrievePars()
Definition: uistratlaymoddisp.h:67
data for a layer.
Definition: stratlayer.h:41
Definition: uiparent.h:26
static Interval< T > udf()
Definition: ranges.h:127
mDeprecated bool isFluidReplOn() const
Definition: uistratlaymoddisp.h:77
uiFlatViewer & vwr_
Definition: uistratlaymoddisp.h:98
uiStratLayModEditTools & tools_
Definition: uistratlaymoddisp.h:100
bool isFlattened() const
Definition: uistratlaymoddisp.h:75
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Interval< float > zrg_
Definition: uistratlaymoddisp.h:103
IOPar dumppars_
Definition: uistratlaymoddisp.h:109
virtual bool canSetDisplayProperties() const
Definition: uistratlaymoddisp.h:65
TypeSet< float > lvldpths_
Definition: uistratlaymoddisp.h:107
const TypeSet< float > & levelDepths() const
Definition: uistratlaymoddisp.h:70
uiFlatViewer * getViewer()
Definition: uistratlaymoddisp.h:74
Definition: stratlayermodel.h:84
Setup class for colortable Mapper.
Definition: coltabmapper.h:35
void modelUpdate()
Definition: uistratlaymoddisp.h:57
Notifier< uiStratLayerModelDisp > modelEdited
Definition: uistratlaymoddisp.h:92
Notifier< uiStratLayerModelDisp > rangeChanged
Definition: uistratlaymoddisp.h:91
Stratigraphy.
Definition: stratlevel.h:26
Notifier< uiStratLayerModelDisp > genNewModelNeeded
Definition: uistratlaymoddisp.h:90
#define mDeprecated
Definition: plfdefs.h:233
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
bool flattened_
Definition: uistratlaymoddisp.h:104
virtual void savePars()
Definition: uistratlaymoddisp.h:66
const Strat::LayerModelProvider & lmp_
Definition: uistratlaymoddisp.h:99
mDeprecated bool isBrineFilled() const
Definition: uistratlaymoddisp.h:79
int selseqidx_
Definition: uistratlaymoddisp.h:102
Definition: uigraphicsitemimpl.h:273
uiTextItem * frtxtitm_
Definition: uistratlaymoddisp.h:101
Notifier< uiStratLayerModelDisp > sequenceSelected
Definition: uistratlaymoddisp.h:89
A model consisting of layer sequences.
Definition: stratlayermodel.h:36
void clearDispPars()
Definition: uistratlaymoddisp.h:87
Definition: uistratlaymoddisp.h:47
Fulfills the FlatView::Viewer specifications using &#39;ui&#39; classes.
Definition: uiflatviewer.h:33
int selectedSequence() const
Definition: uistratlaymoddisp.h:71
mDeprecated void setBrineFilled(bool yn)
Definition: uistratlaymoddisp.h:80
Definition: uistratlaymodtools.h:63
virtual void reSetRelDepthZoneOfInterest()
Definition: uistratlaymoddisp.h:64
Definition: uigraphicsscene.h:39

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