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

Main engine for tracking EM objects like horizons, faults etc.,. More...

Inheritance diagram for MPE::Engine:
[legend]

Classes

struct  CacheSpecs
 

Public Types

enum  TrackState { Started, Paused, Stopped }
 

Public Member Functions

 Engine ()
 
virtual ~Engine ()
 
void init ()
 
const TrcKeyZSamplingactiveVolume () const
 
void setActiveVolume (const TrcKeyZSampling &)
 
void setActive2DLine (Pos::GeomID)
 
Pos::GeomID activeGeomID () const
 
void updateSeedOnlyPropagation (bool)
 
TrackState getState () const
 
bool startTracking (uiString &)
 
bool startRetrack (uiString &)
 
bool startFromEdges (uiString &)
 
void stopTracking ()
 
bool trackingInProgress () const
 
void undo (uiString &errmsg)
 
void redo (uiString &errmsg)
 
bool canUnDo ()
 
bool canReDo ()
 
void enableTracking (bool yn)
 
void removeSelectionInPolygon (const Selector< Coord3 > &, TaskRunner *)
 
void getAvailableTrackerTypes (BufferStringSet &) const
 
int nrTrackersAlive () const
 
int highestTrackerID () const
 
const EMTrackergetTracker (int idx) const
 
EMTrackergetTracker (int idx)
 
int getTrackerByObject (const EM::ObjectID &) const
 
int getTrackerByObject (const char *) const
 
int addTracker (EM::EMObject *)
 
void removeTracker (int idx)
 
void setActiveTracker (const EM::ObjectID &)
 
void setActiveTracker (EMTracker *)
 
EMTrackergetActiveTracker ()
 
void setOneActiveTracker (const EMTracker *)
 
void unsetOneActiveTracker ()
 
void getNeededAttribs (TypeSet< Attrib::SelSpec > &) const
 
TrcKeyZSampling getAttribCube (const Attrib::SelSpec &) const
 
int getCacheIndexOf (const Attrib::SelSpec &) const
 
DataPack::ID getAttribCacheID (const Attrib::SelSpec &) const
 
bool hasAttribCache (const Attrib::SelSpec &) const
 
bool setAttribData (const Attrib::SelSpec &, DataPack::ID)
 
bool cacheIncludes (const Attrib::SelSpec &, const TrcKeyZSampling &)
 
void swapCacheAndItsBackup ()
 
bool pickingOnSameData (const Attrib::SelSpec &oldss, const Attrib::SelSpec &newss, uiString &error) const
 
bool isSelSpecSame (const Attrib::SelSpec &setupss, const Attrib::SelSpec &clickedss) const
 
void updateFlatCubesContainer (const TrcKeyZSampling &, int idx, bool)
 
ObjectSet< TrcKeyZSampling > * getTrackedFlatCubes (const int idx) const
 
DataPack::ID getSeedPosDataPack (const TrcKey &, float z, int nrtrcs, const StepInterval< float > &zrg) const
 
ObjectEditorgetEditor (const EM::ObjectID &, bool create)
 
void removeEditor (const EM::ObjectID &)
 
void setValidator (TrackSettingsValidator *)
 
const char * errMsg () const
 
BufferString setupFileName (const MultiID &) const
 
void fillPar (IOPar &) const
 
bool usePar (const IOPar &)
 
const TrcKeyPathactivePath () const
 
void setActivePath (const TrcKeyPath *)
 
int activeRandomLineID () const
 
void setActiveRandomLineID (int)
 
void refTracker (EM::ObjectID)
 
void unRefTracker (EM::ObjectID, bool nodel=false)
 
bool hasTracker (EM::ObjectID) const
 
- 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...
 

Public Attributes

Notifier< Engineactivevolumechange
 
Notifier< EngineloadEMObject
 
MultiID midtoload
 
Notifier< EngineactionCalled
 
Notifier< EngineactionFinished
 
Notifier< Enginetrackeraddremove
 
Notifier< EnginesettingsChanged
 

Protected Member Functions

bool prepareForTrackInVolume (uiString &)
 
bool prepareForRetrack ()
 
bool trackInVolume ()
 
bool trackFromEdges ()
 
void trackingFinishedCB (CallBacker *)
 
EM::EMObjectgetCurrentEMObject () const
 
 struct (MPEEngine) FlatCubeInfo
 
void applClosingCB (CallBacker *)
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Static Protected Member Functions

static const char * sKeyNrTrackers ()
 
static const char * sKeyObjectID ()
 
