OpendTect-6_4  6.4
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
EM::EMObject Class Referenceabstract

Base class for all EarthModel objects. More...

Inheritance diagram for EM::EMObject:
[legend]

Public Types

enum  NodeSourceType { None = (int)'0', Manual =(int)'1', Auto =(int)'2', Gridding =(int)'3' }
 

Public Member Functions

const ObjectIDid () const
 
virtual const char * getTypeStr () const =0
 
virtual uiString getUserTypeStr () const =0
 
const MultiIDmultiID () const
 
void setMultiID (const MultiID &)
 
virtual bool isOK () const
 
void setName (const char *nm)
 
BufferString name () const
 
uiString uiName () const
 
virtual void setNewName ()
 
virtual int nrSections () const =0
 
virtual SectionID sectionID (int) const =0
 
virtual BufferString sectionName (const SectionID &) const
 
virtual bool canSetSectionName () const
 
virtual bool setSectionName (const SectionID &, const char *, bool addtohistory)
 
virtual int sectionIndex (const SectionID &) const
 
virtual bool removeSection (SectionID, bool hist)
 
const Geometry::ElementsectionGeometry (const SectionID &) const
 
Geometry::ElementsectionGeometry (const SectionID &)
 
const ColorpreferredColor () const
 
void setPreferredColor (const Color &, bool addtohistory=false)
 
const OD::LineStylepreferredLineStyle () const
 
void setPreferredLineStyle (const OD::LineStyle &)
 
void setBurstAlert (bool yn)
 
bool hasBurstAlert () const
 
virtual Coord3 getPos (const EM::PosID &) const
 
virtual Coord3 getPos (const EM::SectionID &, const EM::SubID &) const
 
virtual bool isDefined (const EM::PosID &) const
 
virtual bool isDefined (const EM::SectionID &, const EM::SubID &) const
 
virtual bool setPos (const EM::PosID &, const Coord3 &, bool addtohistory)
 
virtual bool setPos (const EM::SectionID &, const EM::SubID &, const Coord3 &, bool addtohistory)
 
virtual bool unSetPos (const EM::PosID &, bool addtohistory)
 
virtual bool unSetPos (const EM::SectionID &, const EM::SubID &, bool addtohistory)
 
virtual void setNodeSourceType (const TrcKey &, NodeSourceType)
 
virtual bool isNodeSourceType (const PosID &, NodeSourceType) const
 
virtual bool isNodeSourceType (const TrcKey &, NodeSourceType) const
 
virtual void setNodeLocked (const TrcKey &, bool locked)
 
virtual bool isNodeLocked (const TrcKey &) const
 
virtual bool isNodeLocked (const PosID &) const
 
virtual void lockAll ()
 
virtual void unlockAll ()
 
virtual const Array2D< char > * getLockedNodes () const
 
virtual void setLockColor (const Color &)
 
virtual const ColorgetLockColor () const
 
virtual bool hasLockedNodes () const
 
virtual bool hasNodeSourceType (const PosID &) const
 
void setSelectionColor (const Color &)
 
const ColorgetSelectionColor () const
 
virtual bool enableGeometryChecks (bool)
 
virtual bool isGeometryChecksEnabled () const
 
virtual bool isAtEdge (const EM::PosID &) const
 
void changePosID (const EM::PosID &from, const EM::PosID &to, bool addtohistory)
 
virtual void getLinkedPos (const EM::PosID &posid, TypeSet< EM::PosID > &) const
 
virtual EMObjectIteratorcreateIterator (const EM::SectionID &, const TrcKeyZSampling *=0) const
 
virtual int nrPosAttribs () const
 
virtual int posAttrib (int idx) const
 
virtual void addPosAttrib (int attr)
 
virtual void removePosAttribList (int attr, bool addtohistory=true)
 
virtual void setPosAttrib (const EM::PosID &, int attr, bool yn, bool addtohistory=true)
 Sets/unsets the posattrib depending on yn. More...
 
virtual bool isPosAttrib (const EM::PosID &, int attr) const
 
virtual const char * posAttribName (int) const
 
virtual int addPosAttribName (const char *)
 
