OpendTect-6_4  6.4
emhorizonztransform.h
Go to the documentation of this file.
1 #ifndef emhorizonztransform_h
2 #define emhorizonztransform_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer Tingdahl
9  Date: April 2006
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "earthmodelmod.h"
17 #include "zaxistransform.h"
18 
19 namespace EM
20 {
21 class Horizon;
22 
30  , public CallBacker
32 public:
34  "HorizonZTransform",
35  toUiString(sFactoryKeyword()));
36 
37  static const char* sKeyHorizonID() { return "Horizon"; }
38 
40  void setHorizon(const Horizon&);
41  void transformTrc(const TrcKey&,const SamplingData<float>&,
42  int sz,float* res) const;
43  void transformTrcBack(const TrcKey&,
44  const SamplingData<float>&,
45  int sz,float* res) const;
46  bool canTransformSurv(TrcKey::SurvID) const { return true; }
47 
48  Interval<float> getZInterval(bool from) const;
49  float getZIntervalCenter(bool from) const;
50  bool needsVolumeOfInterest() const { return false; }
51 
52  Interval<float> getDepthRange() const { return depthrange_; }
53  NotifierAccess* changeNotifier() { return &change_; }
54 
55  void fillPar(IOPar&) const;
56  bool usePar(const IOPar&);
57 
58 protected:
60  void calculateHorizonRange();
61  void horChangeCB( CallBacker* );
62  bool getTopBottom(const TrcKey&,float&top,float&bot) const;
63 
64  const Horizon* horizon_;
68 
69 };
70 
71 } // namespace EM
72 
73 #endif
#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
const Horizon * horizon_
Definition: emhorizonztransform.h:64
Export_Basic uiString toUiString(ViewStyle)
Interface class for Notifier. See comments there.
Definition: callback.h:161
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
NotifierAccess * changeNotifier()
Definition: emhorizonztransform.h:53
Pos::SurvID SurvID
Definition: trckey.h:32
#define mDefaultFactoryInstantiation(baseclss, clss, keywrd, usernm)
Definition: factory.h:289
Definition: callback.h:254
bool canTransformSurv(TrcKey::SurvID) const
Definition: emhorizonztransform.h:46
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
FixedString Horizon()
Definition: keystrs.h:72
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
Notifier< HorizonZTransform > change_
Definition: emhorizonztransform.h:67
Interval< float > depthrange_
Definition: emhorizonztransform.h:65
Z-transform that flattens a horizon. Everything else will also be flattened accordingly. In case of reverse faulting, the area between the two patches will not be included.
Definition: emhorizonztransform.h:29
bool horchanged_
Definition: emhorizonztransform.h:66
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
static const char * sKeyHorizonID()
Definition: emhorizonztransform.h:37
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:28
Base class for z-axis transforms.
Definition: zaxistransform.h:37
bool needsVolumeOfInterest() const
Definition: emhorizonztransform.h:50
Interval< float > getDepthRange() const
Definition: emhorizonztransform.h:52
Horizon Surface.
Definition: emhorizon.h:47

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