OpendTect-6_4  6.4
uihorinterpol.h
Go to the documentation of this file.
1 #ifndef uihorinterpol_h
2 #define uihorinterpol_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: K. Tingdahl
8  Date: Feb 2009
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uiearthmodelmod.h"
15 #include "factory.h"
16 #include "polygon.h"
17 #include "uidialog.h"
18 #include "uigroup.h"
19 
20 class uiCheckBox;
21 class uiGenInput;
22 namespace EM { class Horizon; }
23 
24 class uiFaultParSel;
25 class uiHorSaveFieldGrp;
27 class uiIOObjSel;
28 class uiHor3DInterpol;
29 class uiHor3DInterpolSel;
30 
31 
32 mExpClass(uiEarthModel) uiHorizonInterpolDlg : public uiDialog
34 public:
37 
38  uiHorSaveFieldGrp* saveFldGrp() const { return savefldgrp_; }
39 
42 
43 protected:
44 
45  bool acceptOK(CallBacker*);
46 
47  bool interpolate3D(const IOPar&);
48  bool interpolate2D();
49  void selChangeCB(CallBacker*);
50 
51  bool is2d_;
56 
58 };
59 
60 
61 mExpClass(uiEarthModel) uiHor3DInterpolSel : public uiGroup
63 public:
65  bool musthandlefaults);
67 
68  BinID getStep() const;
69  void setStep(const BinID&);
70 
71  bool isFullSurvey() const;
72  bool isPolygon() const;
73  bool cropPolygon() const;
74  bool getPolygonRange(Interval<int>& inlrg,
75  Interval<int>& crlrg);
76  bool readPolygon(ODPolygon<float>& poly) const;
77 
78  bool fillPar(IOPar&) const;
79  bool usePar(const IOPar&);
80 
81 protected:
82 
83  void methodSelCB(CallBacker*);
84  void scopeChgCB(CallBacker*);
85 
91 
93 };
94 
95 
96 mExpClass(uiEarthModel) uiHor3DInterpol : public uiGroup
98 public:
100 
101  virtual ~uiHor3DInterpol() {}
102 
103  virtual bool fillPar(IOPar&) const { return false; }
104  virtual bool usePar(const IOPar&) { return false; }
105 
106  virtual bool canHandleFaults() const { return false; }
107 
108 protected:
110 };
111 
112 
115 public:
117 
118  static void initClass();
119  static uiHor3DInterpol* create(uiParent*);
120 
121  virtual bool fillPar(IOPar&) const;
122  virtual bool usePar(const IOPar&);
123 
124  virtual bool canHandleFaults() const { return true; }
125  const char* factoryKeyword() const;
126 
127 protected:
128 
129  void doParamDlg(CallBacker*);
130 
132  uiButton* parbut_;
134 
136  int stepsz_;
137  int nrsteps_;
138 };
139 
140 
143 public:
145 
146  static void initClass();
147  static uiHor3DInterpol* create(uiParent*);
148 
149  virtual bool fillPar(IOPar&) const;
150  virtual bool usePar(const IOPar&);
151 
152  virtual bool canHandleFaults() const { return true; }
153  const char* factoryKeyword() const;
154 
155 protected:
156 
157  void useNeighborCB(CallBacker*);
158 
162 };
163 
164 
167 public:
169 
170  static void initClass();
171  static uiHor3DInterpol* create(uiParent*);
172 
173  virtual bool fillPar(IOPar&) const;
174  virtual bool usePar(const IOPar&);
175 
176  virtual bool canHandleFaults() const { return false; }
177  const char* factoryKeyword() const;
178 
179 protected:
180 
181  void useNeighborCB(CallBacker*);
182 
184 
185 };
186 
187 
190 public:
192 
193  static void initClass();
194  static uiHor3DInterpol* create(uiParent*);
195 
196  virtual bool fillPar(IOPar&) const;
197  virtual bool usePar(const IOPar&);
198 
199  virtual bool canHandleFaults() const { return true; }
200  const char* factoryKeyword() const;
201 
204  uiButton* parbut_;
205 
206 protected:
207 
208 };
209 
210 #endif
const char * factoryKeyword() const
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
Notifier< uiHorizonInterpolDlg > finished
Definition: uihorinterpol.h:40
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiContinuousCurvatureHor3DInterpol(uiParent *)
uiButton * parbut_
Definition: uihorinterpol.h:204
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Definition: uihorinterpol.h:61
uiFaultParSel * fltselfld_
Definition: uihorinterpol.h:161
uiCheckBox * useneighborfld_
Definition: uihorinterpol.h:160
uiGenInput * stepfld_
Definition: uihorinterpol.h:88
virtual bool canHandleFaults() const
Definition: uihorinterpol.h:199
uiGenInput * maxdistfld_
Definition: uihorinterpol.h:159
uiArray1DInterpolSel * interpol1dsel_
Definition: uihorinterpol.h:54
uiGenInput * maxholeszfld_
Definition: uihorinterpol.h:87
uiGenInput * radiusfld_
Definition: uihorinterpol.h:131
bool isPolygon() const
uiGenInput * nrstepsfld_
Definition: uihorinterpol.h:183
Definition: uihorinterpol.h:141
int nrsteps_
Definition: uihorinterpol.h:137
Definition: uiparent.h:26
uiHor3DInterpolSel * interpolhor3dsel_
Definition: uihorinterpol.h:53
uiHorSaveFieldGrp * saveFldGrp() const
Definition: uihorinterpol.h:38
virtual bool canHandleFaults() const
Definition: uihorinterpol.h:106
uiGenInput * tensionfld_
Definition: uihorinterpol.h:202
uiGenInput * radiusfld_
Definition: uihorinterpol.h:203
Definition: uidialog.h:42
uiIOObjSel * inputhorsel_
Definition: uihorinterpol.h:52
#define mDefineFactory1ParamInClass(T, P, funcname)
Definition: factory.h:447
virtual bool fillPar(IOPar &) const
Definition: uihorinterpol.h:103
uiIOObjSel * polyfld_
Definition: uihorinterpol.h:90
uiHorSaveFieldGrp * savefldgrp_
Definition: uihorinterpol.h:55
void methodSelCB(CallBacker *)
save or overwrite horizon field set up. It will create new horizon based on given horizon...
Definition: uihorsavefieldgrp.h:31
Definition: uiarray1dinterpol.h:26
Definition: uihorinterpol.h:165
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
uiGenInput * methodsel_
Definition: uihorinterpol.h:89
void scopeChgCB(CallBacker *)
virtual bool usePar(const IOPar &)
Definition: uihorinterpol.h:104
General Input Element.
Definition: uigeninput.h:58
FixedString Horizon()
Definition: keystrs.h:72
virtual bool fillPar(IOPar &) const
bool is2d_
Definition: uihorinterpol.h:51
bool isFullSurvey() const
virtual bool usePar(const IOPar &)
User Interface (UI) element for selection of IOObjs.
Definition: uiioobjsel.h:38
Definition: uiiosurface.h:207
EM::Horizon * horizon_
Definition: uihorinterpol.h:57
uiFaultParSel * fltselfld_
Definition: uihorinterpol.h:133
void setStep(const BinID &)
virtual ~uiHor3DInterpol()
Definition: uihorinterpol.h:101
static uiHor3DInterpol * create(uiParent *)
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
virtual bool canHandleFaults() const
Definition: uihorinterpol.h:124
bool getPolygonRange(Interval< int > &inlrg, Interval< int > &crlrg)
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
BinID getStep() const
~uiHor3DInterpolSel()
Definition: uihorinterpol.h:66
ObjectSet< uiHor3DInterpol > methodgrps_
Definition: uihorinterpol.h:92
Definition: uihorinterpol.h:96
bool readPolygon(ODPolygon< float > &poly) const
bool cornersfirst_
Definition: uihorinterpol.h:135
Definition: uihorinterpol.h:113
bool cropPolygon() const
Notifier< uiHorizonInterpolDlg > horReadyForDisplay
Definition: uihorinterpol.h:41
Definition: uibutton.h:134
uiButton * parbut_
Definition: uihorinterpol.h:132
int stepsz_
Definition: uihorinterpol.h:136
uiGenInput * filltypefld_
Definition: uihorinterpol.h:86
Definition: uihorinterpol.h:32
uiHor3DInterpolSel(uiParent *, bool musthandlefaults)
Horizon Surface.
Definition: emhorizon.h:47
static void initClass()
virtual bool canHandleFaults() const
Definition: uihorinterpol.h:152
virtual bool canHandleFaults() const
Definition: uihorinterpol.h:176

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