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

Random position Body. More...

Inheritance diagram for EM::RandomPosBody:
[legend]

Public Member Functions

 RandomPosBody (EM::EMManager &)
 
bool addPos (const Coord3 &)
 
virtual bool canSetSectionName () const
 
void copyFrom (const DataPointSet &, int dpscolid, const Interval< float > &valrg)
 
void copyFrom (const DataPointSet &, int selgrp)
 
void copyFrom (const Pick::Set &)
 
ImplicitBodycreateImplicitBody (TaskRunner *, bool) const
 
void fillBodyPar (IOPar &) const
 Should be mapped to EMObject::fillPar;. More...
 
bool getBodyRange (TrcKeyZSampling &)
 
const IOObjContextgetIOObjContext () const
 
Coord3 getPos (const EM::PosID &) const
 
Coord3 getPos (const EM::SectionID &, const EM::SubID &) const
 
const TypeSet< Coord3 > & getPositions () const
 
const char * getTypeStr () const
 
uiString getUserTypeStr () const
 
virtual bool isEmpty () const
 
virtual Executorloader ()
 
virtual int nrSections () const
 
const TypeSet< EM::SubID > & posIDs () const
 
void refBody ()
 Should be mapped to EMObject::ref() More...
 
virtual Executorsaver ()
 
virtual Executorsaver (IOObj *)
 
Geometry::ElementsectionGeometry (const SectionID &)
 
const Geometry::ElementsectionGeometry (const SectionID &) const
 
virtual SectionID sectionID (int) const
 
void setNewName ()
 
bool setPos (const EM::PosID &, const Coord3 &, bool addtohistory)
 
bool setPos (const EM::SectionID &, const EM::SubID &, const Coord3 &, bool addtohistory)
 
void setPositions (const TypeSet< Coord3 > &)
 
MultiID storageID () const
 
BufferString storageName () const
 
const char * type () const
 
void unRefBody ()
 Should be mapped to EMObject::unRef() More...
 
bool useBodyPar (const IOPar &)
 Should be mapped to EMObject::usePar;. More...
 
- Public Member Functions inherited from EM::Body
const IOObjContextgetBodyContext () const
 
- Public Member Functions inherited from EM::EMObject
virtual void addPosAttrib (int attr)
 
virtual int addPosAttribName (const char *)
 
void changePosID (const EM::PosID &from, const EM::PosID &to, bool addtohistory)
 
virtual EMObjectIteratorcreateIterator (const EM::SectionID &, const TrcKeyZSampling *=0) const
 
void emptyRemovedPolySelectedPosBox ()
 
virtual bool enableGeometryChecks (bool)
 
uiString errMsg () const
 
virtual void fillDisplayPar (IOPar &) const
 
virtual void fillPar (IOPar &) const
 
virtual void getLinkedPos (const EM::PosID &posid, TypeSet< EM::PosID > &) const
 
virtual const ColorgetLockColor () const
 
virtual const Array2D< char > * getLockedNodes () const
 
const TypeSet< PosID > * getPosAttribList (int attr) const
 
const MarkerStyle3DgetPosAttrMarkerStyle (int attr) const
 
const TrcKeyZSampling getRemovedPolySelectedPosBox ()
 
const ColorgetSelectionColor () const
 
bool hasBurstAlert () const
 
virtual bool hasLockedNodes () const
 
virtual bool hasNodeSourceType (const PosID &) const
 
virtual bool hasPosAttrib (int attr) const
 
const ObjectIDid () const
 
virtual bool isAtEdge (const EM::PosID &) const
 
virtual bool isChanged () const
 
virtual bool isDefined (const EM::PosID &) const
 
virtual bool isDefined (const EM::SectionID &, const EM::SubID &) const
 
bool isFullyLoaded () const
 
virtual bool isGeometryChecksEnabled () const
 
bool isInsideSelRemoval () const
 
virtual bool isLoaded () const
 
virtual bool isLocked () const
 
virtual bool isNodeLocked (const PosID &) const
 
virtual bool isNodeLocked (const TrcKey &) const
 
