OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
visSurvey::MPEEditor Class Reference
Inheritance diagram for visSurvey::MPEEditor:
[legend]

Public Member Functions

void setEditor (MPE::ObjectEditor *)
 
void setPatch (MPE::Patch *patch)
 
MPE::ObjectEditorgetMPEEditor ()
 
void setSceneEventCatcher (visBase::EventCatcher *)
 
void setDisplayTransformation (const mVisTrans *)
 
const mVisTransgetDisplayTransformation () const
 
void setMarkerSize (float)
 
void turnOnMarker (EM::PosID, bool on)
 
bool allMarkersDisplayed () const
 
int getRightClickNode () const
 
EM::PosID getNodePosID (int idx) const
 
bool mouseClick (const EM::PosID &, bool shift, bool alt, bool ctrl)
 
bool clickCB (CallBacker *)
 
EM::PosID mouseClickDragger (const TypeSet< int > &) const
 
bool isDragging () const
 
EM::PosID getActiveDragger () const
 
Sowersower ()
 
void displayPatch (const MPE::Patch *)
 
void cleanPatch ()
 
const ObjectSet< visBase::MarkerSet > & getDraggerMarkers () const
 
void setMarkerStyle (const MarkerStyle3D &)
 
- Public Member Functions inherited from visBase::VisualObjectImpl
void setRightHandSystem (bool yn)
 
bool isRightHandSystem () const
 
void setLockable ()
 
void readLock ()
 
void readUnLock ()
 
bool tryReadLock ()
 
void writeLock ()
 
void writeUnLock ()
 
bool tryWriteLock ()
 
void setMaterial (Material *)
 
const MaterialgetMaterial () const
 
MaterialgetMaterial ()
 
virtual bool usePar (const IOPar &)
 
virtual void fillPar (IOPar &) const
 
- Public Member Functions inherited from visBase::VisualObject
virtual bool getBoundingBox (Coord3 &min, Coord3 &max) const
 
void setSelectable (bool yn)
 
bool selectable () const
 
NotifierAccessselection ()
 
NotifierAccessdeSelection ()
 
virtual NotifierAccessrightClicked ()
 
const EventInforightClickedEventInfo () const
 
const TypeSet< int > * rightClickedPath () const
 
- Public Member Functions inherited from visBase::DataObject
virtual const char * getClassName () const
 
virtual bool isOK () const
 
int id () const
 
void setID (int nid)
 
uiString name () const
 
virtual void setName (const uiString &)
 
osg::Node * osgNode (bool skipswitch=false)
 
const osg::Node * osgNode (bool skipswitch=false) const
 
void enableTraversal (unsigned int mask, bool yn=true)
 
bool isTraversalEnabled (unsigned int mask) const
 
SoNode * getInventorNode ()
 
const SoNode * getInventorNode () const
 
virtual bool turnOn (bool yn)
 
virtual bool isOn () const
 
bool isPickable (bool actively=true) const
 
void setPickable (bool actively, bool passively=true)
 
virtual bool rightClickable () const
 
void select () const
 
void deSelect () const
 
void updateSel () const
 
virtual bool isSelected () const
 
virtual void setDisplayTransformation (const visBase::Transformation *)
 
virtual void setPixelDensity (float dpi)
 
virtual float getPixelDensity () const
 
virtual const char * errMsg () const
 
bool serialize (const char *filename, bool binary=false)
 
void setParent (DataObjectGroup *g)
 
template<class T >
T * addNodeState (T *ns)
 
NodeStateremoveNodeState (NodeState *)
 
NodeStategetNodeState (int idx)
 
- 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 MPEEditorcreate () mCreateDataObj(MPEEditor)
 
- Static Public Member Functions inherited from visBase::VisualObjectImpl
static const char * sKeyMaterialID ()
 
static const char * sKeyMaterial ()
 
static const char * sKeyIsOn ()
 
- Static Public Member Functions inherited from visBase::DataObject
static int getID (const osg::Node *)
 
