![]() |
OpendTect-6_4
6.4
|
Abstraction of EM Object editing. It gives lists of which nodes that may be moved, and in what manner. More...
Public Member Functions | |
| ObjectEditor (EM::EMObject &) | |
| const EM::EMObject & | emObject () const |
| virtual void | startEdit (const EM::PosID &) |
| virtual bool | setPosition (const Coord3 &) |
| virtual void | finishEdit () |
| bool | canSnapAfterEdit (const EM::PosID &) const |
| bool | getSnapAfterEdit () const |
| void | setSnapAfterEdit (bool yn) |
| void | addUser () |
| void | removeUser () |
| int | nrUsers () const |
| virtual const BufferStringSet * | getAlongMovingStyleNames () const |
| virtual int | getAlongMovingStyle () const |
| virtual void | setAlongMovingStyle (int index) |
| virtual void | getEditIDs (TypeSet< EM::PosID > &) const |
| virtual bool | addEditID (const EM::PosID &) |
| virtual bool | removeEditID (const EM::PosID &) |
| virtual Coord3 | getPosition (const EM::PosID &) const |
| virtual bool | mayTranslate1D (const EM::PosID &) const |
| virtual Coord3 | translation1DDirection (const EM::PosID &) const |
| virtual bool | mayTranslate2D (const EM::PosID &) const |
| virtual Coord3 | translation2DNormal (const EM::PosID &) const |
| virtual bool | mayTranslate3D (const EM::PosID &) const |
| virtual bool | maySetNormal (const EM::PosID &) const |
| virtual Coord3 | getNormal (const EM::PosID &) const |
| virtual bool | maySetDirection (const EM::PosID &) const |
| virtual Coord3 | getDirectionPlaneNormal (const EM::PosID &) const |
| virtual Coord3 | getDirection (const EM::PosID &) const |
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 void | enableNodeCloning (bool yn=true) |
Public Attributes | |
| Notifier< ObjectEditor > | editpositionchange |
Protected Member Functions | |
| virtual bool | setPosition (const EM::PosID &, const Coord3 &) |
| Geometry::ElementEditor * | getEditor (const EM::SectionID &) |
| const Geometry::ElementEditor * | getEditor (const EM::SectionID &) const |
| virtual Geometry::ElementEditor * | createEditor (const EM::SectionID &)=0 |
| void | editPosChangeTrigger (CallBacker *) |
| void | emSectionChange (CallBacker *) |
| virtual void | getAlongMovingNodes (const EM::PosID &, TypeSet< EM::PosID > &, TypeSet< float > *) const |
| virtual void | cloneMovingNode () |
Protected Member Functions inherited from CallBacker | |
| void | detachAllNotifiers () |
| Call from the destructor of your inherited object. More... | |
Protected Attributes | |
| EM::EMObject & | emobject |
| EM::PosID | movingnode |
| Coord3 | startpos |
| TypeSet< EM::PosID > | changedpids |
| TypeSet< EM::PosID > | alongmovingnodes |
| TypeSet< Coord3 > | alongmovingnodesstart |
| TypeSet< float > | alongmovingnodesfactors |
| int | nrusers |
Private Member Functions | |
| mRefCountImpl (ObjectEditor) | |
Private Attributes | |
| ObjectSet< Geometry::ElementEditor > | geeditors |
| TypeSet< EM::SectionID > | sections |
| bool | snapafterthisedit |
| bool | snapafteredit |
Abstraction of EM Object editing. It gives lists of which nodes that may be moved, and in what manner.
Editing has three easy steps:
When moving an editing node, several other nodes may be moved along with it. If this is possible, this can be done in different styles which are listed by getAlongMovingStyleNames().
| MPE::ObjectEditor::ObjectEditor | ( | EM::EMObject & | ) |
|
virtual |
Add node for editing. Note that this may not be possible, and false may be returned.
|
inline |
| bool MPE::ObjectEditor::canSnapAfterEdit | ( | const EM::PosID & | ) | const |
|
inlineprotectedvirtual |
Reimplemented in MPE::FaultEditor, and MPE::FaultStickSetEditor.
|
protectedpure virtual |
Implemented in MPE::FaultEditor, MPE::FaultStickSetEditor, MPE::Horizon2DEditor, MPE::PolygonBodyEditor, and MPE::HorizonEditor.
|
protected |
|
inline |
|
protected |
|
static |
|
virtual |
|
protectedvirtual |
Gets the positions that are moved along and their corresponding factors.
|
inlinevirtual |
|
inlinevirtual |
Gives all nodes that can be moved.
Reimplemented in MPE::FaultStickSetEditor, and MPE::HorizonEditor.
|
protected |
|
protected |
| bool MPE::ObjectEditor::getSnapAfterEdit | ( | ) | const |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
private |
|
inline |
|
virtual |
Remove editing node. Note that this may not be possible, and false may be returned.
|
inline |
|
inlinevirtual |
| index | refers to the list returned by getAlongMovingStyleNames(). |
|
virtual |
Reimplemented in MPE::PolygonBodyEditor.
Reimplemented in MPE::PolygonBodyEditor.
| void MPE::ObjectEditor::setSnapAfterEdit | ( | bool | yn | ) |
|
virtual |
|
protected |
| Notifier<ObjectEditor> MPE::ObjectEditor::editpositionchange |
Won't trigger on position-changes, but when new edit positions are avaliable or editpositions has been removed
|
protected |
|
private |
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019