const TypeSet< PosID > * getPosAttribList (int attr) const
 
const MarkerStyle3DgetPosAttrMarkerStyle (int attr)
 
void setPosAttrMarkerStyle (int attr, const MarkerStyle3D &)
 
virtual void lockPosAttrib (int attr, bool yn)
 
virtual bool isPosAttribLocked (int attr) const
 
virtual void removeSelected (const Selector< Coord3 > &, TaskRunner *)
 
void removeSelected (const TypeSet< EM::SubID > &)
 
void removeListOfSubIDs (const TypeSet< EM::SubID > &, const EM::SectionID &)
 
void removeAllUnSeedPos ()
 
const TrcKeyZSampling getRemovedPolySelectedPosBox ()
 
void emptyRemovedPolySelectedPosBox ()
 
virtual Executorloader ()
 
virtual bool isLoaded () const
 
virtual Executorsaver ()
 
virtual bool isChanged () const
 
virtual bool isEmpty () const
 
virtual void setChangedFlag ()
 
virtual void resetChangedFlag ()
 
bool isFullyLoaded () const
 
void setFullyLoaded (bool yn)
 
virtual bool isLocked () const
 
virtual void lock (bool yn)
 
bool isInsideSelRemoval () const
 
bool isSelRemoving () const
 
uiString errMsg () const
 
void setErrMsg (const uiString &m)
 
virtual bool usePar (const IOPar &)
 
virtual void fillPar (IOPar &) const
 
void saveDisplayPars () const
 
virtual bool useDisplayPar (const IOPar &)
 
virtual void fillDisplayPar (IOPar &) const
 
virtual const IOObjContextgetIOObjContext () const =0
 
- 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...
 

Static Public Member Functions

static int sPermanentControlNode ()
 
static int sTemporaryControlNode ()
 
static int sEdgeControlNode ()
 
static int sTerminationNode ()
 
static int sSeedNode ()
 
static int sIntersectionNode ()
 

Public Attributes

CNotifier< EMObject, const EMObjectCallbackData & > change
 

Protected Member Functions

 EMObject (EMManager &)
 must be called after creation More...
 
virtual Geometry::ElementsectionGeometryInternal (const SectionID &)
 
virtual void prepareForDelete () const
 
void posIDChangeCB (CallBacker *)
 
const MarkerStyle3DpreferredMarkerStyle3D () const
 
void setPreferredMarkerStyle3D (const MarkerStyle3D &)
 
void useDisplayPars (const IOPar &)
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Static Protected Member Functions

static const char * nrposattrstr ()
 
static const char * posattrprefixstr ()
 
static const char * posattrsectionstr ()
 
static const char * posattrposidstr ()
 

Protected Attributes

BufferString objname_
 
ObjectID id_
 
MultiID storageid_
 
class EMManagermanager_
 
uiString errmsg_
 
Colorpreferredcolor_
 
OD::LineStylepreferredlinestyle_
 
MarkerStyle3Dpreferredmarkerstyle_
 
ObjectSet< PosAttribposattribs_
 
TypeSet< int > attribs_
 
TrcKeyZSampling removebypolyposbox_
 
bool changed_
 
bool fullyloaded_
 
bool locked_
 
int burstalertcount_
 
Threads::Lock setposlock_
 
bool haslockednodes_
 
Color lockcolor_
 
Color selectioncolor_
 
bool insideselremoval_
 
bool selremoving_
 

Private Member Functions

 mRefCountImplWithDestructor (EMObject, virtual ~EMObject(),{prepareForDelete();delete this;})
 

Detailed Description

Base class for all EarthModel objects.

Member Enumeration Documentation

Enumerator
None 
Manual 
Auto 
Gridding 

Constructor & Destructor Documentation

EM::EMObject::EMObject ( EMManager )
protected

must be called after creation

Member Function Documentation

virtual void EM::EMObject::addPosAttrib ( int  attr)
virtual
virtual int EM::EMObject::addPosAttribName ( const char *  )
virtual
virtual bool EM::EMObject::canSetSectionName ( ) const
virtual
void EM::EMObject::changePosID ( const EM::PosID from,
const EM::PosID to,
bool  addtohistory 
)

