OpendTect-6_4  6.4
uistratlaymodtools.h
Go to the documentation of this file.
1 #ifndef uistratlaymodtools_h
2 #define uistratlaymodtools_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Jan 2012
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uistratmod.h"
16 #include "uidialog.h"
17 #include "uigroup.h"
18 #include "uistring.h"
19 
20 class uiComboBox;
21 class uiLabel;
22 class uiSpinBox;
23 class uiToolButton;
24 namespace Strat { class Level; }
25 
26 
29 public:
30 
32 
33  int nrModels() const;
34  void setNrModels(int);
35  void enableSave(bool);
36 
42 
43  int getNrModelsFromPar(const IOPar&) const;
44  void fillPar(IOPar&) const;
45  bool usePar(const IOPar&);
46 
47 protected:
48 
49  static const char* sKeyNrModels();
50 
53 
54  void openCB(CallBacker*) { openReq.trigger(); }
55  void saveCB(CallBacker*) { saveReq.trigger(); }
56  void propEdCB(CallBacker*) { propEdReq.trigger(); }
57  void genCB(CallBacker*) { genReq.trigger(); }
58  void nrModelsChangedCB(CallBacker*);
59 
60 };
61 
62 
65 public:
66 
68 
69  void setProps(const BufferStringSet&);
70  void setLevelNames(const BufferStringSet&);
71  void setContentNames(const BufferStringSet&);
72 
73  const char* selProp() const;
74  const char* selLevel() const;
75  const char* selContent() const;
76  int dispEach() const;
77  bool dispZoomed() const;
78  bool dispLith() const;
79  bool showFlattened() const;
80  bool mkSynthetics() const;
81 
82  void setSelProp(const char*);
83  void setSelLevel(const char*);
84  void setSelContent(const char*);
85  void setDispEach(int);
86  void setDispZoomed(bool);
87  void setDispLith(bool);
88  void setShowFlattened(bool);
89  void setMkSynthetics(bool);
90  void setFlatTBSensitive(bool);
91 
92  void setNoDispEachFld();
93 
102 
103  int selPropIdx() const;
104  int selLevelIdx() const;
105  const Strat::Level* selStratLevel() const;
106  Color selLevelColor() const;
107 
108  uiToolButton* lithButton() { return lithtb_; }
109  uiToolButton* zoomButton() { return zoomtb_; }
110 
111  void fillPar(IOPar&) const;
112  bool usePar(const IOPar&);
113 
115 
116 protected:
117 
118  static const char* sKeyDisplayedProp();
119  static const char* sKeyDecimation();
120  static const char* sKeySelectedLevel();
121  static const char* sKeySelectedContent();
122  static const char* sKeyZoomToggle();
123  static const char* sKeyDispLith();
124  static const char* sKeyShowFlattened();
125 
135 
136  void selPropCB( CallBacker* ) { selPropChg.trigger(); }
137  void selLevelCB( CallBacker* ) { selLevelChg.trigger(); }
138  void selContentCB( CallBacker* ) { selContentChg.trigger(); }
139  void dispEachCB( CallBacker* ) { dispEachChg.trigger(); }
140  void dispZoomedCB( CallBacker* ) { dispZoomedChg.trigger(); }
141  void dispLithCB( CallBacker* ) { dispLithChg.trigger(); }
142  void showFlatCB( CallBacker* ) { flattenChg.trigger(); }
143  void mkSynthCB( CallBacker* ) { mkSynthChg.trigger(); }
144 
145 };
146 
147 
149 
152 public:
153 
154  mExpClass(uiStrat) Setup
155  {
156  public:
157  Setup(bool needswave=true,bool needpor=true,
158  bool needinitsat=true,bool needfinalsat=true)
159  : withswave_(needswave)
160  , withpor_(needpor)
161  , withinitsat_(needinitsat)
162  , withfinalsat_(needfinalsat)
163  {}
164  mDefSetupMemb(bool,withswave)
165  mDefSetupMemb(bool,withpor)
166  mDefSetupMemb(bool,withinitsat)
167  mDefSetupMemb(bool,withfinalsat)
168  };
169 
171  const PropertyRefSelection&,
172  const Setup&);
173 
174  void setDenProp(const char*);
175  void setVPProp(const char*);
176  void setVSProp(const char*);
177  void setPorProp(const char*);
178  void setInitialSatProp(const char*);
179  void setFinalSatProp(const char*);
180 
181  bool needsDisplay() const;
182  bool isOK() const;
183  const char* getSelVPName() const;
184  const char* getSelVSName() const;
185  const char* getSelDenName() const;
186  const char* getSelInitialSatName() const;
187  const char* getSelFinalSatName() const;
188  const char* getSelPorName() const;
189 
190  const uiString& errMsg() const { return errmsg_; }
191 
192 protected:
193 
194  virtual bool acceptOK(CallBacker*);
195 
202  mutable uiString errmsg_;
203 
204 };
205 
206 
207 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
description of properties of dialog.
Definition: uidialog.h:51
Notifier< uiStratLayModEditTools > mkSynthChg
Definition: uistratlaymodtools.h:101
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: propertyref.h:176
FixedString Setup()
Definition: keystrs.h:116
uiToolButton * zoomButton()
Definition: uistratlaymodtools.h:109
void selLevelCB(CallBacker *)
Definition: uistratlaymodtools.h:137
Notifier< uiStratGenDescTools > saveReq
Definition: uistratlaymodtools.h:38
FixedString Level()
Definition: keystrs.h:78
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiToolButton * savetb_
Definition: uistratlaymodtools.h:52
Notifier< uiStratGenDescTools > nrModelsChanged
Definition: uistratlaymodtools.h:41
Definition: uistratlaymodtools.h:150
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
uiComboBox * porosityfld_
Definition: uistratlaymodtools.h:201
void dispZoomedCB(CallBacker *)
Definition: uistratlaymodtools.h:140
uiComboBox * propfld_
Definition: uistratlaymodtools.h:126
uiComboBox * finalsatfld_
Definition: uistratlaymodtools.h:200
Notifier< uiStratLayModEditTools > selContentChg
Definition: uistratlaymodtools.h:96
uiComboBox * contfld_
Definition: uistratlaymodtools.h:128
Notifier< uiStratLayModEditTools > selPropChg
Definition: uistratlaymodtools.h:94
Combo box.
Definition: uicombobox.h:32
Definition: uistring.h:89
uiComboBox * denfld_
Definition: uistratlaymodtools.h:198
Definition: uiparent.h:26
Set of BufferString objects.
Definition: bufstringset.h:28
Definition: uidialog.h:42
uiComboBox * lvlfld_
Definition: uistratlaymodtools.h:127
uiString errmsg_
Definition: uistratlaymodtools.h:202
Stratigraphic level.
Definition: stratlevel.h:42
uiSpinBox * nrmodlsfld_
Definition: uistratlaymodtools.h:51
uiToolButton * flattenedtb_
Definition: uistratlaymodtools.h:133
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
void selContentCB(CallBacker *)
Definition: uistratlaymodtools.h:138
uiComboBox * initialsatfld_
Definition: uistratlaymodtools.h:199
Notifier< uiStratLayModEditTools > selLevelChg
Definition: uistratlaymodtools.h:95
void showFlatCB(CallBacker *)
Definition: uistratlaymodtools.h:142
uiLabel * eachlbl_
Definition: uistratlaymodtools.h:130
void dispLithCB(CallBacker *)
Definition: uistratlaymodtools.h:141
Notifier< uiStratGenDescTools > propEdReq
Definition: uistratlaymodtools.h:39
Notifier< uiStratLayModEditTools > flattenChg
Definition: uistratlaymodtools.h:100
Notifier< uiStratLayModEditTools > dispEachChg
Definition: uistratlaymodtools.h:97
Notifier< uiStratLayModEditTools > dispZoomedChg
Definition: uistratlaymodtools.h:98
void trigger(T &t)
Definition: callback.h:258
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
uiToolButton * mksynthtb_
Definition: uistratlaymodtools.h:134
Notifier< uiStratLayModEditTools > dispLithChg
Definition: uistratlaymodtools.h:99
Definition: uispinbox.h:24
uiComboBox * vpfld_
Definition: uistratlaymodtools.h:196
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
void selPropCB(CallBacker *)
Definition: uistratlaymodtools.h:136
Definition: uistratlaymodtools.h:27
Stratigraphy.
Definition: stratlevel.h:26
const uiString & errMsg() const
Definition: uistratlaymodtools.h:190
uiComboBox * vsfld_
Definition: uistratlaymodtools.h:197
Definition: uilabel.h:24
BufferString errmsg_
Definition: horizontracker.h:119
Notifier< uiStratGenDescTools > openReq
Definition: uistratlaymodtools.h:37
Definition: uitoolbutton.h:22
void genCB(CallBacker *)
Definition: uistratlaymodtools.h:57
void mkSynthCB(CallBacker *)
Definition: uistratlaymodtools.h:143
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
void saveCB(CallBacker *)
Definition: uistratlaymodtools.h:55
uiToolButton * zoomtb_
Definition: uistratlaymodtools.h:131
Notifier< uiStratGenDescTools > genReq
Definition: uistratlaymodtools.h:40
void openCB(CallBacker *)
Definition: uistratlaymodtools.h:54
void dispEachCB(CallBacker *)
Definition: uistratlaymodtools.h:139
uiToolButton * lithButton()
Definition: uistratlaymodtools.h:108
void propEdCB(CallBacker *)
Definition: uistratlaymodtools.h:56
bool allownoprop_
Definition: uistratlaymodtools.h:114
Definition: uistratlaymodtools.h:63
uiSpinBox * eachfld_
Definition: uistratlaymodtools.h:129
uiToolButton * lithtb_
Definition: uistratlaymodtools.h:132

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