OpendTect-6_4  6.4
sectionadjuster.h
Go to the documentation of this file.
1 #ifndef sectionadjuster_h
2 #define sectionadjuster_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 "task.h"
17 
18 #include "emposid.h"
19 #include "trckey.h"
20 #include "trckeyzsampling.h"
21 
22 namespace Attrib { class SelSpec; }
23 
24 
25 namespace MPE
26 {
27 
28 class SectionExtender;
29 
36 {
37 public:
38  EM::SectionID sectionID() const;
39 
40  virtual void reset() {}
41 
42  void setPositions(const TypeSet<TrcKey>& targets,
43  const TypeSet<TrcKey>* src=0 );
44  void setSeedPosition(const TrcKey&);
45 
46  int nextStep();
47  const char* errMsg() const;
48 
49  virtual TrcKeyZSampling getAttribCube(const Attrib::SelSpec&) const;
52  virtual void getNeededAttribs(
54  virtual bool is2D() const { return false;}
55  virtual bool hasInitializedSetup() const { return true; }
56 
57  virtual int getNrAttributes() const { return 0; }
58  virtual const Attrib::SelSpec* getAttributeSel( int idx ) const { return 0;}
59  virtual void setAttributeSel( int idx,
60  const Attrib::SelSpec& ) {}
61 
62  void setThresholdValue(float val);
63  float getThresholdValue() const;
64  bool removeOnFailure(bool yn);
70  bool removesOnFailure() const;
71 
72  virtual void fillPar(IOPar&) const;
73  virtual bool usePar(const IOPar&);
74 
75  void setUndo(bool yn) { setundo_ = yn; }
76  void setSeedId(int);
77 
78 protected:
86 
88  bool setundo_;
89  int seedid_;
90 
91  static const char* sKeyAdjuster();
92  static const char* sKeyThreshold();
93  static const char* sKeyRemoveOnFailure();
94 };
95 
96 } // namespace MPE
97 
98 #endif
od_int16 SectionID
Definition: emposid.h:25
#define mExpClass(module)
Definition: commondefs.h:160
TypeSet< TrcKey > tksrc_
Definition: sectionadjuster.h:81
BufferString errmsg_
Definition: sectionadjuster.h:82
SequentialTask to adjust the section of an EM object with ID EM::SectionID.
Definition: sectionadjuster.h:35
TypeSet< TrcKey > tks_
Definition: sectionadjuster.h:80
virtual void reset()
Definition: sectionadjuster.h:40
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
int seedid_
Definition: sectionadjuster.h:89
The generalization of something (e.g. a computation) where the steps must be done in sequence...
Definition: task.h:124
virtual bool is2D() const
Definition: sectionadjuster.h:54
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
bool setundo_
Definition: sectionadjuster.h:88
virtual bool hasInitializedSetup() const
Definition: sectionadjuster.h:55
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
EM::SectionID sectionid_
Definition: sectionadjuster.h:83
void setUndo(bool yn)
Definition: sectionadjuster.h:75
float thresholdval_
Definition: sectionadjuster.h:84
virtual int getNrAttributes() const
Definition: sectionadjuster.h:57
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
virtual void setAttributeSel(int idx, const Attrib::SelSpec &)
Definition: sectionadjuster.h:59
virtual const Attrib::SelSpec * getAttributeSel(int idx) const
Definition: sectionadjuster.h:58
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
const char * errMsg() const
Definition: horizontracker.h:61
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:28
TrcKey seedtk_
Definition: sectionadjuster.h:87
Semblance Attribute.
Definition: attribdataholder.h:25
bool removeonfailure_
Definition: sectionadjuster.h:85

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