OpendTect-6_4  6.4
uiarray2dinterpol.h
Go to the documentation of this file.
1 #ifndef uiarray2dinterpol_h
2 #define uiarray2dinterpol_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: April 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 #include "uidlggroup.h"
17 #include "factory.h"
18 #include "position.h"
19 #include "uistring.h"
20 
21 class Array2DInterpol;
22 class uiCheckBox;
23 class uiGenInput;
24 class uiArray2DInterpol;
25 
26 
29 public:
31 
32  uiArray2DInterpolSel(uiParent*,bool filltype,
33  bool holesz, bool withclassification,
34  const Array2DInterpol* oldvals,
35  bool withstep=false);
36 
37  bool acceptOK();
40 
41  void setDistanceUnit(const uiString&);
44 
45  HelpKey helpKey() const;
46  void fillPar(IOPar&) const;
47 
48  void setStep(const BinID&);
49  BinID getStep() const;
50 
51 protected:
53  uiParent* getTopObject();
54  void selChangeCB(CallBacker*);
55 
57 
63 
65 };
66 
67 
70 public:
71  virtual void setValuesFrom(const Array2DInterpol&) {}
72  //*!Dose only work if provided object is of 'your' type.
73 
74  bool acceptOK() = 0;
75  virtual void setDistanceUnit(const uiString&) {}
76 
79 protected:
80  uiArray2DInterpol(uiParent*,const uiString& caption);
82 
83  virtual Array2DInterpol* createResult() const { return 0; }
84 
86 };
87 
88 
91 public:
92 
93  uiInvDistInterpolPars(uiParent* p,bool cornersfirst,
94  int stepsz,int nrsteps);
95  bool isCornersFirst() const;
96  int stepSize() const;
97  int nrSteps() const;
98 
99 protected:
100 
101  bool acceptOK(CallBacker*);
102 
106 };
107 
108 
111 public:
112 
114 
115  static void initClass();
116  static uiArray2DInterpol* create(uiParent*);
117 
118  void setValuesFrom(const Array2DInterpol&);
119  bool acceptOK();
120  void setDistanceUnit(const uiString&);
121 
122  HelpKey helpKey() const;
123 
124 protected:
125 
127  uiButton* parbut_;
128 
130  int stepsz_;
131  int nrsteps_;
132 
133  void doParamDlg(CallBacker*);
134  virtual Array2DInterpol* createResult() const;
135 
136  friend class uiInvDistA2DInterpolPars;
137 
138 };
139 
140 
143 public:
144 
146 
147  static void initClass();
148  static uiArray2DInterpol* create(uiParent*);
149 
150  bool acceptOK();
151  void setDistanceUnit(const uiString&);
152  void setValuesFrom(const Array2DInterpol&);
153 
154 protected:
155 
156  void intCB(CallBacker*);
157  virtual Array2DInterpol* createResult() const;
158 
161 };
162 
163 
166 public:
167 
169 
170  static void initClass();
171  static uiArray2DInterpol* create(uiParent*);
172  void setValuesFrom(const Array2DInterpol&);
173 
174  bool acceptOK();
175 
176 protected:
177 
178  virtual Array2DInterpol* createResult() const;
179  int nrsteps_;
181 };
182 #endif
uiGenInput * cornersfirstfld_
Definition: uiarray2dinterpol.h:103
#define mExpClass(module)
Definition: commondefs.h:160
uiCheckBox * useneighborfld_
Definition: uiarray2dinterpol.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiGenInput * nrstepsfld_
Definition: uiarray2dinterpol.h:105
Definition: uiarray2dinterpol.h:141
Base class for two dimensional array interpolators.
Definition: array2dinterpol.h:34
int nrsteps_
Definition: uiarray2dinterpol.h:131
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiGenInput * stepfld_
Definition: uiarray2dinterpol.h:62
uiGenInput * maxdistfld_
Definition: uiarray2dinterpol.h:159
uiGenInput * methodsel_
Definition: uiarray2dinterpol.h:60
Definition: uiarray2dinterpol.h:164
Definition: uistring.h:89
Definition: uiparent.h:26
Array2DInterpol * getResult()
Becomes caller's.
Definition: helpview.h:49
Definition: uidlggroup.h:26
virtual HelpKey helpKey() const
Definition: uidlggroup.h:51
Definition: uidialog.h:42
#define mDefineFactory1ParamInClass(T, P, funcname)
Definition: factory.h:447
uiButton * parbut_
Definition: uiarray2dinterpol.h:127
int stepsz_
Definition: uiarray2dinterpol.h:130
virtual void setDistanceUnit(const uiString &)
Definition: uiarray2dinterpol.h:75
uiGenInput * radiusfld_
Definition: uiarray2dinterpol.h:126
Array2DInterpol * result_
Definition: uiarray2dinterpol.h:85
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
uiGenInput * isclassificationfld_
Definition: uiarray2dinterpol.h:61
int nrsteps_
Definition: uiarray2dinterpol.h:179
bool cornersfirst_
Definition: uiarray2dinterpol.h:129
ObjectSet< uiArray2DInterpol > params_
Definition: uiarray2dinterpol.h:64
uiGenInput * maxholeszfld_
Definition: uiarray2dinterpol.h:59
General Input Element.
Definition: uigeninput.h:58
Definition: uiarray2dinterpol.h:68
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
uiArray2DInterpol(uiParent *, const uiString &caption)
Definition: uiarray2dinterpol.h:27
Array2DInterpol * result_
Definition: uiarray2dinterpol.h:56
static uiHor3DInterpol * create(uiParent *)
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
uiGenInput * nrstepsfld_
Definition: uiarray2dinterpol.h:180
Definition: uiarray2dinterpol.h:89
uiGenInput * filltypefld_
Definition: uiarray2dinterpol.h:58
Definition: uiarray2dinterpol.h:109
uiGenInput * stepsizefld_
Definition: uiarray2dinterpol.h:104
virtual void setValuesFrom(const Array2DInterpol &)
Definition: uiarray2dinterpol.h:71
Definition: uibutton.h:134
virtual Array2DInterpol * createResult() const
Definition: uiarray2dinterpol.h:83
static void initClass()

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