OpendTect  6.3
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
EM::EMManager Class Reference

Manages the loaded/half loaded EM objects in OpendTect. More...

Inheritance diagram for EM::EMManager:
[legend]

Public Member Functions

 EMManager ()
 
 ~EMManager ()
 
int nrLoadedObjects () const
 
int size () const
 
EM::ObjectID objectID (int idx) const
 
bool objectExists (const EMObject *) const
 
EMObjectloadIfNotFullyLoaded (const DBKey &, TaskRunner *=0)
 
EMObjectgetObject (const ObjectID &)
 
const EMObjectgetObject (const ObjectID &) const
 
EMObjectcreateTempObject (const char *type)
 
BufferString objectName (const DBKey &) const
 
const char * objectType (const DBKey &) const
 
ObjectID getObjectID (const DBKey &) const
 
DBKey getDBKey (const ObjectID &) const
 
void burstAlertToAll (bool yn)
 
void removeSelected (const ObjectID &, const Selector< Coord3 > &, TaskRunner *)
 
bool readDisplayPars (const DBKey &, IOPar &) const
 
bool writeDisplayPars (const DBKey &, const IOPar &) const
 
bool getSurfaceData (const DBKey &, SurfaceIOData &, uiString &errmsg) const
 
void setEmpty ()
 
ExecutorobjectLoader (const DBKey &, const SurfaceIODataSelection *=0)
 
ExecutorobjectLoader (const DBKeySet &, const SurfaceIODataSelection *=0, DBKeySet *idstobeloaded=0)
 
EM::ObjectID createObject (const char *type, const char *name)
 
void addObject (EMObject *)
 
void removeObject (const EMObject *)
 
void eraseUndoList ()
 
Undoundo (const EM::ObjectID &)
 
- 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 detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
virtual bool isCapsule () const
 
void stopReceivingNotifications () const
 

Public Attributes

Notifier< EMManageraddRemove
 

Protected Member Functions

 struct (EarthModel) EMObjUndo
 
void levelSetChgCB (CallBacker *)
 
bool readParsFromDisplayInfoFile (const DBKey &, IOPar &) const
 
bool readParsFromGeometryInfoFile (const DBKey &, IOPar &) const
 
int undoIndexOf (const EM::ObjectID &id)
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 

Static Protected Member Functions

static const char * displayparameterstr ()
 

Protected Attributes

ObjectSet< EMObjectobjects_
 
ObjectSet< EMObjUndo > undolist_
 

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Detailed Description

Manages the loaded/half loaded EM objects in OpendTect.

Constructor & Destructor Documentation

EM::EMManager::EMManager ( )
EM::EMManager::~EMManager ( )

Member Function Documentation

void EM::EMManager::addObject ( EMObject )
void EM::EMManager::burstAlertToAll ( bool  yn)
EM::ObjectID EM::EMManager::createObject ( const char *  type,
const char *  name 
)

Creates a new object, saves it and loads it. Removes any loaded object with the same name!

EMObject* EM::EMManager::createTempObject ( const char *  type)
static const char* EM::EMManager::displayparameterstr ( )
staticprotected
void EM::EMManager::eraseUndoList ( )
DBKey EM::EMManager::getDBKey ( const ObjectID ) const
Note
that the relationship between storage id (DBKey) and EarthModel id (ObjectID) may change due to "Save as" operations and similar.
EMObject* EM::EMManager::getObject ( const ObjectID )
const EMObject* EM::EMManager::getObject ( const ObjectID ) const
ObjectID EM::EMManager::getObjectID ( const DBKey ) const
Note
that the relationship between storage id (DBKey) and EarthModel id (ObjectID) may change due to "Save as" operations and similar.
bool EM::EMManager::getSurfaceData ( const DBKey ,
SurfaceIOData ,
uiString errmsg 
) const
void EM::EMManager::levelSetChgCB ( CallBacker )
protected
EMObject* EM::EMManager::loadIfNotFullyLoaded ( const DBKey ,
TaskRunner = 0 
)

If fully loaded, the loaded instance will be returned. Otherwise, it will be loaded. Returned object must be reffed by caller (and eventually unreffed).

int EM::EMManager::nrLoadedObjects ( ) const
inline
bool EM::EMManager::objectExists ( const EMObject ) const
EM::ObjectID EM::EMManager::objectID ( int  idx) const
Executor* EM::EMManager::objectLoader ( const DBKey ,
const SurfaceIODataSelection = 0 
)
Executor* EM::EMManager::objectLoader ( const DBKeySet ,
const SurfaceIODataSelection = 0,
DBKeySet idstobeloaded = 0 
)

idstobeloaded are the ids for which the objects will be actually loaded

BufferString EM::EMManager::objectName ( const DBKey ) const
Returns
the name of the object
const char* EM::EMManager::objectType ( const DBKey ) const
Returns
the type of the object
bool EM::EMManager::readDisplayPars ( const DBKey ,
IOPar  
) const
bool EM::EMManager::readParsFromDisplayInfoFile ( const DBKey ,
IOPar  
) const
protected
bool EM::EMManager::readParsFromGeometryInfoFile ( const DBKey ,
IOPar  
) const
protected
void EM::EMManager::removeObject ( const EMObject )
void EM::EMManager::removeSelected ( const ObjectID ,
const Selector< Coord3 > &  ,
TaskRunner  
)
void EM::EMManager::setEmpty ( )
int EM::EMManager::size ( ) const
inline
EM::EMManager::struct ( EarthModel  )
inlineprotected
Undo& EM::EMManager::undo ( const EM::ObjectID )
int EM::EMManager::undoIndexOf ( const EM::ObjectID id)
protected
bool EM::EMManager::writeDisplayPars ( const DBKey ,
const IOPar  
) const

Member Data Documentation

Notifier<EMManager> EM::EMManager::addRemove
ObjectSet<EMObject> EM::EMManager::objects_
protected
ObjectSet<EMObjUndo> EM::EMManager::undolist_
protected

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