OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MPE::PolygonBodyEditor Class Reference

ObjectEditor to edit EM::PolygonBody. More...

Inheritance diagram for MPE::PolygonBodyEditor:
[legend]

Public Member Functions

 PolygonBodyEditor (EM::PolygonBody &)
 
void getInteractionInfo (EM::PosID &nearestpid0, EM::PosID &nearestpid1, EM::PosID &insertpid, const Coord3 &, float zfactor) const
 
bool removeSelection (const Selector< Coord3 > &)
 
void setLastClicked (const EM::PosID &)
 
void setSowingPivot (const Coord3)
 
- Public Member Functions inherited from MPE::ObjectEditor
 ObjectEditor (EM::EMObject &)
 
virtual bool addEditID (const EM::PosID &)
 
void addUser ()
 
bool canSnapAfterEdit (const EM::PosID &) const
 
const EM::EMObjectemObject () const
 
virtual void finishEdit ()
 
virtual int getAlongMovingStyle () const
 
virtual const BufferStringSetgetAlongMovingStyleNames () const
 
virtual Coord3 getDirection (const EM::PosID &) const
 
virtual Coord3 getDirectionPlaneNormal (const EM::PosID &) const
 
virtual void getEditIDs (TypeSet< EM::PosID > &) const
 
virtual Coord3 getNormal (const EM::PosID &) const
 
virtual Coord3 getPosition (const EM::PosID &) const
 
bool getSnapAfterEdit () const
 
virtual bool maySetDirection (const EM::PosID &) const
 
virtual bool maySetNormal (const EM::PosID &) const
 
virtual bool mayTranslate1D (const EM::PosID &) const
 
virtual bool mayTranslate2D (const EM::PosID &) const
 
virtual bool mayTranslate3D (const EM::PosID &) const
 
int nrUsers () const
 
virtual bool removeEditID (const EM::PosID &)
 
void removeUser ()
 
virtual void setAlongMovingStyle (int index)
 
void setSnapAfterEdit (bool yn)
 
virtual void startEdit (const EM::PosID &)
 
virtual Coord3 translation1DDirection (const EM::PosID &) const
 
virtual Coord3 translation2DNormal (const EM::PosID &) const
 
- Public Member Functions inherited from SharedObject
 SharedObject (const char *nm=nullptr)
 
 SharedObject (const SharedObject &)
 
- 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
 
virtual CallBackertrueCaller ()
 
- 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 &)
 
const name_typename () const override
 
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 ObjectEditorcreate (EM::EMObject &)
 
static void initClass ()
 
- Static Public Member Functions inherited from MPE::ObjectEditor
static void enableNodeCloning (bool yn=true)
 
- Static Public Member Functions inherited from SharedObject
static Notifier< SharedObject > & instanceCreated ()
 
- 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

 ~PolygonBodyEditor ()
 
Geometry::ElementEditorcreateEditor () override
 
float getNearestPolygon (int &polygon, const Coord3 &, float zfactor) const
 
void getPidsOnPolygon (EM::PosID &nearestpid0, EM::PosID &nearestpid1, EM::PosID &insertpid, int polygon, const Coord3 &, float zfactor) const
 
bool setPosition (const Coord3 &c) override
 
bool setPosition (const EM::PosID &, const Coord3 &) override
 
- Protected Member Functions inherited from MPE::ObjectEditor
 ~ObjectEditor ()
 
virtual void cloneMovingNode (CallBacker *)
 
void editPosChangeTrigger (CallBacker *)
 
virtual void getAlongMovingNodes (const EM::PosID &, TypeSet< EM::PosID > &, TypeSet< float > *) const
 
Geometry::ElementEditorgetEditor ()
 
const Geometry::ElementEditorgetEditor () const
 
- Protected Member Functions inherited from SharedObject
virtual ~SharedObject ()
 
- 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< Coord3sowinghistory_
 
Coord3 sowingpivot_
 
- Protected Attributes inherited from MPE::ObjectEditor
TypeSet< EM::PosIDalongmovingnodes
 
TypeSet< float > alongmovingnodesfactors
 
TypeSet< Coord3alongmovingnodesstart
 
TypeSet< EM::PosIDchangedpids
 
RefMan< EM::EMObjectemobject_
 
EM::PosID movingnode
 
int nrusers = 0
 
Coord3 startpos
 
- 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 ObjectWithName
typedef OD::String name_type
 
- Public Attributes inherited from MPE::ObjectEditor
Notifier< ObjectEditoreditpositionchange
 

Detailed Description

ObjectEditor to edit EM::PolygonBody.

<>

Constructor & Destructor Documentation

◆ PolygonBodyEditor()

MPE::PolygonBodyEditor::PolygonBodyEditor ( EM::PolygonBody )

◆ ~PolygonBodyEditor()

MPE::PolygonBodyEditor::~PolygonBodyEditor ( )
protected

Member Function Documentation

◆ create()

static ObjectEditor* MPE::PolygonBodyEditor::create ( EM::EMObject )
static

◆ createEditor()

Geometry::ElementEditor* MPE::PolygonBodyEditor::createEditor ( )
overrideprotectedvirtual

Implements MPE::ObjectEditor.

◆ getInteractionInfo()

void MPE::PolygonBodyEditor::getInteractionInfo ( EM::PosID nearestpid0,
EM::PosID nearestpid1,
EM::PosID insertpid,
const Coord3 ,
float  zfactor 
) const

◆ getNearestPolygon()

float MPE::PolygonBodyEditor::getNearestPolygon ( int &  polygon,
const Coord3 ,
float  zfactor 
) const
protected

◆ getPidsOnPolygon()

void MPE::PolygonBodyEditor::getPidsOnPolygon ( EM::PosID nearestpid0,
EM::PosID nearestpid1,
EM::PosID insertpid,
int  polygon,
const Coord3 ,
float  zfactor 
) const
protected

◆ initClass()

static void MPE::PolygonBodyEditor::initClass ( )
static

◆ removeSelection()

bool MPE::PolygonBodyEditor::removeSelection ( const Selector< Coord3 > &  )

◆ setLastClicked()

void MPE::PolygonBodyEditor::setLastClicked ( const EM::PosID )

◆ setPosition() [1/2]

bool MPE::PolygonBodyEditor::setPosition ( const Coord3 c)
inlineoverrideprotectedvirtual

Reimplemented from MPE::ObjectEditor.

◆ setPosition() [2/2]

bool MPE::PolygonBodyEditor::setPosition ( const EM::PosID ,
const Coord3  
)
overrideprotectedvirtual

Reimplemented from MPE::ObjectEditor.

◆ setSowingPivot()

void MPE::PolygonBodyEditor::setSowingPivot ( const  Coord3)

Member Data Documentation

◆ sowinghistory_

TypeSet<Coord3> MPE::PolygonBodyEditor::sowinghistory_
mutableprotected

◆ sowingpivot_

Coord3 MPE::PolygonBodyEditor::sowingpivot_
protected

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