static const char * sKeyEnabled ()
 
static const char * sKeyTrackPlane ()
 
static const char * sKeySeedConMode ()
 

Protected Attributes

BufferString errmsg_
 
TrcKeyZSampling activevolume_
 
Pos::GeomID activegeomid_
 
TrackState state_
 
ObjectSet< HorizonTrackerMgrtrackermgrs_
 
ObjectSet< EMTrackertrackers_
 
ObjectSet< ObjectEditoreditors_
 
const EMTrackeroneactivetracker_
 
EMTrackeractivetracker_
 
int undoeventid_
 
DataPackMgrdpm_
 
const TrcKeyPathrdmlinetkpath_
 
int rdlid_
 
TrackSettingsValidatorvalidator_
 
TypeSet< DataPack::IDattribcachedatapackids_
 
ObjectSet< CacheSpecsattribcachespecs_
 
TypeSet< DataPack::IDattribbkpcachedatapackids_
 
ObjectSet< CacheSpecsattribbackupcachespecs_
 
ObjectSet< ObjectSet< FlatCubeInfo > > flatcubescontainer_
 

Private Member Functions

 mODTextTranslationClass (Engine) friend Engine &engine()
 

Detailed Description

Main engine for tracking EM objects like horizons, faults etc.,.

Member Enumeration Documentation

Enumerator
Started 
Paused 
Stopped 

Constructor & Destructor Documentation

MPE::Engine::Engine ( )
virtual MPE::Engine::~Engine ( )
virtual

Member Function Documentation

Pos::GeomID MPE::Engine::activeGeomID ( ) const
const TrcKeyPath* MPE::Engine::activePath ( ) const
int MPE::Engine::activeRandomLineID ( ) const
const TrcKeyZSampling& MPE::Engine::activeVolume ( ) const
int MPE::Engine::addTracker ( EM::EMObject )
void MPE::Engine::applClosingCB ( CallBacker )
protected
bool MPE::Engine::cacheIncludes ( const Attrib::SelSpec ,
const TrcKeyZSampling  
)
bool MPE::Engine::canReDo ( )
bool MPE::Engine::canUnDo ( )
void MPE::Engine::enableTracking ( bool  yn)
const char* MPE::Engine::errMsg ( ) const
void MPE::Engine::fillPar ( IOPar ) const
EMTracker* MPE::Engine::getActiveTracker ( )
DataPack::ID MPE::Engine::getAttribCacheID ( const Attrib::SelSpec ) const
TrcKeyZSampling MPE::Engine::getAttribCube ( const Attrib::SelSpec ) const

Returns the cube that is needed for this attrib, given that the activearea should be tracked.

