OpendTect 8.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
MPE::FaultEditor Class Reference

ObjectEditor to edit EM::Fault3D. More...

#include <faulteditor.h>

Inheritance diagram for MPE::FaultEditor:
[legend]

Public Member Functions

void getInteractionInfo (bool &makenewstick, EM::PosID &insertpid, const Coord3 &pos, const Coord3 *posnormal=0) const
 
const EM::PosID getNearstStick (const Coord3 &pos, const Coord3 *posnormal) const
 
void setLastClicked (const EM::PosID &)
 
void setScaleVector (const Coord3 &v)
 x'=x, y'=v1*x*+v2*y, z'=v3*z
 
void setSceneIdx (int idx)
 
void setSowingPivot (const Coord3)
 
void setZScale (float)
 
- Public Member Functions inherited from MPE::ObjectEditor
virtual bool addEditID (const EM::PosID &)
 
void addUser ()
 
bool canSnapAfterEdit (const EM::PosID &) const
 
RefMan< EM::EMObjectemObject ()
 
ConstRefMan< 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
 
EM::ObjectID objectID () const
 
BufferString objectName () const
 
virtual bool removeEditID (const EM::PosID &)
 
void removeUser ()
 
virtual void setAlongMovingStyle (int index)
 
virtual void setEditIDs (const TypeSet< EM::PosID > *)
 
virtual bool setPosition (const Coord3 &)
 
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)
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=nullptr)
 
 NamedCallBacker (const NamedCallBacker &)=delete
 
 ~NamedCallBacker ()
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
NamedCallBackeroperator= (const NamedCallBacker &)=delete
 
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.
 
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.
 
CallBackeroperator= (const CallBacker &)=delete
 
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.
 
int nrRefs () const
 Only for expert use.
 
void ref () const
 
bool refIfReffed () const
 Don't use in production, for debugging.
 
void removeObserver (WeakPtrBase *obs)
 Not for normal use. May become private.
 
bool tryRef () const
 Not for normal use. May become private.
 
void unRef () const
 
void unRefNoDelete () const
 

Static Public Member Functions

static RefMan< FaultEditorcreate (const EM::Fault3D &)
 
- 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

 ~FaultEditor ()
 
- Protected Member Functions inherited from MPE::ObjectEditor
 ObjectEditor (const EM::EMObject &)
 
 ~ObjectEditor ()
 
void editPosChangeTrigger (CallBacker *)
 
virtual void getAlongMovingNodes (const EM::PosID &, TypeSet< EM::PosID > &, TypeSet< float > *) const
 
Geometry::ElementEditorgetEditor ()
 
const Geometry::ElementEditorgetEditor () const
 
virtual bool setPosition (const EM::PosID &, const Coord3 &)
 
- Protected Member Functions inherited from SharedObject
 ~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 &)
 

Private Member Functions

 FaultEditor (const EM::Fault3D &)
 
void cloneMovingNode (CallBacker *) override
 
Geometry::ElementEditorcreateEditor () override
 
float distToStick (const Geometry::FaultStickSurface &, int curstick, const Coord3 &pos, const Coord3 *posnormal) const
 
bool getInsertStick (int &stick, const Coord3 &pos, const Coord3 *posnormal) const
 
int getLastClickedStick () const
 
float getNearestStick (int &stick, const Coord3 &pos, const Coord3 *posnormal) const
 
const EM::PosID getNearstStick (EM::SectionID &, const Coord3 &pos, const Coord3 *posnormal) const
 
void getPidsOnStick (EM::PosID &insertpid, int stick, const Coord3 &pos) const
 
int getSecondKnotNr (const Geometry::FaultStickSurface &, int sticknr, const Coord3 &mousepos) const
 
float panelIntersectDist (const Geometry::FaultStickSurface &, int sticknr, const Coord3 &mousepos, const Coord3 &posnormal) const
 
bool removeSelection (const Selector< Coord3 > &)
 

Static Private Member Functions

static EM::PosIDlastclickedpid ()
 

Private Attributes

Coord3 scalevector_
 
int sceneidx_ = -1
 
TypeSet< Coord3sowinghistory_
 
Coord3 sowingpivot_ = Coord3::udf()
 

