OpendTect  6.6
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 &, EM::SectionID)
 
Pos::GeomID geomID () const
 
float getAngleThreshold () const
 
const TrcKeyValuegetDirection () const
 
int nextStep ()
 
void setAngleThreshold (float radians)
 
void setDirection (const TrcKeyValue &)
 
void setGeomID (Pos::GeomID)
 
- Public Member Functions inherited from MPE::SectionExtender
 SectionExtender (EM::SectionID si=-1)
 
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 ()
 
virtual void preallocExtArea ()
 
virtual void reset ()
 
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 ()
 
ProgressMeterprogressMeter ()
 
const ProgressMeterprogressMeter () const
 
void setProgressMeter (ProgressMeter *)
 Must be called before execute() More...
 
- 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 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...
 
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
 
- 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 &)
 
virtual const name_typename () const
 
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 *, 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
 
virtual void prepareDataIfRequired ()
 
- Protected Member Functions inherited from MPE::SectionExtender
void addTarget (const TrcKey &target, const TrcKey &src)
 
- 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_
 
float anglethreshold_
 
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_
 
TrcKeyZSampling extboundary_
 
bool setundo_
 
const EM::SectionID sid_
 
TypeSet< TrcKeystartpos_
 
- Protected Attributes inherited from SequentialTask
int lastupdate_
 
ProgressMeterprogressmeter_
 
- 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
 

Detailed Description

SectionExtender to extend EM::Horizon2D.

<>

Constructor & Destructor Documentation

◆ Horizon2DExtender()

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

Member Function Documentation

◆ addNeighbor()

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

◆ create()

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

◆ 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
protectedvirtual

Reimplemented from MPE::SectionExtender.

◆ getDirection()

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

Reimplemented from MPE::SectionExtender.

◆ initClass()

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

◆ nextStep()

int MPE::Horizon2DExtender::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.

◆ prepareDataIfRequired()

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

Reimplemented from MPE::SectionExtender.

◆ setAngleThreshold()

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

◆ setDirection()

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

Reimplemented from MPE::SectionExtender.

◆ setGeomID()

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

Member Data Documentation

◆ alldirs_

bool MPE::Horizon2DExtender::alldirs_
protected

◆ anglethreshold_

float MPE::Horizon2DExtender::anglethreshold_
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-2022