Tells the object that the node former known as from is now called to. Function will also exchange set the position of to to the posion of from.

virtual EMObjectIterator* EM::EMObject::createIterator ( const EM::SectionID ,
const TrcKeyZSampling = 0 
) const
inlinevirtual

creates an iterator. If the sectionid is -1, all sections will be traversed.

Reimplemented in EM::Surface.

void EM::EMObject::emptyRemovedPolySelectedPosBox ( )
virtual bool EM::EMObject::enableGeometryChecks ( bool  )
virtual

Reimplemented in EM::Surface.

uiString EM::EMObject::errMsg ( ) const
virtual void EM::EMObject::fillDisplayPar ( IOPar ) const
virtual

Reimplemented in EM::Horizon3D.

virtual void EM::EMObject::fillPar ( IOPar ) const
virtual

Reimplemented in EM::Horizon3D, EM::Horizon, and EM::Surface.

virtual const IOObjContext& EM::EMObject::getIOObjContext ( ) const
pure virtual
virtual void EM::EMObject::getLinkedPos ( const EM::PosID posid,
TypeSet< EM::PosID > &   
) const
inlinevirtual

Gives positions on the object that are linked to the posid given

virtual const Color& EM::EMObject::getLockColor ( ) const
virtual
virtual const Array2D<char>* EM::EMObject::getLockedNodes ( ) const
inlinevirtual

Reimplemented in EM::Horizon3D.

virtual Coord3 EM::EMObject::getPos ( const EM::PosID ) const
virtual

Reimplemented in EM::Horizon2D, EM::StickSet, and EM::RandomPosBody.

virtual Coord3 EM::EMObject::getPos ( const EM::SectionID ,
const EM::SubID  
) const
virtual

Reimplemented in EM::Horizon2D, EM::StickSet, and EM::RandomPosBody.

const TypeSet<PosID>* EM::EMObject::getPosAttribList ( int  attr) const
const MarkerStyle3D& EM::EMObject::getPosAttrMarkerStyle ( int  attr)
const TrcKeyZSampling EM::EMObject::getRemovedPolySelectedPosBox ( )
const Color& EM::EMObject::getSelectionColor ( ) const
virtual const char* EM::EMObject::getTypeStr ( ) const
pure virtual
virtual uiString EM::EMObject::getUserTypeStr ( ) const
pure virtual
bool EM::EMObject::hasBurstAlert ( ) const
virtual bool EM::EMObject::hasLockedNodes ( ) const
inlinevirtual
virtual bool EM::EMObject::hasNodeSourceType ( const PosID ) const
inlinevirtual

Reimplemented in EM::Horizon3D.

const ObjectID& EM::EMObject::id ( ) const
inline
virtual bool EM::EMObject::isAtEdge ( const EM::PosID ) const
virtual

Reimplemented in EM::Surface.

virtual bool EM::EMObject::isChanged ( ) const
inlinevirtual
virtual bool EM::EMObject::isDefined ( const EM::PosID ) const
virtual
virtual bool EM::EMObject::isDefined ( const EM::SectionID ,
const EM::SubID  
) const
virtual
virtual bool EM::EMObject::isEmpty ( ) const
virtual
bool EM::EMObject::isFullyLoaded ( ) const
inline
virtual bool EM::EMObject::isGeometryChecksEnabled ( ) const
virtual

Reimplemented in EM::Surface.

bool EM::EMObject::isInsideSelRemoval ( ) const
inline
virtual bool EM::EMObject::isLoaded ( ) const
inlinevirtual

Reimplemented in EM::StickSet, and EM::Surface.

virtual bool EM::EMObject::isLocked ( ) const
inlinevirtual
virtual bool EM::EMObject::isNodeLocked ( const TrcKey ) const
inlinevirtual

Reimplemented in EM::Horizon3D.

virtual bool EM::EMObject::isNodeLocked ( const PosID ) const
inlinevirtual

Reimplemented in EM::Horizon3D.

virtual bool EM::EMObject::isNodeSourceType ( const PosID ,
NodeSourceType   
) const
inlinevirtual

Reimplemented in EM::Horizon2D, and EM::Horizon3D.

