OpendTect-6_4  6.4
Public Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
MPE::HorizonAdjuster Class Reference

SectionAdjuster to adjust EM::Horizon. More...

Inheritance diagram for MPE::HorizonAdjuster:
[legend]

Public Member Functions

 HorizonAdjuster (EM::Horizon &, EM::SectionID)
 
 ~HorizonAdjuster ()
 
void reset ()
 
int nextStep ()
 
void getNeededAttribs (TypeSet< Attrib::SelSpec > &) const
 
TrcKeyZSampling getAttribCube (const Attrib::SelSpec &) const
 
void setCompareMethod (EventTracker::CompareMethod)
 
EventTracker::CompareMethod getCompareMethod () const
 
void setSearchWindow (const Interval< float > &rg)
 
Interval< float > searchWindow () const
 
void setTrackByValue (bool yn)
 
bool trackByValue () const
 
void setTrackEvent (VSEvent::Type ev)
 
VSEvent::Type trackEvent () const
 
void allowAmplitudeSignChange (bool)
 
bool isAmplitudeSignChangeAllowed () const
 
void setAmplitudeThreshold (float th)
 
float amplitudeThreshold () const
 
void setAmplitudeThresholds (const TypeSet< float > &ats)
 
TypeSet< float > & getAmplitudeThresholds ()
 
void setAllowedVariance (float v)
 
void setAllowedVariances (const TypeSet< float > &avs)
 
TypeSet< float > & getAllowedVariances ()
 
float allowedVariance () const
 
void setUseAbsThreshold (bool abs)
 
bool useAbsThreshold () const
 
void setSimilarityWindow (const Interval< float > &rg)
 
Interval< float > similarityWindow () const
 
void setSimilarityThreshold (float th)
 
float similarityThreshold () const
 
void setSnapToEvent (bool)
 
bool snapToEvent () const
 
int getNrAttributes () const
 
const Attrib::SelSpecgetAttributeSel (int idx) const
 
void setAttributeSel (int idx, const Attrib::SelSpec &)
 
bool hasInitializedSetup () const
 
void fillPar (IOPar &) const
 
bool usePar (const IOPar &)
 
- Public Member Functions inherited from MPE::SectionAdjuster
EM::SectionID sectionID () const
 
void setPositions (const TypeSet< TrcKey > &targets, const TypeSet< TrcKey > *src=0)
 
void setSeedPosition (const TrcKey &)
 
int nextStep ()
 
const char * errMsg () const
 
virtual bool is2D () const
 
void setThresholdValue (float val)
 
float getThresholdValue () const
 
bool removeOnFailure (bool yn)
 
bool removesOnFailure () const
 
void setUndo (bool yn)
 
void setSeedId (int)
 
- Public Member Functions inherited from SequentialTask
 SequentialTask (const char *nm=0)
 
virtual ~SequentialTask ()
 
void setProgressMeter (ProgressMeter *)
 Must be called before execute() More...
 
ProgressMeterprogressMeter ()
 
const ProgressMeterprogressMeter () const
 
virtual int doStep ()
 
bool execute ()
 
- Public Member Functions inherited from Task
virtual ~Task ()
 
virtual int64_t nrDone () const
 
virtual int64_t totalNr () const
 
virtual uiString uiMessage () const
 will be message() again in 7.x More...
 
virtual uiString uiNrDoneText () const
 will be nrDoneText() in 7.x More...
 
virtual void enableWorkControl (bool=true)
 Must be called before execute() More...
 
bool workControlEnabled () const
 
virtual void controlWork (Control)
 
virtual Control getState () const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject *linkedto)
 
 NamedObject (const NamedObject &)
 
virtual ~NamedObject ()
 
void setLinkedTo (NamedObject *)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
virtual const OD::StringannotName () const
 
virtual void setName (const char *)
 
void setCleanName (const char *)
 cleans string first More...
 
void deleteNotify (const CallBack &)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Protected Attributes

Attrib::SelSpecattribsel_
 
EM::Horizonhorizon_
 
EventTrackerevtracker_
 
- Protected Attributes inherited from MPE::SectionAdjuster
TypeSet< TrcKeytks_
 
TypeSet< TrcKeytksrc_
 
BufferString errmsg_
 
EM::SectionID sectionid_
 
float thresholdval_
 
bool removeonfailure_
 
TrcKey seedtk_
 
bool setundo_
 
int seedid_
 
- Protected Attributes inherited from SequentialTask
ProgressMeterprogressmeter_
 
int lastupdate_
 
- Protected Attributes inherited from Task
Control control_
 
Threads::ConditionVarworkcontrolcondvar_
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

Private Member Functions

bool track (const TrcKey &, const TrcKey &, float &) const
 
void setHorizonPick (const TrcKey &, float val)
 

Static Private Member Functions

static const char * sKeyTracker ()
 
static const char * sKeyAttribID ()
 

Private Attributes

DataPackMgrdpm_
 
DataPack::ID datapackid_
 

Additional Inherited Members

- Public Types inherited from Task
enum  Control { Run, Pause, Stop }
 
- Static Public Member Functions inherited from SequentialTask
static int ErrorOccurred ()
 
static int Finished ()
 
static int MoreToDo ()
 
static int WarningAvailable ()
 
- Static Public Member Functions inherited from Task
static uiString stdNrDoneText ()
 
static uiString uiStdNrDoneText ()
 
- Protected Member Functions inherited from MPE::SectionAdjuster
 SectionAdjuster (EM::SectionID sid=-1)
 