static float getDefaultPixelDensity ()
 
static void setVisualizationThread (const void *)
 Call only once from initialization. More...
 
static bool isVisualizationThread ()
 
static void requestSingleRedraw ()
 
static void setCommonViewer (osgViewer::CompositeViewer *)
 
static osgViewer::CompositeViewer * getCommonViewer ()
 

Public Attributes

Notifier< MPEEditornodeRightClick
 
Notifier< MPEEditordraggingStarted
 

Protected Member Functions

 ~MPEEditor ()
 
void changeNumNodes (CallBacker *)
 
void nodeMovement (CallBacker *)
 
void dragStart (CallBacker *)
 
void dragMotion (CallBacker *)
 
void dragStop (CallBacker *)
 
void updateNodePos (int, const Coord3 &)
 
void removeDragger (int)
 
void addDragger (const EM::PosID &)
 
void setActiveDragger (const EM::PosID &)
 
void setupPatchDisplay ()
 
- Protected Member Functions inherited from visBase::VisualObjectImpl
int addChild (osg::Node *)
 
void insertChild (int pos, osg::Node *)
 
void removeChild (osg::Node *)
 
int childIndex (const osg::Node *) const
 
 VisualObjectImpl (bool selectable)
 
virtual ~VisualObjectImpl ()
 
virtual void materialChangeCB (CallBacker *)
 
virtual void setGroupNode (osg::Group *)
 Must be called during construction. More...
 
- Protected Member Functions inherited from visBase::VisualObject
void triggerSel ()
 
void triggerDeSel ()
 
void triggerRightClick (const EventInfo *)
 
 VisualObject (bool selectable=false)
 
 ~VisualObject ()
 
- Protected Member Functions inherited from visBase::DataObject
virtual osg::StateSet * getStateSet ()
 
void doAddNodeState (NodeState *ns)
 
 DataObject ()
 
template<class T >
T * setOsgNode (T *t)
 Must be called during construction. More...
 
void updateNodemask ()
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

int rightclicknode_
 
MPE::ObjectEditoremeditor_
 
MPE::Patchpatch_
 
visBase::Materialnodematerial_
 
visBase::Materialactivenodematerial_
 
ObjectSet< visBase::Draggerdraggers_
 
ObjectSet< visBase::MarkerSetdraggermarkers_
 
TypeSet< EM::PosIDposids_
 
float markersize_
 
visBase::MarkerSetpatchmarkers_
 
visBase::PolyLinepatchline_
 
visBase::EventCatchereventcatcher_
 
const mVisTranstransformation_
 
EM::PosID activedragger_
 
bool draggerinmotion_
 
bool isdragging_
 
Sowersower_
 
MarkerStyle3D markerstyle_
 
- Protected Attributes inherited from visBase::VisualObjectImpl
Materialmaterial_
 
bool righthandsystem_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Detailed Description

Constructor & Destructor Documentation

visSurvey::MPEEditor::~MPEEditor ( )
protected

Member Function Documentation

void visSurvey::MPEEditor::addDragger ( const EM::PosID )
protected
bool visSurvey::MPEEditor::allMarkersDisplayed ( ) const
void visSurvey::MPEEditor::changeNumNodes ( CallBacker )
protected
void visSurvey::MPEEditor::cleanPatch ( )
bool visSurvey::MPEEditor::clickCB ( CallBacker )

Since the event should be handled with this object before the main object, the main object has to pass eventcatcher calls here manually.

Returns
wether the main object should continue to process the event.
static MPEEditor* visSurvey::MPEEditor::create ( )
static
void visSurvey::MPEEditor::displayPatch ( const MPE::Patch )
void visSurvey::MPEEditor::dragMotion ( CallBacker )
protected
void visSurvey::MPEEditor::dragStart ( CallBacker )
protected
void visSurvey::MPEEditor::dragStop ( CallBacker )
protected
EM::PosID visSurvey::MPEEditor::getActiveDragger ( ) const
const mVisTrans* visSurvey::MPEEditor::getDisplayTransformation ( ) const
inlinevirtual

