OpendTect-6_4  6.4
uiseissubsel.h
Go to the documentation of this file.
1 #ifndef uiseissubsel_h
2 #define uiseissubsel_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Bril
9  Date: June 2004
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiseismod.h"
16 #include "bufstringset.h"
17 #include "multiid.h"
18 #include "seisselection.h"
19 #include "uidialog.h"
20 #include "uigroup.h"
21 #include "ranges.h"
22 #include "sets.h"
23 #include "uistring.h"
24 
25 class IOObj;
26 class TrcKeySampling;
27 class TrcKeyZSampling;
28 
29 class uiCompoundParSel;
30 class uiCheckBox;
31 class uiLineSel;
32 class uiPosSubSel;
33 class uiSeis2DSubSel;
34 class uiSelSubline;
37 
38 
39 mExpClass(uiSeis) uiSeisSubSel : public uiGroup
41 public:
42 
43  static uiSeisSubSel* get(uiParent*,const Seis::SelSetup&);
44  virtual ~uiSeisSubSel();
45 
46  bool isAll() const;
47  void getSampling(TrcKeyZSampling&) const;
48  void getSampling(TrcKeySampling&) const;
49  void getZRange(StepInterval<float>&) const;
50 
51  virtual bool fillPar(IOPar&) const;
52  virtual void usePar(const IOPar&);
53 
54  virtual void clear();
55  virtual void setInput(const IOObj&) = 0;
56  void setInput(const TrcKeySampling&);
57  void setInput(const MultiID&);
58  void setInput(const StepInterval<float>& zrg);
59  void setInput(const TrcKeyZSampling&);
60 
61  virtual int expectedNrSamples() const;
62  virtual int expectedNrTraces() const;
63 
64  virtual uiCompoundParSel* compoundParSel();
66 
67 protected:
68 
69  uiSeisSubSel(uiParent*,const Seis::SelSetup&);
70 
71  void selChangeCB(CallBacker*);
72  void afterSurveyChangedCB(CallBacker*);
74 
75 };
76 
77 
80 public:
81 
83  : uiSeisSubSel(p,ss) {}
84 
85  void setInput(const IOObj&);
86 
87 };
88 
89 
92 public:
93 
95  ~uiSeis2DSubSel();
96 
97  virtual void clear();
98  bool fillPar(IOPar&) const;
99  void usePar(const IOPar&);
100  void setInput(const IOObj&);
101  void setInputLines(const TypeSet<Pos::GeomID>&);
102 
103  bool isSingLine() const;
104  const char* selectedLine() const;
105  void setSelectedLine(const char*);
106 
107  void selectedGeomIDs(TypeSet<Pos::GeomID>&) const;
108  void selectedLines(BufferStringSet&) const;
109  void setSelectedLines(const BufferStringSet&);
110 
111  int expectedNrSamples() const;
112  int expectedNrTraces() const;
113 
114  void getSampling(TrcKeyZSampling&,Pos::GeomID =-1) const;
115  StepInterval<int> getTrcRange(Pos::GeomID =-1) const;
116  StepInterval<float> getZRange(Pos::GeomID =-1) const;
117 
118 protected:
119 
122 
123  bool multiln_;
125 
126  void lineChg(CallBacker*);
127 };
128 
129 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: ioobj.h:58
void setInput(const char *)
uiSeis2DLineNameSel * singlelnmsel_
Definition: uiseissubsel.h:121
Single-line element allowing multi-parameter to be set via a dialog.
Definition: uicompoundparsel.h:31
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Group to capture a user&#39;s position subselection wishes.
Definition: uipossubsel.h:33
Notifier< uiSeisSubSel > selChange
Definition: uiseissubsel.h:65
Definition: uiseissubsel.h:90
uiSeis3DSubSel(uiParent *p, const Seis::SelSetup &ss)
Definition: uiseissubsel.h:82
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
setup for subselection of seismic data
Definition: seisselection.h:29
void clear(std::ios &)
uiSeis2DMultiLineSel * multilnmsel_
Definition: uiseissubsel.h:120
Definition: uiparent.h:26
Set of BufferString objects.
Definition: bufstringset.h:28
Selects sub-line. Default will be 1-udf and SI() z range.
Definition: uiselsurvranges.h:166
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: uiseislinesel.h:124
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
Definition: uiseissubsel.h:39
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
Index_Type GeomID
Definition: commontypes.h:52
Definition: uiseissubsel.h:78
Definition: uiseislinesel.h:150
Definition: uibutton.h:134
MultiID inpkey_
Definition: uiseissubsel.h:124
bool multiln_
Definition: uiseissubsel.h:123
Compound key consisting of ints.
Definition: multiid.h:25
uiPosSubSel * selfld_
Definition: uiseissubsel.h:73

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