OpendTect-6_4  6.4
uiraytrace1d.h
Go to the documentation of this file.
1 #ifndef uiraytracer_h
2 #define uiraytracer_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Y. Liu
9  Date: January 2011
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "uitoolsmod.h"
17 #include "raytrace1d.h"
18 #include "uigroup.h"
19 #include "uistring.h"
20 
21 class uiGenInput;
22 class uiCheckBox;
23 class uiLabeledComboBox;
24 
25 
26 mExpClass(uiTools) uiRayTracer1D : public uiGroup
28 public:
29 
30  mExpClass(uiTools) Setup
31  {
32  public:
34  : convertedwaves_(false)
35  , doreflectivity_(true)
36  , dooffsets_(false)
37  , showzerooffsetfld_(true)
38  , offsetrg_(0,6000,100)
39  {}
40 
41  mDefSetupMemb(bool,convertedwaves);
42  mDefSetupMemb(bool,dooffsets);
43  mDefSetupMemb(bool,doreflectivity);
44  mDefSetupMemb(bool,showzerooffsetfld);
46  };
47 
49 
50  virtual bool usePar(const IOPar&);
51  virtual void fillPar(IOPar&) const;
52 
53  void displayOffsetFlds(bool yn);
54  bool isOffsetFldsDisplayed() const;
55  void setOffsetRange(StepInterval<float>);
56  bool doOffsets() const { return offsetfld_; }
57  bool hasZeroOffsetFld() const{ return iszerooffsetfld_; }
58  bool isZeroOffset() const;
60 
61 protected:
62  uiRayTracer1D(uiParent*,const Setup&);
63 
65 
68 
73 
74  void zeroOffsetChecked(CallBacker*);
75  void offsetChangedCB(CallBacker*);
76 };
77 
78 
81 public:
83  const uiRayTracer1D::Setup&);
84 
85  static uiRayTracer1D* create(uiParent* p,const uiRayTracer1D::Setup& s)
86  { return new uiVrmsRayTracer1D(p,s); }
87 
88  static void initClass();
89 };
90 
91 
92 mExpClass(uiTools) uiRayTracerSel : public uiGroup
94 public:
96 
97  void usePar(const IOPar&);
98  void fillPar(IOPar&) const;
99 
100  uiRayTracer1D* current();
101  const uiRayTracer1D* current() const;
102  bool setCurrent(int);
103  bool setCurrentType(const char*);
105 
106 protected:
107 
109 
111 
112  void selRayTraceCB(CallBacker*);
113  void offsChangedCB(CallBacker*);
114 };
115 
116 
117 #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
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
static uiRayTracer1D * create(uiParent *p, const uiRayTracer1D::Setup &s)
Definition: uiraytrace1d.h:85
Definition: uiraytrace1d.h:30
uiCheckBox * iszerooffsetfld_
Definition: uiraytrace1d.h:71
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
Notifier< uiRayTracer1D > offsetChanged
Definition: uiraytrace1d.h:59
bool doreflectivity_
Definition: uiraytrace1d.h:64
Definition: uiparent.h:26
bool doOffsets() const
Definition: uiraytrace1d.h:56
uiLabeledComboBox * raytracerselfld_
Definition: uiraytrace1d.h:108
Definition: uiraytrace1d.h:92
uiGenInput * lastfld_
Definition: uiraytrace1d.h:72
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Setup()
Definition: uiraytrace1d.h:33
Definition: uiraytrace1d.h:79
General Input Element.
Definition: uigeninput.h:58
Notifier< uiRayTracerSel > offsetChanged
Definition: uiraytrace1d.h:104
bool hasZeroOffsetFld() const
Definition: uiraytrace1d.h:57
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
uiGenInput * upwavefld_
Definition: uiraytrace1d.h:67
Definition: uicombobox.h:133
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
uiGenInput * offsetfld_
Definition: uiraytrace1d.h:69
ObjectSet< uiRayTracer1D > grps_
Definition: uiraytrace1d.h:110
uiGenInput * offsetstepfld_
Definition: uiraytrace1d.h:70
Definition: uiraytrace1d.h:26
Definition: uibutton.h:134
uiGenInput * downwavefld_
Definition: uiraytrace1d.h:66
#define mDefineFactory2ParamInClass(T, P0, P1, funcname)
Definition: factory.h:471
static void initClass()

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