OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MPE::Horizon2DExtender Class Reference

SectionExtender to extend EM::Horizon2D. More...

Inheritance diagram for MPE::Horizon2DExtender:
[legend]

Public Member Functions

 Horizon2DExtender (EM::Horizon2D &)
 
 Horizon2DExtender (EM::Horizon2D &h2d, EM::SectionID)
 
 ~Horizon2DExtender ()
 
Pos::GeomID geomID () const
 
float getAngleThreshold () const
 
const TrcKeyValuegetDirection () const override
 
int nextStep () override
 
void setAngleThreshold (float radians)
 
void setDirection (const TrcKeyValue &) override
 
void setGeomID (Pos::GeomID)
 
- Public Member Functions inherited from MPE::SectionExtender
virtual ~SectionExtender ()
 
const char * errMsg () const
 
void excludePositions (const TypeSet< TrcKey > *)
 
void extendInVolume (const BinID &bidstep, float zstep)
 
virtual void fillPar (IOPar &) const
 
const TypeSet< TrcKey > & getAddedPositions () const
 
const TypeSet< TrcKey > & getAddedPositionsSource () const
 
virtual const TrcKeyZSamplinggetExtBoundary () const
 
bool isExcludedPos (const TrcKey &) const
 
virtual int maxNrPosInExtArea () const
 
int nextStep () override
 
virtual void preallocExtArea ()
 
virtual void reset ()
 
mDeprecatedObs EM::SectionID sectionID () const
 
void setExtBoundary (const TrcKeyZSampling &)
 
void setStartPosition (const TrcKey &)
 
void setStartPositions (const TypeSet< TrcKey > &)
 
void setUndo (bool yn)
 
void unsetExtBoundary ()
 
virtual bool usePar (const IOPar &)
 
- Public Member Functions inherited from SequentialTask
 SequentialTask (const char *nm=nullptr)
 
virtual ~SequentialTask ()
 
virtual int doStep ()
 
bool execute () override
 
- Public Member Functions inherited from ReportingTask
virtual ~ReportingTask ()
 
void getProgress (const ReportingTask &)
 
- Public Member Functions inherited from Task
virtual ~Task ()
 
virtual void controlWork (Control)
 
virtual void enableWorkControl (bool=true)
 Must be called before execute() More...
 
virtual uiRetVal errorWithDetails () const
 
virtual Control getState () const
 
virtual std::int64_t nrDone () const
 
virtual std::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...
 
bool workControlEnabled () const
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=0)
 
 NamedCallBacker (const NamedCallBacker &)
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
bool operator== (const NamedCallBacker &oth) const
 
bool operator== (const NamedObject &oth) const
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
const name_typename () const override
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual void setName (const char *nm)
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 

Static Public Member Functions

static SectionExtendercreate (EM::EMObject *)
 
static SectionExtendercreate (EM::EMObject *obj, EM::SectionID)
 
static void initClass ()
 
- 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 ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Protected Member Functions

void addNeighbor (bool upwards, const TrcKey &sourcesid)
 
virtual float getDepth (const TrcKey &src, const TrcKey &target) const override
 
virtual void prepareDataIfRequired () override
 
- Protected Member Functions inherited from MPE::SectionExtender
 SectionExtender ()
 
void addTarget (const TrcKey &target, const TrcKey &src)
 
- Protected Member Functions inherited from ReportingTask
 ReportingTask (const char *nm=nullptr)
 
void incrementProgress ()
 
ProgressMeterprogressMeter () const
 
void reportProgressFinished ()
 
void reportProgressStarted ()
 
void resetProgress ()
 
void setProgressMeter (ProgressMeter *) override
 Must be called before execute() More...
 
void updateProgressMeter (bool forced=false, std::int64_t *totalnr=0)
 
void updateReportedName ()
 
- Protected Member Functions inherited from Task
 Task (const char *nm=nullptr)
 
virtual bool shouldContinue ()
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 