- Protected Member Functions inherited from Task
 Task (const char *nm=0)
 
virtual bool shouldContinue ()
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 
- Static Protected Member Functions inherited from MPE::SectionAdjuster
static const char * sKeyAdjuster ()
 
static const char * sKeyThreshold ()
 
static const char * sKeyRemoveOnFailure ()
 

Detailed Description

SectionAdjuster to adjust EM::Horizon.

Constructor & Destructor Documentation

MPE::HorizonAdjuster::HorizonAdjuster ( EM::Horizon ,
EM::SectionID   
)
MPE::HorizonAdjuster::~HorizonAdjuster ( )

Member Function Documentation

void MPE::HorizonAdjuster::allowAmplitudeSignChange ( bool  )
float MPE::HorizonAdjuster::allowedVariance ( ) const
float MPE::HorizonAdjuster::amplitudeThreshold ( ) const
void MPE::HorizonAdjuster::fillPar ( IOPar ) const
virtual

Reimplemented from MPE::SectionAdjuster.

TypeSet<float>& MPE::HorizonAdjuster::getAllowedVariances ( )
TypeSet<float>& MPE::HorizonAdjuster::getAmplitudeThresholds ( )
TrcKeyZSampling MPE::HorizonAdjuster::getAttribCube ( const Attrib::SelSpec ) const
virtual
Returns
the cube in which I need the given attrib to track in activevolum.

Reimplemented from MPE::SectionAdjuster.

const Attrib::SelSpec* MPE::HorizonAdjuster::getAttributeSel ( int  idx) const
virtual

Reimplemented from MPE::SectionAdjuster.

EventTracker::CompareMethod MPE::HorizonAdjuster::getCompareMethod ( ) const
void MPE::HorizonAdjuster::getNeededAttribs ( TypeSet< Attrib::SelSpec > &  ) const
virtual

Reimplemented from MPE::SectionAdjuster.

int MPE::HorizonAdjuster::getNrAttributes ( ) const
virtual

Reimplemented from MPE::SectionAdjuster.

bool MPE::HorizonAdjuster::hasInitializedSetup ( ) const
virtual

Reimplemented from MPE::SectionAdjuster.

bool MPE::HorizonAdjuster::isAmplitudeSignChangeAllowed ( ) const
int MPE::HorizonAdjuster::nextStep ( )
virtual
Return values
MoreToDo()Not finished. Call me again.
Finished()Nothing more to do.
ErrorOccurred()Something went wrong.
Note
if function returns a value greater than cMoreToDo(), it should be interpreted as cMoreToDo().

Implements SequentialTask.

void MPE::HorizonAdjuster::reset ( )
virtual

Reimplemented from MPE::SectionAdjuster.

Interval<float> MPE::HorizonAdjuster::searchWindow ( ) const
void MPE::HorizonAdjuster::setAllowedVariance ( float  v)
void MPE::HorizonAdjuster::setAllowedVariances ( const TypeSet< float > &  avs)
void MPE::HorizonAdjuster::setAmplitudeThreshold ( float  th)
void MPE::HorizonAdjuster::setAmplitudeThresholds ( const TypeSet< float > &  ats)
void MPE::HorizonAdjuster::setAttributeSel ( int  idx,
const Attrib::SelSpec  
)
virtual

Reimplemented from MPE::SectionAdjuster.

void MPE::HorizonAdjuster::setCompareMethod ( EventTracker::CompareMethod  )
void MPE::HorizonAdjuster::setHorizonPick ( const TrcKey ,
float  val 
)
private
void MPE::HorizonAdjuster::setSearchWindow ( const Interval< float > &  rg)
void MPE::HorizonAdjuster::setSimilarityThreshold ( float  th)
void MPE::HorizonAdjuster::setSimilarityWindow ( const Interval< float > &  rg)
void MPE::HorizonAdjuster::setSnapToEvent ( bool  )
void MPE::HorizonAdjuster::setTrackByValue ( bool  yn)
void MPE::HorizonAdjuster::setTrackEvent ( VSEvent::Type  ev)
void MPE::HorizonAdjuster::setUseAbsThreshold ( bool  abs)
float MPE::HorizonAdjuster::similarityThreshold ( ) const
Interval<float> MPE::HorizonAdjuster::similarityWindow ( ) const
static const char* MPE::HorizonAdjuster::sKeyAttribID ( )
inlinestaticprivate
static const char* MPE::HorizonAdjuster::sKeyTracker ( )
inlinestaticprivate
bool MPE::HorizonAdjuster::snapToEvent ( ) const
bool MPE::HorizonAdjuster::track ( const TrcKey ,
const TrcKey ,
float &   
) const
private
bool MPE::HorizonAdjuster::trackByValue ( ) const
VSEvent::Type MPE::HorizonAdjuster::trackEvent ( ) const
bool MPE::HorizonAdjuster::useAbsThreshold ( ) const
bool MPE::HorizonAdjuster::usePar ( const IOPar )
virtual

Reimplemented from MPE::SectionAdjuster.

Member Data Documentation

Attrib::SelSpec* MPE::HorizonAdjuster::attribsel_
protected
DataPack::ID MPE::HorizonAdjuster::datapackid_
private
DataPackMgr& MPE::HorizonAdjuster::dpm_
private
EventTracker& MPE::HorizonAdjuster::evtracker_
protected
EM::Horizon& MPE::HorizonAdjuster::horizon_
protected

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