virtual bool isNodeSourceType (const PosID &, NodeSourceType) const
 
virtual bool isNodeSourceType (const TrcKey &, NodeSourceType) const
 
virtual bool isOK () const
 
virtual bool isPosAttrib (const EM::PosID &, int attr) const
 
virtual bool isPosAttribLocked (int attr) const
 
bool isSelRemoving () const
 
virtual void lock (bool yn)
 
virtual void lockAll ()
 
virtual void lockPosAttrib (int attr, bool yn)
 
 mDeclInstanceCreatedNotifierAccess (EMObject)
 
const MultiIDmultiID () const
 
virtual int nrPosAttribs () const
 
virtual int posAttrib (int idx) const
 
virtual const char * posAttribName (int) const
 
const ColorpreferredColor () const
 
const OD::LineStylepreferredLineStyle () const
 
void removeAllUnSeedPos ()
 
void removeListOfSubIDs (const TypeSet< EM::SubID > &, const EM::SectionID &)
 
virtual void removePosAttribList (int attr, bool addtohistory=true)
 
virtual bool removeSection (SectionID, bool hist)
 
virtual void removeSelected (const Selector< Coord3 > &, TaskRunner *)
 
void removeSelected (const TypeSet< EM::SubID > &)
 
virtual void resetChangedFlag ()
 
void saveDisplayPars () const
 
Geometry::ElementsectionGeometry (const SectionID &)
 
const Geometry::ElementsectionGeometry (const SectionID &) const
 
virtual int sectionIndex (const SectionID &) const
 
virtual BufferString sectionName (const SectionID &) const
 
void setBurstAlert (bool yn)
 
virtual void setChangedFlag ()
 
void setErrMsg (const uiString &m)
 
void setFullyLoaded (bool yn)
 
virtual void setLockColor (const Color &)
 
void setMultiID (const MultiID &)
 
virtual void setNodeLocked (const TrcKey &, bool locked)
 
virtual void setNodeSourceType (const TrcKey &, NodeSourceType)
 
virtual void setPosAttrib (const EM::PosID &, int attr, bool yn, bool addtohistory=true)
 Sets/unsets the posattrib depending on yn. More...
 
void setPosAttrMarkerStyle (int attr, const MarkerStyle3D &)
 
void setPreferredColor (const Color &, bool addtohistory=false)
 
void setPreferredLineStyle (const OD::LineStyle &)
 
virtual bool setSectionName (const SectionID &, const char *, bool addtohistory)
 
void setSelectionColor (const Color &)
 
mDeprecatedDef uiString uiName () const
 
virtual void unlockAll ()
 
virtual bool unSetPos (const EM::PosID &, bool addtohistory)
 
virtual bool unSetPos (const EM::SectionID &, const EM::SubID &, bool addtohistory)
 
virtual bool useDisplayPar (const IOPar &)
 
virtual bool usePar (const IOPar &)
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=0)
 
 NamedCallBacker (const NamedCallBacker &)
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
bool operator== (const NamedCallBacker &oth) const
 
bool operator== (const NamedObject &oth) 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 Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
virtual const name_typename () const
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual void setName (const char *nm)
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 
- Public Member Functions inherited from RefCount::Referenced
void addObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
int nrRefs () const
 Only for expert use. More...
 
void ref () const
 
bool refIfReffed () const
 Don't use in production, for debugging. More...
 
void removeObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
bool tryRef () const
 Not for normal use. May become private. More...
 
void unRef () const
 
void unRefNoDelete () const
 

Static Public Member Functions

static RandomPosBodycreate (const char *nm)
 
static EMObjectcreate (EM::EMManager &)
 
static void initClass ()
 
static const char * sKeySubIDs ()
 
static FixedString typeStr ()
 
- Static Public Member Functions inherited from EM::EMObject
static int sEdgeControlNode ()
 
static int sIntersectionNode ()
 
static int sPermanentControlNode ()
 
static int sSeedNode ()
 
static int sTemporaryControlNode ()
 