Protected Attributes

bool alldirs_ = true
 
float anglethreshold_ = 0.5f
 
TrcKeyValue direction_
 
Pos::GeomID geomid_
 
EM::Horizon2Dhor2d_
 
Coord xydirection_
 
- Protected Attributes inherited from MPE::SectionExtender
TypeSet< TrcKeyaddedpos_
 
TypeSet< TrcKeyaddedpossrc_
 
BufferString errmsg
 
const TypeSet< TrcKey > * excludedpos_ = nullptr
 
TrcKeyZSampling extboundary_
 
bool setundo_ = true
 
TypeSet< TrcKeystartpos_
 
- Protected Attributes inherited from Task
Control control_
 
Threads::ConditionVarworkcontrolcondvar_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Additional Inherited Members

- Public Types inherited from Task
enum  Control { Run , Pause , Stop }
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Public Attributes inherited from ReportingTask
Notifier< ReportingTaskprogressUpdated
 

Detailed Description

SectionExtender to extend EM::Horizon2D.

<>

Constructor & Destructor Documentation

◆ Horizon2DExtender() [1/2]

MPE::Horizon2DExtender::Horizon2DExtender ( EM::Horizon2D )

◆ ~Horizon2DExtender()

MPE::Horizon2DExtender::~Horizon2DExtender ( )

◆ Horizon2DExtender() [2/2]

MPE::Horizon2DExtender::Horizon2DExtender ( EM::Horizon2D h2d,
EM::SectionID   
)
inline

Member Function Documentation

◆ addNeighbor()

void MPE::Horizon2DExtender::addNeighbor ( bool  upwards,
const TrcKey sourcesid 
)
protected

◆ create() [1/2]

static SectionExtender* MPE::Horizon2DExtender::create ( EM::EMObject )
static

◆ create() [2/2]

static SectionExtender* MPE::Horizon2DExtender::create ( EM::EMObject obj,
EM::SectionID   
)
inlinestatic

◆ geomID()

Pos::GeomID MPE::Horizon2DExtender::geomID ( ) const

◆ getAngleThreshold()

float MPE::Horizon2DExtender::getAngleThreshold ( ) const

◆ getDepth()

virtual float MPE::Horizon2DExtender::getDepth ( const TrcKey src,
const TrcKey target 
) const
overrideprotectedvirtual

Reimplemented from MPE::SectionExtender.

◆ getDirection()

const TrcKeyValue* MPE::Horizon2DExtender::getDirection ( ) const
overridevirtual

Reimplemented from MPE::SectionExtender.

◆ initClass()

static void MPE::Horizon2DExtender::initClass ( )
static

◆ nextStep()

int MPE::Horizon2DExtender::nextStep ( )
overridevirtual
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.

◆ prepareDataIfRequired()

virtual void MPE::Horizon2DExtender::prepareDataIfRequired ( )
inlineoverrideprotectedvirtual

Reimplemented from MPE::SectionExtender.

◆ setAngleThreshold()

void MPE::Horizon2DExtender::setAngleThreshold ( float  radians)

◆ setDirection()

void MPE::Horizon2DExtender::setDirection ( const TrcKeyValue )
overridevirtual

Reimplemented from MPE::SectionExtender.

◆ setGeomID()

void MPE::Horizon2DExtender::setGeomID ( Pos::GeomID  )

Member Data Documentation

◆ alldirs_

bool MPE::Horizon2DExtender::alldirs_ = true
protected

◆ anglethreshold_

float MPE::Horizon2DExtender::anglethreshold_ = 0.5f
protected

◆ direction_

TrcKeyValue MPE::Horizon2DExtender::direction_
protected

◆ geomid_

Pos::GeomID MPE::Horizon2DExtender::geomid_
protected

◆ hor2d_

EM::Horizon2D& MPE::Horizon2DExtender::hor2d_
protected

◆ xydirection_

Coord MPE::Horizon2DExtender::xydirection_
protected

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