OpendTect-6_4  6.4
horizonadjuster.h
Go to the documentation of this file.
1 #ifndef horizonadjuster_h
2 #define horizonadjuster_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: January 2005
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "mpeenginemod.h"
16 #include "sectionadjuster.h"
17 
18 #include "datapack.h"
19 #include "ranges.h"
20 #include "valseriestracker.h"
21 
22 class EventTracker;
23 namespace EM { class Horizon; }
24 
25 namespace MPE
26 {
27 
28 class SectionExtender;
29 
35 {
36 public:
38  ~HorizonAdjuster();
39 
40  void reset();
41  int nextStep();
42 
43  void getNeededAttribs(
45  TrcKeyZSampling getAttribCube(const Attrib::SelSpec&) const;
46 
47  void setCompareMethod(EventTracker::CompareMethod);
48  EventTracker::CompareMethod getCompareMethod() const;
49 
50  void setSearchWindow(const Interval<float>& rg);
51  Interval<float> searchWindow() const;
52  void setTrackByValue(bool yn);
53  bool trackByValue() const;
54  void setTrackEvent(VSEvent::Type ev);
55  VSEvent::Type trackEvent() const;
56  void allowAmplitudeSignChange(bool);
57  bool isAmplitudeSignChangeAllowed() const;
58 
59  void setAmplitudeThreshold(float th);
60  float amplitudeThreshold() const;
61  void setAmplitudeThresholds(const TypeSet<float>& ats);
62  TypeSet<float>& getAmplitudeThresholds();
63  void setAllowedVariance(float v);
64  void setAllowedVariances(const TypeSet<float>& avs);
65  TypeSet<float>& getAllowedVariances();
66  float allowedVariance() const;
67  void setUseAbsThreshold(bool abs);
68  bool useAbsThreshold() const;
69 
70  void setSimilarityWindow(const Interval<float>& rg);
71  Interval<float> similarityWindow() const;
72  void setSimilarityThreshold(float th);
73  float similarityThreshold() const;
74  void setSnapToEvent(bool);
75  bool snapToEvent() const;
76 
77  int getNrAttributes() const;
78  const Attrib::SelSpec* getAttributeSel(int idx) const;
79  void setAttributeSel(int idx,const Attrib::SelSpec&);
80 
81  bool hasInitializedSetup() const;
82 
83  void fillPar(IOPar&) const;
84  bool usePar(const IOPar&);
85 
86 protected:
87 
91 
92 private:
93 
96 
97  bool track(const TrcKey&,const TrcKey&,float&) const;
98  void setHorizonPick(const TrcKey&,float val);
99 
100  static const char* sKeyTracker() { return "Tracker"; }
101  static const char* sKeyAttribID() { return "Attribute"; }
102 };
103 
104 } // namespace MPE
105 
106 #endif
DataPack::ID datapackid_
Definition: horizonadjuster.h:95
od_int16 SectionID
Definition: emposid.h:25
#define mExpClass(module)
Definition: commondefs.h:160
SequentialTask to adjust the section of an EM object with ID EM::SectionID.
Definition: sectionadjuster.h:35
SectionAdjuster to adjust EM::Horizon.
Definition: horizonadjuster.h:34
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
MPE stands for Model, Predict, Edit. Contains tracking and editing functions.
Definition: autotracker.h:32
DataPackMgr & dpm_
Definition: horizonadjuster.h:94
int ID
Definition: datapack.h:38
static const char * sKeyTracker()
Definition: horizonadjuster.h:100
Manages DataPacks.
Definition: datapack.h:141
static const char * sKeyAttribID()
Definition: horizonadjuster.h:101
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
FixedString Horizon()
Definition: keystrs.h:72
EventTracker & evtracker_
Definition: horizonadjuster.h:90
Tracker that tracks Min/Max & Zero crossings between valueseries.
Definition: valseriestracker.h:66
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
EM::Horizon & horizon_
Definition: horizonadjuster.h:89
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
CompareMethod
Definition: valseriestracker.h:74
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:28
Type
Definition: valseriesevent.h:26
Attrib::SelSpec * attribsel_
Definition: horizonadjuster.h:88
Horizon Surface.
Definition: emhorizon.h:47

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