OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "mpeenginemod.h"
15 #include "task.h"
16 
17 #include "emposid.h"
18 #include "trckey.h"
19 #include "trckeyzsampling.h"
20 
21 namespace Attrib { class SelSpec; }
22 
23 
24 namespace MPE
25 {
26 
27 class SectionExtender;
28 
35 {
36 public:
38 
39  virtual void reset() {}
40 
41  void setPositions(const TypeSet<TrcKey>& targets,
42  const TypeSet<TrcKey>* src=0 );
43  void setSeedPosition(const TrcKey&);
44 
45  int nextStep();
46  const char* errMsg() const;
47 
51  virtual void getNeededAttribs(
53  virtual bool is2D() const { return false;}
54  virtual bool hasInitializedSetup() const { return true; }
55 
56  virtual int getNrAttributes() const { return 0; }
57  virtual const Attrib::SelSpec* getAttributeSel( int idx ) const { return 0;}
58  virtual void setAttributeSel( int idx,
59  const Attrib::SelSpec& ) {}
60 
61  void setThresholdValue(float val);
62  float getThresholdValue() const;
63  bool removeOnFailure(bool yn);
69  bool removesOnFailure() const;
70 
71  virtual void fillPar(IOPar&) const;
72  virtual bool usePar(const IOPar&);
73 
74  void setUndo(bool yn) { setundo_ = yn; }
75  void setSeedId(int);
76 
77 protected:
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
96 
MPE::SectionAdjuster::tks_
TypeSet< TrcKey > tks_
Definition: sectionadjuster.h:79
MPE::SectionAdjuster::setundo_
bool setundo_
Definition: sectionadjuster.h:87
emposid.h
MPE::SectionAdjuster::fillPar
virtual void fillPar(IOPar &) const
MPE::SectionAdjuster::removesOnFailure
bool removesOnFailure() const
task.h
MPE::SectionAdjuster::tksrc_
TypeSet< TrcKey > tksrc_
Definition: sectionadjuster.h:80
MPE::SectionAdjuster::usePar
virtual bool usePar(const IOPar &)
MPE::SectionAdjuster::nextStep
int nextStep()
MPE::SectionAdjuster::sectionid_
EM::SectionID sectionid_
Definition: sectionadjuster.h:82
MPE::SectionAdjuster
SequentialTask to adjust the section of an EM object with ID EM::SectionID.
Definition: sectionadjuster.h:35
MPE::SectionAdjuster::getAttribCube
virtual TrcKeyZSampling getAttribCube(const Attrib::SelSpec &) const
trckey.h
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
MPE::SectionAdjuster::setSeedPosition
void setSeedPosition(const TrcKey &)
MPE::SectionAdjuster::getAttributeSel
virtual const Attrib::SelSpec * getAttributeSel(int idx) const
Definition: sectionadjuster.h:57
MPE::SectionAdjuster::errmsg_
BufferString errmsg_
Definition: sectionadjuster.h:81
MPE::SectionAdjuster::sKeyRemoveOnFailure
static const char * sKeyRemoveOnFailure()
MPE::SectionAdjuster::is2D
virtual bool is2D() const
Definition: sectionadjuster.h:53
MPE::SectionAdjuster::setSeedId
void setSeedId(int)
MPE::SectionAdjuster::reset
virtual void reset()
Definition: sectionadjuster.h:39
MPE::SectionAdjuster::getThresholdValue
float getThresholdValue() const
MPE::SectionAdjuster::hasInitializedSetup
virtual bool hasInitializedSetup() const
Definition: sectionadjuster.h:54
MPE::SectionAdjuster::removeonfailure_
bool removeonfailure_
Definition: sectionadjuster.h:84
TrcKeyZSampling
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
MPE::SectionAdjuster::SectionAdjuster
SectionAdjuster(EM::SectionID sid=-1)
MPE::SectionAdjuster::setThresholdValue
void setThresholdValue(float val)
MPE
MPE stands for Model, Predict, Edit. Contains tracking and editing functions.
Definition: autotracker.h:32
MPE::SectionAdjuster::thresholdval_
float thresholdval_
Definition: sectionadjuster.h:83
MPE::SectionAdjuster::setAttributeSel
virtual void setAttributeSel(int idx, const Attrib::SelSpec &)
Definition: sectionadjuster.h:58
MPE::SectionAdjuster::getNeededAttribs
virtual void getNeededAttribs(TypeSet< Attrib::SelSpec > &) const
trckeyzsampling.h
MPE::SectionAdjuster::seedtk_
TrcKey seedtk_
Definition: sectionadjuster.h:86
MPE::SectionAdjuster::sKeyAdjuster
static const char * sKeyAdjuster()
MPE::SectionAdjuster::seedid_
int seedid_
Definition: sectionadjuster.h:88
MPE::SectionAdjuster::setPositions
void setPositions(const TypeSet< TrcKey > &targets, const TypeSet< TrcKey > *src=0)
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
TrcKey
Represents a unique trace position in one of the surveys that OpendTect is managing.
Definition: trckey.h:28
EM::SectionID
od_int16 SectionID
Definition: emposid.h:24
MPE::SectionAdjuster::sKeyThreshold
static const char * sKeyThreshold()
MPE::SectionAdjuster::removeOnFailure
bool removeOnFailure(bool yn)
MPE::SectionAdjuster::errMsg
const char * errMsg() const
MPE::SectionAdjuster::sectionID
EM::SectionID sectionID() const
MPE::SectionAdjuster::getNrAttributes
virtual int getNrAttributes() const
Definition: sectionadjuster.h:56
Attrib
Semblance Attribute.
Definition: attribdataholder.h:25
Attrib::SelSpec
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
MPE::SectionAdjuster::setUndo
void setUndo(bool yn)
Definition: sectionadjuster.h:74
SequentialTask
The generalization of something (e.g. a computation) where the steps must be done in sequence,...
Definition: task.h:125
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
TypeSet< TrcKey >

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