OpendTect  6.3
sectionadjuster.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: K. Tingdahl
8  Date: January 2005
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "mpeenginemod.h"
14 #include "task.h"
15 
16 #include "emposid.h"
17 #include "trckey.h"
18 #include "trckeyzsampling.h"
19 
20 namespace Attrib { class SelSpec; }
21 
22 
23 namespace MPE
24 {
25 
26 class SectionExtender;
27 
34 {
35 public:
36  EM::SectionID sectionID() const;
37 
38  virtual void reset() {}
39 
40  void setPositions(const TypeSet<TrcKey>& targets,
41  const TypeSet<TrcKey>* src=0 );
42  void setSeedPosition(const TrcKey&);
43 
44  int nextStep();
45  const char* errMsg() const;
46 
47  virtual TrcKeyZSampling getAttribCube(const Attrib::SelSpec&) const;
50  virtual void getNeededAttribs(
52  virtual bool is2D() const { return false;}
53  virtual bool hasInitializedSetup() const { return true; }
54 
55  virtual int getNrAttributes() const { return 0; }
56  virtual const Attrib::SelSpec* getAttributeSel( int idx ) const { return 0;}
57  virtual void setAttributeSel( int idx,
58  const Attrib::SelSpec& ) {}
59 
60  void setThresholdValue(float val);
61  float getThresholdValue() const;
62  bool removeOnFailure(bool yn);
68  bool removesOnFailure() const;
69 
70  virtual void fillPar(IOPar&) const;
71  virtual bool usePar(const IOPar&);
72 
73  void setUndo(bool yn) { setundo_ = yn; }
74  void setSeedId(int);
75 
76 protected:
78 
85 
87  bool setundo_;
88  int seedid_;
89 
90  static const char* sKeyAdjuster();
91  static const char* sKeyThreshold();
92  static const char* sKeyRemoveOnFailure();
93 };
94 
95 } // namespace MPE
od_int16 SectionID
Definition: emposid.h:23
#define mExpClass(module)
Definition: commondefs.h:157
TypeSet< TrcKey > tksrc_
Definition: sectionadjuster.h:80
BufferString errmsg_
Definition: sectionadjuster.h:81
SequentialTask to adjust the section of an EM object with ID EM::SectionID.
Definition: sectionadjuster.h:33
TypeSet< TrcKey > tks_
Definition: sectionadjuster.h:79
virtual void reset()
Definition: sectionadjuster.h:38
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
MPE stands for Model, Predict, Edit. Contains tracking and editing functions.
Definition: autotracker.h:30
int seedid_
Definition: sectionadjuster.h:88
The generalization of something (e.g. a computation) where the steps must be done in sequence...
Definition: task.h:147
virtual bool is2D() const
Definition: sectionadjuster.h:52
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
bool setundo_
Definition: sectionadjuster.h:87
virtual bool hasInitializedSetup() const
Definition: sectionadjuster.h:53
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:32
EM::SectionID sectionid_
Definition: sectionadjuster.h:82
void setUndo(bool yn)
Definition: sectionadjuster.h:73
float thresholdval_
Definition: sectionadjuster.h:83
virtual int getNrAttributes() const
Definition: sectionadjuster.h:55
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
virtual void setAttributeSel(int idx, const Attrib::SelSpec &)
Definition: sectionadjuster.h:57
virtual const Attrib::SelSpec * getAttributeSel(int idx) const
Definition: sectionadjuster.h:56
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:43
const char * errMsg() const
Definition: horizontracker.h:59
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:26
TrcKey seedtk_
Definition: sectionadjuster.h:86
Semblance Attribute.
Definition: attribdataholder.h:21
bool removeonfailure_
Definition: sectionadjuster.h:84

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