static int sTerminationNode ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Static Public Member Functions inherited from RefCount::Referenced
static bool isSane (const Referenced *)
 

Protected Member Functions

 ~ RandomPosBody ()
 
- Protected Member Functions inherited from EM::Body
 ~Body ()
 
- Protected Member Functions inherited from EM::EMObject
 EMObject (EMManager &)
 must be called after creation More...
 
 ~EMObject ()
 
void posIDChangeCB (CallBacker *)
 
const MarkerStyle3DpreferredMarkerStyle3D () const
 
virtual void prepareForDelete ()
 
virtual void prepareForDelete () const
 
virtual Geometry::ElementsectionGeometryInternal (const SectionID &)
 
void setPreferredMarkerStyle3D (const MarkerStyle3D &)
 
void useDisplayPars (const IOPar &)
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 
- Protected Member Functions inherited from RefCount::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
virtual ~Referenced ()
 
Referencedoperator= (const Referenced &)
 

Protected Attributes

TypeSet< EM::SubIDids_
 
TypeSet< Coord3locations_
 
- Protected Attributes inherited from EM::EMObject
TypeSet< int > attribs_
 
int burstalertcount_
 
bool changed_
 
uiString errmsg_
 
bool fullyloaded_
 
bool haslockednodes_
 
ObjectID id_
 
bool insideselremoval_
 
Color lockcolor_
 
bool locked_
 
class EMManagermanager_
 
BufferString objname_
 
MarkerStyle3Dposattribmarkerstyle_
 
ObjectSet< PosAttribposattribs_
 
Colorpreferredcolor_
 
OD::LineStylepreferredlinestyle_
 
MarkerStyle3Dpreferredmarkerstyle_
 
TrcKeyZSampling removebypolyposbox_
 
Color selectioncolor_
 
bool selremoving_
 
Threads::Lock setposlock_
 
MultiID storageid_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Additional Inherited Members

- Public Types inherited from EM::EMObject
enum  NodeSourceType { None = (int)'0' , Manual =(int)'1' , Auto =(int)'2' , Gridding =(int)'3' }
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Public Attributes inherited from EM::EMObject
CNotifier< EMObject, const EMObjectCallbackData & > change
 
- Static Protected Member Functions inherited from EM::EMObject
static const char * nrposattrstr ()
 
static const char * posattrposidstr ()
 
static const char * posattrprefixstr ()
 
static const char * posattrsectionstr ()
 

Detailed Description

Random position Body.

<>

Constructor & Destructor Documentation

◆ RandomPosBody()

EM::RandomPosBody::RandomPosBody ( EM::EMManager )

◆ ~ RandomPosBody()

EM::RandomPosBody::~ RandomPosBody ( )
protected

Member Function Documentation

◆ addPos()

bool EM::RandomPosBody::addPos ( const Coord3 )

◆ canSetSectionName()

virtual bool EM::RandomPosBody::canSetSectionName ( ) const
inlinevirtual

Reimplemented from EM::EMObject.

◆ copyFrom() [1/3]

void EM::RandomPosBody::copyFrom ( const DataPointSet ,
int  dpscolid,
const Interval< float > &  valrg 
)

◆ copyFrom() [2/3]

void EM::RandomPosBody::copyFrom ( const DataPointSet ,
int  selgrp 
)

◆ copyFrom() [3/3]

void EM::RandomPosBody::copyFrom ( const Pick::Set )

◆ create() [1/2]

static RandomPosBody* EM::RandomPosBody::create ( const char *  nm)
static

◆ create() [2/2]

static EMObject* EM::RandomPosBody::create ( EM::EMManager )
static

◆ createImplicitBody()

ImplicitBody* EM::RandomPosBody::createImplicitBody ( TaskRunner ,
bool   
) const
virtual

Reimplemented from EM::Body.

◆ fillBodyPar()

void EM::RandomPosBody::fillBodyPar ( IOPar ) const
virtual

Should be mapped to EMObject::fillPar;.

Implements EM::Body.

◆ getBodyRange()