All positions going from the outside world to the vis should be transformed with this transform. This enables us to have different coord-systems outside OI, e.g. we can use UTM coords outside the vis without loosing precision in the vis.

Reimplemented from visBase::DataObject.

const ObjectSet<visBase::MarkerSet>& visSurvey::MPEEditor::getDraggerMarkers ( ) const
MPE::ObjectEditor* visSurvey::MPEEditor::getMPEEditor ( )
inline
EM::PosID visSurvey::MPEEditor::getNodePosID ( int  idx) const
int visSurvey::MPEEditor::getRightClickNode ( ) const
bool visSurvey::MPEEditor::isDragging ( ) const
inline
bool visSurvey::MPEEditor::mouseClick ( const EM::PosID ,
bool  shift,
bool  alt,
bool  ctrl 
)

Notify the object that someone has clicked on the object that's being edited. Clicks on the editor's draggers themselves are handled by clickCB. Returns true when click is handled.

EM::PosID visSurvey::MPEEditor::mouseClickDragger ( const TypeSet< int > &  ) const
void visSurvey::MPEEditor::nodeMovement ( CallBacker )
protected
void visSurvey::MPEEditor::removeDragger ( int  )
protected
void visSurvey::MPEEditor::setActiveDragger ( const EM::PosID )
protected
void visSurvey::MPEEditor::setDisplayTransformation ( const mVisTrans )
void visSurvey::MPEEditor::setEditor ( MPE::ObjectEditor )
void visSurvey::MPEEditor::setMarkerSize ( float  )
void visSurvey::MPEEditor::setMarkerStyle ( const MarkerStyle3D )
void visSurvey::MPEEditor::setPatch ( MPE::Patch patch)
inline
void visSurvey::MPEEditor::setSceneEventCatcher ( visBase::EventCatcher )
virtual

Reimplemented from visBase::VisualObject.

void visSurvey::MPEEditor::setupPatchDisplay ( )
protected
Sower& visSurvey::MPEEditor::sower ( )
inline
void visSurvey::MPEEditor::turnOnMarker ( EM::PosID  ,
bool  on 
)
void visSurvey::MPEEditor::updateNodePos ( int  ,
const Coord3  
)
protected

Member Data Documentation

EM::PosID visSurvey::MPEEditor::activedragger_
protected
visBase::Material* visSurvey::MPEEditor::activenodematerial_
protected
bool visSurvey::MPEEditor::draggerinmotion_
protected
ObjectSet<visBase::MarkerSet> visSurvey::MPEEditor::draggermarkers_
protected
ObjectSet<visBase::Dragger> visSurvey::MPEEditor::draggers_
protected
Notifier<MPEEditor> visSurvey::MPEEditor::draggingStarted
MPE::ObjectEditor* visSurvey::MPEEditor::emeditor_
protected
visBase::EventCatcher* visSurvey::MPEEditor::eventcatcher_
protected
bool visSurvey::MPEEditor::isdragging_
protected
float visSurvey::MPEEditor::markersize_
protected
MarkerStyle3D visSurvey::MPEEditor::markerstyle_
protected
visBase::Material* visSurvey::MPEEditor::nodematerial_
protected
Notifier<MPEEditor> visSurvey::MPEEditor::nodeRightClick

\ the clicked position can be retrieved with getNodePosID(getRightClickNode)

MPE::Patch* visSurvey::MPEEditor::patch_
protected
visBase::PolyLine* visSurvey::MPEEditor::patchline_
protected
visBase::MarkerSet* visSurvey::MPEEditor::patchmarkers_
protected
TypeSet<EM::PosID> visSurvey::MPEEditor::posids_
protected
int visSurvey::MPEEditor::rightclicknode_
protected
Sower* visSurvey::MPEEditor::sower_
protected
const mVisTrans* visSurvey::MPEEditor::transformation_
protected

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