virtual bool EM::EMObject::isNodeSourceType ( const TrcKey ,
NodeSourceType   
) const
inlinevirtual

Reimplemented in EM::Horizon2D, and EM::Horizon3D.

virtual bool EM::EMObject::isOK ( ) const
inlinevirtual
virtual bool EM::EMObject::isPosAttrib ( const EM::PosID ,
int  attr 
) const
virtual
virtual bool EM::EMObject::isPosAttribLocked ( int  attr) const
virtual
bool EM::EMObject::isSelRemoving ( ) const
inline
virtual Executor* EM::EMObject::loader ( )
inlinevirtual
virtual void EM::EMObject::lock ( bool  yn)
inlinevirtual
virtual void EM::EMObject::lockAll ( )
inlinevirtual

Reimplemented in EM::Horizon3D.

virtual void EM::EMObject::lockPosAttrib ( int  attr,
bool  yn 
)
virtual
EM::EMObject::mRefCountImplWithDestructor ( EMObject  ,
virtual ~  EMObject(),
{prepareForDelete();delete this;}   
)
private
const MultiID& EM::EMObject::multiID ( ) const
inline
BufferString EM::EMObject::name ( ) const
virtual int EM::EMObject::nrPosAttribs ( ) const
virtual
static const char* EM::EMObject::nrposattrstr ( )
staticprotected
virtual int EM::EMObject::nrSections ( ) const
pure virtual
virtual int EM::EMObject::posAttrib ( int  idx) const
virtual
virtual const char* EM::EMObject::posAttribName ( int  ) const
virtual
static const char* EM::EMObject::posattrposidstr ( )
staticprotected
static const char* EM::EMObject::posattrprefixstr ( )
staticprotected
static const char* EM::EMObject::posattrsectionstr ( )
staticprotected
void EM::EMObject::posIDChangeCB ( CallBacker )
protected
const Color& EM::EMObject::preferredColor ( ) const
const OD::LineStyle& EM::EMObject::preferredLineStyle ( ) const
const MarkerStyle3D& EM::EMObject::preferredMarkerStyle3D ( ) const
protected
virtual void EM::EMObject::prepareForDelete ( ) const
protectedvirtual
void EM::EMObject::removeAllUnSeedPos ( )
void EM::EMObject::removeListOfSubIDs ( const TypeSet< EM::SubID > &  ,
const EM::SectionID  
)
virtual void EM::EMObject::removePosAttribList ( int  attr,
bool  addtohistory = true 
)
virtual
virtual bool EM::EMObject::removeSection ( SectionID  ,
bool  hist 
)
inlinevirtual

Reimplemented in EM::Surface.

virtual void EM::EMObject::removeSelected ( const Selector< Coord3 > &  ,
TaskRunner  
)
virtual

Reimplemented in EM::Horizon2D.

void EM::EMObject::removeSelected ( const TypeSet< EM::SubID > &  )
virtual void EM::EMObject::resetChangedFlag ( )
inlinevirtual
void EM::EMObject::saveDisplayPars ( ) const
virtual Executor* EM::EMObject::saver ( )
inlinevirtual
const Geometry::Element* EM::EMObject::sectionGeometry ( const SectionID ) const
Geometry::Element* EM::EMObject::sectionGeometry ( const SectionID )
virtual Geometry::Element* EM::EMObject::sectionGeometryInternal ( const SectionID )
protectedvirtual

Reimplemented in EM::Surface.

virtual SectionID EM::EMObject::sectionID ( int  ) const
pure virtual
virtual int EM::EMObject::sectionIndex ( const SectionID ) const
virtual
virtual BufferString EM::EMObject::sectionName ( const SectionID ) const
virtual

Reimplemented in EM::Surface.

static int EM::EMObject::sEdgeControlNode ( )
static
void EM::EMObject::setBurstAlert ( bool  yn)
virtual void EM::EMObject::setChangedFlag ( )
inlinevirtual
void EM::EMObject::setErrMsg ( const uiString m)
inline
void EM::EMObject::setFullyLoaded ( bool  yn)
inline
virtual void EM::EMObject::setLockColor ( const Color )
virtual
void EM::EMObject::setMultiID ( const MultiID )
void EM::EMObject::setName ( const char *  nm)
inline

