OpendTect-6_4  6.4
uicreatepicks.h
Go to the documentation of this file.
1 #ifndef uicreatepicks_h
2 #define uicreatepicks_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: R. K. Singh
9  Date: Aug 2007
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiiomod.h"
16 #include "uidialog.h"
17 #include "trckeyzsampling.h"
18 #include "bufstringset.h"
19 #include "uigeninput.h"
20 #include "enums.h"
21 
22 class uiComboBox;
23 class uiColorInput;
24 class uiPosSubSel;
25 class uiGenInput;
26 class uiLabeledComboBox;
27 class uiListBox;
28 class uiPosProvider;
29 class uiPosFilterSetSel;
30 class DataPointSet;
31 class EnumDef;
32 namespace Pick { class Set; }
33 
37 { mODTextTranslationClass(RandLocGenPars);
38 public:
39 
41  : nr_(1), needhor_(false)
42  , horidx_(-1), horidx2_(-1) {}
43 
44  int nr_;
45  bool needhor_;
48  int horidx_;
49  int horidx2_;
51 };
52 
53 
56 public:
57  enum DepthType { Feet=0, Meter };
59  enum TimeType { Seconds=0, MilliSeconds, MicroSeconds };
61  uiCreatePicks(uiParent*,bool aspolygon=false,
62  bool addstdfields=true, bool zvalreq=false);
64 
65  virtual Pick::Set* getPickSet() const;
66  float getZVal() { return zvalfld_->getFValue(); }
67  float getZValInSurvUnit() { return zval_; }
68  DepthType getDepthZValType() { return zdepthvaltyp_; }
69  TimeType getTimeZValType() { return ztimevaltyp_; }
70 protected:
71 
77 
78  bool calcZValAccToSurvDepth();
79 
80  bool aspolygon_;
81 
82  virtual bool acceptOK(CallBacker*);
83  virtual void addStdFields(uiObject* lastobj=0);
84  bool iszvalreq_;
85  float zval_;
88 
89 };
90 
91 
94 public:
96  ~uiGenPosPicks();
97 
98  virtual Pick::Set* getPickSet() const;
99 
100 protected:
101 
106 
107  bool acceptOK(CallBacker*);
108 };
109 
110 
113 public:
114 
116  const BufferStringSet&);
117 
118  const RandLocGenPars& randPars() const { return randpars_; }
119 
120 protected:
121 
124 
131 
133 
134  bool acceptOK(CallBacker*);
135  void mkRandPars();
136 
137  void geomSel(CallBacker*);
138  void hor1Sel(CallBacker*);
139  void hor2Sel(CallBacker*);
140  void horSel(uiComboBox*,uiComboBox*);
141 
142 };
143 
144 
145 #endif
bool needhor_
Definition: uicreatepicks.h:45
#define mExpClass(module)
Definition: commondefs.h:160
RandLocGenPars randpars_
Definition: uicreatepicks.h:122
uiGenInput * zfld_
Definition: uicreatepicks.h:130
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
float getZValInSurvUnit()
Definition: uicreatepicks.h:67
uiListBox * linenmfld_
Definition: uicreatepicks.h:129
Interval< float > zrg_
Definition: uicreatepicks.h:47
TrcKeySampling hs_
Definition: uicreatepicks.h:46
Set of data points with group selection.
Definition: datapointset.h:48
uiComboBox * horsel2fld_
Definition: uicreatepicks.h:128
const BufferStringSet & hornms_
Definition: uicreatepicks.h:123
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Group to capture a user&#39;s position subselection wishes.
Definition: uipossubsel.h:33
BufferStringSet linenms_
Definition: uicreatepicks.h:50
uiGenInput * nrfld_
Definition: uicreatepicks.h:125
bool iszvalreq_
Definition: uicreatepicks.h:84
uiGenInput * zvalfld_
Definition: uicreatepicks.h:74
The base class for most UI elements.
Definition: uiobj.h:38
BufferString name_
Definition: uicreatepicks.h:76
int horidx_
Definition: uicreatepicks.h:48
Combo box.
Definition: uicombobox.h:32
Definition: uiparent.h:26
Set of BufferString objects.
Definition: bufstringset.h:28
uiPosProvider * posprovfld_
Definition: uicreatepicks.h:102
BufferStringSet linenms_
Definition: uicreatepicks.h:132
uiGenInput * nmfld_
Definition: uicreatepicks.h:72
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:258
Definition: uidialog.h:42
DepthType
Definition: uicreatepicks.h:57
Definition: uicreatepicks.h:92
List Box.
Definition: uilistbox.h:75
Set of picks with something in common.
Definition: pickset.h:31
Definition: uicreatepicks.h:111
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:27
uiLabeledComboBox * horselfld_
Definition: uicreatepicks.h:127
RandLocGenPars()
Definition: uicreatepicks.h:40
Definition: uiposfilterset.h:59
Definition: uicreatepicks.h:54
DepthType getDepthZValType()
Definition: uicreatepicks.h:68
General Input Element.
Definition: uigeninput.h:58
const RandLocGenPars & randPars() const
Definition: uicreatepicks.h:118
DataPointSet * dps_
Definition: uicreatepicks.h:105
Definition: uicombobox.h:133
uiGenInput * geomfld_
Definition: uicreatepicks.h:126
int horidx2_
Definition: uicreatepicks.h:49
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
small element for color selection. Has no text label.
Definition: uicolor.h:44
float getZVal()
Definition: uicreatepicks.h:66
lets user choose a way to provide positions
Definition: uiposprovider.h:29
Definition: picklocation.h:21
uiColorInput * colsel_
Definition: uicreatepicks.h:73
float zval_
Definition: uicreatepicks.h:85
uiPosFilterSetSel * posfiltfld_
Definition: uicreatepicks.h:104
int nr_
Definition: uicreatepicks.h:44
uiComboBox * zvaltypfld_
Definition: uicreatepicks.h:75
uiGenInput * maxnrpickfld_
Definition: uicreatepicks.h:103
TimeType getTimeZValType()
Definition: uicreatepicks.h:69
TimeType ztimevaltyp_
Definition: uicreatepicks.h:87
Holds data pertinent to a certain enum. It does not know the enum values themselves, but treat them as integers.
Definition: enums.h:45
Dialog for creating (a) pick set(s)
Definition: uicreatepicks.h:36
~uiCreatePicks()
Definition: uicreatepicks.h:63
TimeType
Definition: uicreatepicks.h:59
bool aspolygon_
Definition: uicreatepicks.h:80
DepthType zdepthvaltyp_
Definition: uicreatepicks.h:86

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