bool EM::RandomPosBody::getBodyRange ( TrcKeyZSampling )
virtual

Implements EM::Body.

◆ getIOObjContext()

const IOObjContext& EM::RandomPosBody::getIOObjContext ( ) const
virtual

Implements EM::EMObject.

◆ getPos() [1/2]

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

Reimplemented from EM::EMObject.

◆ getPos() [2/2]

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

Reimplemented from EM::EMObject.

◆ getPositions()

const TypeSet<Coord3>& EM::RandomPosBody::getPositions ( ) const
inline

◆ getTypeStr()

const char* EM::RandomPosBody::getTypeStr ( ) const
virtual

Implements EM::EMObject.

◆ getUserTypeStr()

uiString EM::RandomPosBody::getUserTypeStr ( ) const
inlinevirtual

Implements EM::EMObject.

◆ initClass()

static void EM::RandomPosBody::initClass ( )
static

◆ isEmpty()

virtual bool EM::RandomPosBody::isEmpty ( ) const
virtual

Reimplemented from EM::EMObject.

◆ loader()

virtual Executor* EM::RandomPosBody::loader ( )
virtual

Reimplemented from EM::EMObject.

◆ nrSections()

virtual int EM::RandomPosBody::nrSections ( ) const
inlinevirtual

Implements EM::EMObject.

◆ posIDs()

const TypeSet<EM::SubID>& EM::RandomPosBody::posIDs ( ) const
inline

◆ refBody()

void EM::RandomPosBody::refBody ( )
virtual

Should be mapped to EMObject::ref()

Implements EM::Body.

◆ saver() [1/2]

virtual Executor* EM::RandomPosBody::saver ( )
virtual

Reimplemented from EM::EMObject.

◆ saver() [2/2]

virtual Executor* EM::RandomPosBody::saver ( IOObj )
virtual

◆ sectionGeometry() [1/2]

Geometry::Element* EM::RandomPosBody::sectionGeometry ( const SectionID )
inline

◆ sectionGeometry() [2/2]

const Geometry::Element* EM::RandomPosBody::sectionGeometry ( const SectionID ) const
inline

◆ sectionID()

virtual SectionID EM::RandomPosBody::sectionID ( int  ) const
inlinevirtual

Implements EM::EMObject.

◆ setNewName()

void EM::RandomPosBody::setNewName ( )
virtual

Reimplemented from EM::EMObject.

◆ setPos() [1/2]

bool EM::RandomPosBody::setPos ( const EM::PosID ,
const Coord3 ,
bool  addtohistory 
)
virtual

Reimplemented from EM::EMObject.

◆ setPos() [2/2]

bool EM::RandomPosBody::setPos ( const EM::SectionID ,
const EM::SubID ,
const Coord3 ,
bool  addtohistory 
)
virtual

Reimplemented from EM::EMObject.

◆ setPositions()

void EM::RandomPosBody::setPositions ( const TypeSet< Coord3 > &  )

◆ sKeySubIDs()

static const char* EM::RandomPosBody::sKeySubIDs ( )
inlinestatic

◆ storageID()

MultiID EM::RandomPosBody::storageID ( ) const
virtual

Implements EM::Body.

◆ storageName()

BufferString EM::RandomPosBody::storageName ( ) const
virtual

Implements EM::Body.

◆ type()

const char* EM::RandomPosBody::type ( ) const
inlinevirtual

Implements EM::Body.

◆ typeStr()

static FixedString EM::RandomPosBody::typeStr ( )
static

◆ unRefBody()

void EM::RandomPosBody::unRefBody ( )
virtual

Should be mapped to EMObject::unRef()

Implements EM::Body.

◆ useBodyPar()

bool EM::RandomPosBody::useBodyPar ( const IOPar )
virtual

Should be mapped to EMObject::usePar;.

Reimplemented from EM::Body.

Member Data Documentation

◆ ids_

TypeSet<EM::SubID> EM::RandomPosBody::ids_
protected

◆ locations_

TypeSet<Coord3> EM::RandomPosBody::locations_
protected

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