OpendTect-6_4  6.4
uicreate2dgrid.h
Go to the documentation of this file.
1 #ifndef uicreate2dgrid_h
2 #define uicreate2dgrid_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  CopyRight: (C) dGB Beheer B.V.
8  Author: Nanne Hemstra
9  Date: December 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 
16 #include "uiemattribmod.h"
17 #include "uidialog.h"
18 #include "uigroup.h"
19 #include "grid2d.h"
20 
21 class BufferStringSet;
22 class TrcKeyZSampling;
23 class TrcKeySampling;
25 class uiCheckBox;
26 class uiGenInput;
27 class uiGrid2DMapObject;
28 class uiHorizonParSel;
29 class uiIOObjSel;
30 class uiLabel;
31 class uiPosSubSel;
32 class uiSeisSel;
33 class uiSelNrRange;
34 class uiSurveyMap;
35 
36 namespace Geometry { class RandomLine; }
37 
38 mExpClass(uiEMAttrib) ui2DGridLines : public uiGroup
40 public:
41  ~ui2DGridLines();
42 
43  const Grid2D* getGridLines() const { return grid_; }
44  virtual void updateRange();
45  virtual const Grid2D::Line* getBaseLine() const { return 0; }
46  virtual void getNrLinesLabelTexts(BufferString&,
47  BufferString&) const = 0;
48 
49  virtual bool fillPar(IOPar&) const;
50 
52 
53 protected:
54 
56 
57  virtual bool computeGrid() = 0;
58 
61 
64 };
65 
66 
69 public:
71  const TrcKeySampling&);
72 
73  bool fillPar(IOPar&) const;
74  void updateRange();
75  void getLineNames(BufferStringSet&) const;
76 
77 protected:
78 
79  bool computeGrid();
80  void paramsChgCB(CallBacker*);
81  void getNrLinesLabelTexts(BufferString&,
82  BufferString&) const;
83  void modeChg(CallBacker*);
84 
91 };
92 
93 
96 public:
98  const TrcKeySampling&,
99  const Geometry::RandomLine*);
101 
102  const Grid2D::Line* getBaseLine() const { return baseline_; }
103  bool fillPar(IOPar&) const;
104  void getLineNames(BufferStringSet&) const;
105 
106 protected:
107 
108  bool computeGrid();
109  void paramsChgCB(CallBacker*);
110  void getNrLinesLabelTexts(BufferString&,
111  BufferString&) const;
112 
116 
118 };
119 
120 
121 mExpClass(uiEMAttrib) uiCreate2DGrid : public uiDialog
123 public:
125  const Geometry::RandomLine*);
126  ~uiCreate2DGrid();
127 
128  bool fillPar();
129 
130 protected:
131 
132  uiGroup* createSeisGroup(const Geometry::RandomLine*);
133  uiGroup* createHorizonGroup();
134  uiGroup* createPreviewGroup();
135  void updatePreview(CallBacker*);
136 
141 
144  uiGrid2DMapObject* preview_;
148 
153 
155 
156  void horCheckCB(CallBacker*);
157  void inpSelCB(CallBacker*);
158  void outSelCB(CallBacker*);
159  void srcSelCB(CallBacker*);
160  void subSelCB(CallBacker*);
161  void gridChgCB(CallBacker*);
162  void finaliseCB(CallBacker*);
163 
164  void fillSeisPar(IOPar&);
165  void fillHorPar(IOPar&);
166 
167  bool checkInput(IOPar&) const;
168  bool acceptOK(CallBacker*);
169 };
170 
171 
172 #endif
Definition: uigroup.h:54
uiLabel * nrcrlinesfld_
Definition: uicreate2dgrid.h:147
#define mExpClass(module)
Definition: commondefs.h:160
Represents a grid of 2D lines in an Inl-Crl plane.
Definition: grid2d.h:27
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiGrid2DMapObject * preview_
Definition: uicreate2dgrid.h:144
const Grid2D * getGridLines() const
Definition: uicreate2dgrid.h:43
uiGenInput * inlsfld_
Definition: uicreate2dgrid.h:87
uiHorizonParSel * horselfld_
Definition: uicreate2dgrid.h:150
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Group to capture a user's position subselection wishes.
Definition: uipossubsel.h:33
Definition: randomlinegeom.h:31
uiLabel * nrinlinesfld_
Definition: uicreate2dgrid.h:146
uiGenInput * perdistfld_
Definition: uicreate2dgrid.h:115
uiSelNrRange * inlrgfld_
Definition: uicreate2dgrid.h:89
Grid2D::Line * baseline_
Definition: uicreate2dgrid.h:117
uiSelNrRange * crlrgfld_
Definition: uicreate2dgrid.h:90
uiGenInput * inlmodefld_
Definition: uicreate2dgrid.h:85
uiSeisSel * infld_
Definition: uicreate2dgrid.h:137
Definition: uiparent.h:26
uiGenInput * crlmodefld_
Definition: uicreate2dgrid.h:86
Set of BufferString objects.
Definition: bufstringset.h:28
uiGenInput * hornmfld_
Definition: uicreate2dgrid.h:151
Definition: uicreate2dgrid.h:38
Definition: uidialog.h:42
uiGenInput * sourceselfld_
Definition: uicreate2dgrid.h:140
uiGenInput * crlprefixfld_
Definition: uicreate2dgrid.h:60
Definition: uicreate2dgrid.h:67
Definition: uiiosurface.h:182
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:27
Definition: uiseissel.h:26
Notifier< ui2DGridLines > gridChanged
Definition: uicreate2dgrid.h:51
Line in an Inl-Crl plane.
Definition: grid2d.h:33
Definition: uisurvmap.h:82
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
General Input Element.
Definition: uigeninput.h:58
Lets user select a batch job dispatcher suited for the job.
Definition: uibatchjobdispatchersel.h:28
uiIOObjSel * rdlfld_
Definition: uicreate2dgrid.h:113
User Interface (UI) element for selection of IOObjs.
Definition: uiioobjsel.h:38
uiGenInput * inlprefixfld_
Definition: uicreate2dgrid.h:59
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
uiSeisSel * outfld_
Definition: uicreate2dgrid.h:138
const Grid2D::Line * getBaseLine() const
Definition: uicreate2dgrid.h:102
Selects range of trace numbers.
Definition: uiselsurvranges.h:63
virtual const Grid2D::Line * getBaseLine() const
Definition: uicreate2dgrid.h:45
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
ui2DGridLines * inlcrlgridgrp_
Definition: uicreate2dgrid.h:142
Definition: uilabel.h:24
ui2DGridLines * randlinegrdgrp_
Definition: uicreate2dgrid.h:143
TrcKeyZSampling & tkzs_
Definition: uicreate2dgrid.h:154
Grid2D * grid_
Definition: uicreate2dgrid.h:62
uiCheckBox * horcheckfld_
Definition: uicreate2dgrid.h:149
uiSurveyMap * previewmap_
Definition: uicreate2dgrid.h:145
const TrcKeySampling & hs_
Definition: uicreate2dgrid.h:63
uiBatchJobDispatcherSel * batchfld_
Definition: uicreate2dgrid.h:152
Definition: uicreate2dgrid.h:94
Definition: uibutton.h:134
uiPosSubSel * bboxfld_
Definition: uicreate2dgrid.h:139
uiGenInput * pardistfld_
Definition: uicreate2dgrid.h:114
Definition: arraytesselator.h:21
Definition: uicreate2dgrid.h:121
uiGenInput * crlsfld_
Definition: uicreate2dgrid.h:88

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