Additional Inherited Members

- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Public Attributes inherited from MPE::ObjectEditor
Notifier< ObjectEditoreditpositionchange
 
- Protected Attributes inherited from MPE::ObjectEditor
TypeSet< EM::PosIDalongmovingnodes
 
TypeSet< float > alongmovingnodesfactors
 
TypeSet< Coord3alongmovingnodesstart
 
TypeSet< EM::PosIDchangedpids
 
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_
 

Detailed Description

ObjectEditor to edit EM::Fault3D.

<>

Constructor & Destructor Documentation

◆ ~FaultEditor()

MPE::FaultEditor::~FaultEditor ( )
protected

◆ FaultEditor()

MPE::FaultEditor::FaultEditor ( const EM::Fault3D & )
private

Member Function Documentation

◆ cloneMovingNode()

void MPE::FaultEditor::cloneMovingNode ( CallBacker * )
overrideprivatevirtual

Reimplemented from MPE::ObjectEditor.

◆ create()

static RefMan< FaultEditor > MPE::FaultEditor::create ( const EM::Fault3D & )
static

◆ createEditor()

Geometry::ElementEditor * MPE::FaultEditor::createEditor ( )
overrideprivatevirtual

Implements MPE::ObjectEditor.

◆ distToStick()

float MPE::FaultEditor::distToStick ( const Geometry::FaultStickSurface & ,
int curstick,
const Coord3 & pos,
const Coord3 * posnormal ) const
private

◆ getInsertStick()

bool MPE::FaultEditor::getInsertStick ( int & stick,
const Coord3 & pos,
const Coord3 * posnormal ) const
private

◆ getInteractionInfo()

void MPE::FaultEditor::getInteractionInfo ( bool & makenewstick,
EM::PosID & insertpid,
const Coord3 & pos,
const Coord3 * posnormal = 0 ) const

◆ getLastClickedStick()

int MPE::FaultEditor::getLastClickedStick ( ) const
private

◆ getNearestStick()

float MPE::FaultEditor::getNearestStick ( int & stick,
const Coord3 & pos,
const Coord3 * posnormal ) const
private

◆ getNearstStick() [1/2]

const EM::PosID MPE::FaultEditor::getNearstStick ( const Coord3 & pos,
const Coord3 * posnormal ) const

◆ getNearstStick() [2/2]

const EM::PosID MPE::FaultEditor::getNearstStick ( EM::SectionID & ,
const Coord3 & pos,
const Coord3 * posnormal ) const
inlineprivate

◆ getPidsOnStick()

void MPE::FaultEditor::getPidsOnStick ( EM::PosID & insertpid,
int stick,
const Coord3 & pos ) const
private

◆ getSecondKnotNr()

int MPE::FaultEditor::getSecondKnotNr ( const Geometry::FaultStickSurface & ,
int sticknr,
const Coord3 & mousepos ) const
private

◆ lastclickedpid()

static EM::PosID & MPE::FaultEditor::lastclickedpid ( )
staticprivate

◆ panelIntersectDist()

float MPE::FaultEditor::panelIntersectDist ( const Geometry::FaultStickSurface & ,
int sticknr,
const Coord3 & mousepos,
const Coord3 & posnormal ) const
private

◆ removeSelection()

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

◆ setLastClicked()

void MPE::FaultEditor::setLastClicked ( const EM::PosID & )

◆ setScaleVector()

void MPE::FaultEditor::setScaleVector ( const Coord3 & v)

x'=x, y'=v1*x*+v2*y, z'=v3*z

◆ setSceneIdx()

void MPE::FaultEditor::setSceneIdx ( int idx)
inline

◆ setSowingPivot()

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

◆ setZScale()

void MPE::FaultEditor::setZScale ( float )

Member Data Documentation

◆ scalevector_

Coord3 MPE::FaultEditor::scalevector_
private

◆ sceneidx_

int MPE::FaultEditor::sceneidx_ = -1
private

◆ sowinghistory_

TypeSet<Coord3> MPE::FaultEditor::sowinghistory_
private

◆ sowingpivot_

Coord3 MPE::FaultEditor::sowingpivot_ = Coord3::udf()
private

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