OpendTect-6_4  6.4
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 MultiID &, TaskRunner *=0)
 
EMObjectgetObject (const ObjectID &)
 
const EMObjectgetObject (const ObjectID &) const
 
EMObjectcreateTempObject (const char *type)
 
BufferString objectName (const MultiID &) const
 
const char * objectType (const MultiID &) const
 
ObjectID getObjectID (const MultiID &) const
 
MultiID getMultiID (const ObjectID &) const
 
void burstAlertToAll (bool yn)
 
void removeSelected (const ObjectID &, const Selector< Coord3 > &, TaskRunner *)
 
bool readDisplayPars (const MultiID &, IOPar &) const
 
bool writeDisplayPars (const MultiID &, const IOPar &) const
 
bool getSurfaceData (const MultiID &, SurfaceIOData &, uiString &errmsg) const
 
void setEmpty ()
 
ExecutorobjectLoader (const MultiID &, const SurfaceIODataSelection *=0)
 
ExecutorobjectLoader (const TypeSet< MultiID > &, const SurfaceIODataSelection *=0, TypeSet< MultiID > *idstobeloaded=0)
 
EM::ObjectID createObject (const char *type, const char *name)
 
void addObject (EMObject *)
 
void removeObject (const EMObject *)
 
Undoundo ()
 
const Undoundo () const
 
void eraseUndoList ()
 
Undoundo (const EM::ObjectID &)
 
- 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< EMManageraddRemove
 

Protected Member Functions

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

Static Protected Member Functions

static const char * displayparameterstr ()
 

Protected Attributes

ObjectSet< EMObjUndo > undolist_
 
Undoundo_
 
ObjectSet< EMObjectobjects_
 

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 ( )
MultiID EM::EMManager::getMultiID ( const ObjectID ) const
Note
that the relationship between storage id (MultiID) 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 MultiID ) const
Note
that the relationship between storage id (MultiID) and EarthModel id (ObjectID) may change due to "Save as" operations and similar.
bool EM::EMManager::getSurfaceData ( const MultiID ,
SurfaceIOData ,
uiString errmsg 
) const
void EM::EMManager::levelToBeRemoved ( CallBacker )
protected
EMObject* EM::EMManager::loadIfNotFullyLoaded ( const MultiID ,
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 MultiID ,
const SurfaceIODataSelection = 0 
)
Executor* EM::EMManager::objectLoader ( const TypeSet< MultiID > &  ,
const SurfaceIODataSelection = 0,
TypeSet< MultiID > *  idstobeloaded = 0 
)

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

BufferString EM::EMManager::objectName ( const MultiID ) const
Returns
the name of the object
const char* EM::EMManager::objectType ( const MultiID ) const
Returns
the type of the object
bool EM::EMManager::readDisplayPars ( const MultiID ,
IOPar  
) const
bool EM::EMManager::readParsFromDisplayInfoFile ( const MultiID ,
IOPar  
) const
protected
bool EM::EMManager::readParsFromGeometryInfoFile ( const MultiID ,
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 Undo& EM::EMManager::undo ( ) const
Undo& EM::EMManager::undo ( const EM::ObjectID )
int EM::EMManager::undoIndexOf ( const EM::ObjectID id)
protected
bool EM::EMManager::writeDisplayPars ( const MultiID ,
const IOPar  
) const

Member Data Documentation

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

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