OpendTect  6.6
Classes | 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]

Classes

struct  EMObjUndo
 

Public Member Functions

 EMManager ()
 
 ~EMManager ()
 
void addObject (EMObject *)
 
void burstAlertToAll (bool yn)
 
EM::ObjectID createObject (const char *type, const char *name)
 
EMObjectcreateTempObject (const char *type)
 
void eraseUndoList ()
 
MultiID getMultiID (const ObjectID &) const
 
EMObjectgetObject (const ObjectID &)
 
const EMObjectgetObject (const ObjectID &) const
 
ObjectID getObjectID (const MultiID &) const
 
bool getSurfaceData (const MultiID &, SurfaceIOData &, uiString &errmsg) const
 
EMObjectloadIfNotFullyLoaded (const MultiID &, TaskRunner *=0)
 
int nrLoadedObjects () const
 
bool objectExists (const EMObject *) const
 
EM::ObjectID objectID (int idx) const
 
ExecutorobjectLoader (const MultiID &, const SurfaceIODataSelection *=0)
 
ExecutorobjectLoader (const TypeSet< MultiID > &, const SurfaceIODataSelection *=0, TypeSet< MultiID > *idstobeloaded=0)
 
BufferString objectName (const MultiID &) const
 
const char * objectType (const MultiID &) const
 
bool readDisplayPars (const MultiID &, IOPar &) const
 
void removeObject (const EMObject *)
 
void removeSelected (const ObjectID &, const Selector< Coord3 > &, TaskRunner *)
 
void setEmpty ()
 
int size () const
 
Undoundo ()
 
const Undoundo () const
 
Undoundo (const EM::ObjectID &)
 
bool writeDisplayPars (const MultiID &, const IOPar &) 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 Attributes

Notifier< EMManageraddRemove
 

Protected Member Functions

void levelToBeRemoved (CallBacker *)
 
bool readParsFromDisplayInfoFile (const MultiID &, IOPar &) const
 
bool readParsFromGeometryInfoFile (const MultiID &, IOPar &) const
 
int undoIndexOf (const EM::ObjectID &id)
 

Static Protected Member Functions

static const char * displayparameterstr ()
 

Protected Attributes

ObjectSet< EMObjectobjects_
 
Undoundo_
 
ObjectSet< EMObjUndoundolist_
 

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

◆ EMManager()

EM::EMManager::EMManager ( )

◆ ~EMManager()

EM::EMManager::~EMManager ( )

Member Function Documentation

◆ addObject()

void EM::EMManager::addObject ( EMObject )

◆ burstAlertToAll()

void EM::EMManager::burstAlertToAll ( bool  yn)

◆ createObject()

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!

◆ createTempObject()

EMObject* EM::EMManager::createTempObject ( const char *  type)

◆ displayparameterstr()

static const char* EM::EMManager::displayparameterstr ( )
staticprotected

◆ eraseUndoList()

void EM::EMManager::eraseUndoList ( )

◆ getMultiID()

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.

◆ getObject() [1/2]

EMObject* EM::EMManager::getObject ( const ObjectID )

◆ getObject() [2/2]

const EMObject* EM::EMManager::getObject ( const ObjectID ) const

◆ getObjectID()

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.

◆ getSurfaceData()

bool EM::EMManager::getSurfaceData ( const MultiID ,
SurfaceIOData ,
uiString errmsg 
) const

◆ levelToBeRemoved()

void EM::EMManager::levelToBeRemoved ( CallBacker )
protected

◆ loadIfNotFullyLoaded()

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).

◆ nrLoadedObjects()

int EM::EMManager::nrLoadedObjects ( ) const
inline

◆ objectExists()

bool EM::EMManager::objectExists ( const EMObject ) const

◆ objectID()

EM::ObjectID EM::EMManager::objectID ( int  idx) const

◆ objectLoader() [1/2]

Executor* EM::EMManager::objectLoader ( const MultiID ,
const SurfaceIODataSelection = 0 
)

◆ objectLoader() [2/2]

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

◆ objectName()

BufferString EM::EMManager::objectName ( const MultiID ) const
Returns
the name of the object

◆ objectType()

const char* EM::EMManager::objectType ( const MultiID ) const
Returns
the type of the object

◆ readDisplayPars()

bool EM::EMManager::readDisplayPars ( const MultiID ,
IOPar  
) const

◆ readParsFromDisplayInfoFile()

bool EM::EMManager::readParsFromDisplayInfoFile ( const MultiID ,
IOPar  
) const
protected

◆ readParsFromGeometryInfoFile()

bool EM::EMManager::readParsFromGeometryInfoFile ( const MultiID ,
IOPar  
) const
protected

◆ removeObject()

void EM::EMManager::removeObject ( const EMObject )

◆ removeSelected()

void EM::EMManager::removeSelected ( const ObjectID ,
const Selector< Coord3 > &  ,
TaskRunner  
)

◆ setEmpty()

void EM::EMManager::setEmpty ( )

◆ size()

int EM::EMManager::size ( ) const
inline

◆ undo() [1/3]

Undo& EM::EMManager::undo ( )

◆ undo() [2/3]

const Undo& EM::EMManager::undo ( ) const

◆ undo() [3/3]

Undo& EM::EMManager::undo ( const EM::ObjectID )

◆ undoIndexOf()

int EM::EMManager::undoIndexOf ( const EM::ObjectID id)
protected

◆ writeDisplayPars()

bool EM::EMManager::writeDisplayPars ( const MultiID ,
const IOPar  
) const

Member Data Documentation

◆ addRemove

Notifier<EMManager> EM::EMManager::addRemove

◆ objects_

ObjectSet<EMObject> EM::EMManager::objects_
protected

◆ undo_

Undo& EM::EMManager::undo_
protected

◆ undolist_

ObjectSet<EMObjUndo> EM::EMManager::undolist_
protected

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