void MPE::Engine::getAvailableTrackerTypes ( BufferStringSet ) const
int MPE::Engine::getCacheIndexOf ( const Attrib::SelSpec ) const
EM::EMObject* MPE::Engine::getCurrentEMObject ( ) const
protected
ObjectEditor* MPE::Engine::getEditor ( const EM::ObjectID ,
bool  create 
)
void MPE::Engine::getNeededAttribs ( TypeSet< Attrib::SelSpec > &  ) const
DataPack::ID MPE::Engine::getSeedPosDataPack ( const TrcKey ,
float  z,
int  nrtrcs,
const StepInterval< float > &  zrg 
) const
TrackState MPE::Engine::getState ( ) const
inline
ObjectSet<TrcKeyZSampling>* MPE::Engine::getTrackedFlatCubes ( const int  idx) const
const EMTracker* MPE::Engine::getTracker ( int  idx) const
EMTracker* MPE::Engine::getTracker ( int  idx)
int MPE::Engine::getTrackerByObject ( const EM::ObjectID ) const
int MPE::Engine::getTrackerByObject ( const char *  ) const
bool MPE::Engine::hasAttribCache ( const Attrib::SelSpec ) const
bool MPE::Engine::hasTracker ( EM::ObjectID  ) const
int MPE::Engine::highestTrackerID ( ) const
void MPE::Engine::init ( )
bool MPE::Engine::isSelSpecSame ( const Attrib::SelSpec setupss,
const Attrib::SelSpec clickedss 
) const
MPE::Engine::mODTextTranslationClass ( Engine  )
private
int MPE::Engine::nrTrackersAlive ( ) const
bool MPE::Engine::pickingOnSameData ( const Attrib::SelSpec oldss,
const Attrib::SelSpec newss,
uiString error 
) const
bool MPE::Engine::prepareForRetrack ( )
protected
bool MPE::Engine::prepareForTrackInVolume ( uiString )
protected
void MPE::Engine::redo ( uiString errmsg)
void MPE::Engine::refTracker ( EM::ObjectID  )
void MPE::Engine::removeEditor ( const EM::ObjectID )
void MPE::Engine::removeSelectionInPolygon ( const Selector< Coord3 > &  ,
TaskRunner  
)
void MPE::Engine::removeTracker ( int  idx)
void MPE::Engine::setActive2DLine ( Pos::GeomID  )
void MPE::Engine::setActivePath ( const TrcKeyPath )
void MPE::Engine::setActiveRandomLineID ( int  )
void MPE::Engine::setActiveTracker ( const EM::ObjectID )
void MPE::Engine::setActiveTracker ( EMTracker )
void MPE::Engine::setActiveVolume ( const TrcKeyZSampling )
bool MPE::Engine::setAttribData ( const Attrib::SelSpec ,
DataPack::ID   
)
void MPE::Engine::setOneActiveTracker ( const EMTracker )
BufferString MPE::Engine::setupFileName ( const MultiID ) const
void MPE::Engine::setValidator ( TrackSettingsValidator )
static const char* MPE::Engine::sKeyEnabled ( )
inlinestaticprotected
static const char* MPE::Engine::sKeyNrTrackers ( )
inlinestaticprotected
static const char* MPE::Engine::sKeyObjectID ( )
inlinestaticprotected
static const char* MPE::Engine::sKeySeedConMode ( )
inlinestaticprotected
static const char* MPE::Engine::sKeyTrackPlane ( )
inlinestaticprotected
bool MPE::Engine::startFromEdges ( uiString )
bool MPE::Engine::startRetrack ( uiString )
bool MPE::Engine::startTracking ( uiString )
void MPE::Engine::stopTracking ( )
MPE::Engine::struct ( MPEEngine  )
inlineprotected
void MPE::Engine::swapCacheAndItsBackup ( )
bool MPE::Engine::trackFromEdges ( )
protected
void MPE::Engine::trackingFinishedCB ( CallBacker )
protected
bool MPE::Engine::trackingInProgress ( ) const
bool MPE::Engine::trackInVolume ( )
protected
void MPE::Engine::undo ( uiString errmsg)
void MPE::Engine::unRefTracker ( EM::ObjectID  ,
bool  nodel = false 
)
void MPE::Engine::unsetOneActiveTracker ( )
void MPE::Engine::updateFlatCubesContainer ( const TrcKeyZSampling ,
int  idx,
bool   
)

add = true, remove = false.

void MPE::Engine::updateSeedOnlyPropagation ( bool  )
bool MPE::Engine::usePar ( const IOPar )

Member Data Documentation

Notifier<Engine> MPE::Engine::actionCalled
Notifier<Engine> MPE::Engine::actionFinished
Pos::GeomID MPE::Engine::activegeomid_
protected
EMTracker* MPE::Engine::activetracker_
protected
TrcKeyZSampling MPE::Engine::activevolume_
protected
Notifier<Engine> MPE::Engine::activevolumechange
ObjectSet<CacheSpecs> MPE::Engine::attribbackupcachespecs_
protected
TypeSet<DataPack::ID> MPE::Engine::attribbkpcachedatapackids_
protected
TypeSet<DataPack::ID> MPE::Engine::attribcachedatapackids_
protected
ObjectSet<CacheSpecs> MPE::Engine::attribcachespecs_
protected
DataPackMgr& MPE::Engine::dpm_
protected
ObjectSet<ObjectEditor> MPE::Engine::editors_
protected
BufferString MPE::Engine::errmsg_
protected
ObjectSet<ObjectSet<FlatCubeInfo> > MPE::Engine::flatcubescontainer_
protected
Notifier<Engine> MPE::Engine::loadEMObject
MultiID MPE::Engine::midtoload
const EMTracker* MPE::Engine::oneactivetracker_
protected
int MPE::Engine::rdlid_
protected
const TrcKeyPath* MPE::Engine::rdmlinetkpath_
protected
Notifier<Engine> MPE::Engine::settingsChanged
TrackState MPE::Engine::state_
protected
Notifier<Engine> MPE::Engine::trackeraddremove
ObjectSet<HorizonTrackerMgr> MPE::Engine::trackermgrs_
protected
ObjectSet<EMTracker> MPE::Engine::trackers_
protected
int MPE::Engine::undoeventid_
protected
TrackSettingsValidator* MPE::Engine::validator_
protected

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