The IOObj name overrules this

virtual void EM::EMObject::setNewName ( )
virtual
virtual void EM::EMObject::setNodeLocked ( const TrcKey ,
bool  locked 
)
inlinevirtual

Reimplemented in EM::Horizon3D.

virtual void EM::EMObject::setNodeSourceType ( const TrcKey ,
NodeSourceType   
)
inlinevirtual

Reimplemented in EM::Horizon2D, and EM::Horizon3D.

virtual bool EM::EMObject::setPos ( const EM::PosID ,
const Coord3 ,
bool  addtohistory 
)
virtual
virtual bool EM::EMObject::setPos ( const EM::SectionID ,
const EM::SubID ,
const Coord3 ,
bool  addtohistory 
)
virtual
virtual void EM::EMObject::setPosAttrib ( const EM::PosID ,
int  attr,
bool  yn,
bool  addtohistory = true 
)
virtual

Sets/unsets the posattrib depending on yn.

void EM::EMObject::setPosAttrMarkerStyle ( int  attr,
const MarkerStyle3D  
)
void EM::EMObject::setPreferredColor ( const Color ,
bool  addtohistory = false 
)
void EM::EMObject::setPreferredLineStyle ( const OD::LineStyle )
void EM::EMObject::setPreferredMarkerStyle3D ( const MarkerStyle3D )
protected
virtual bool EM::EMObject::setSectionName ( const SectionID ,
const char *  ,
bool  addtohistory 
)
virtual

Reimplemented in EM::Surface.

void EM::EMObject::setSelectionColor ( const Color )
static int EM::EMObject::sIntersectionNode ( )
static
static int EM::EMObject::sPermanentControlNode ( )
static
static int EM::EMObject::sSeedNode ( )
static
static int EM::EMObject::sTemporaryControlNode ( )
static
static int EM::EMObject::sTerminationNode ( )
static
uiString EM::EMObject::uiName ( ) const
inline
virtual void EM::EMObject::unlockAll ( )
inlinevirtual

Reimplemented in EM::Horizon3D.

virtual bool EM::EMObject::unSetPos ( const EM::PosID ,
bool  addtohistory 
)
virtual

Reimplemented in EM::Horizon2D.

virtual bool EM::EMObject::unSetPos ( const EM::SectionID ,
const EM::SubID ,
bool  addtohistory 
)
virtual

Reimplemented in EM::Horizon2D.

virtual bool EM::EMObject::useDisplayPar ( const IOPar )
virtual

Reimplemented in EM::Horizon3D.

void EM::EMObject::useDisplayPars ( const IOPar )
protected
virtual bool EM::EMObject::usePar ( const IOPar )
virtual

Reimplemented in EM::Horizon3D, EM::Horizon, and EM::Surface.

Member Data Documentation

TypeSet<int> EM::EMObject::attribs_
protected
int EM::EMObject::burstalertcount_
protected
CNotifier<EMObject,const EMObjectCallbackData&> EM::EMObject::change
bool EM::EMObject::changed_
protected
uiString EM::EMObject::errmsg_
protected
bool EM::EMObject::fullyloaded_
protected
bool EM::EMObject::haslockednodes_
protected
ObjectID EM::EMObject::id_
protected
bool EM::EMObject::insideselremoval_
protected
Color EM::EMObject::lockcolor_
protected
bool EM::EMObject::locked_
protected
class EMManager& EM::EMObject::manager_
protected
BufferString EM::EMObject::objname_
protected
ObjectSet<PosAttrib> EM::EMObject::posattribs_
protected
Color& EM::EMObject::preferredcolor_
protected
OD::LineStyle& EM::EMObject::preferredlinestyle_
protected
MarkerStyle3D& EM::EMObject::preferredmarkerstyle_
protected
TrcKeyZSampling EM::EMObject::removebypolyposbox_
protected
Color EM::EMObject::selectioncolor_
protected
bool EM::EMObject::selremoving_
protected
Threads::Lock EM::EMObject::setposlock_
protected
MultiID EM::EMObject::storageid_
protected

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