OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
visBase::VisualObject Class Referenceabstract
Inheritance diagram for visBase::VisualObject:
[legend]

Public Member Functions

virtual void setMaterial (Material *)=0
 
virtual MaterialgetMaterial ()=0
 
virtual bool getBoundingBox (Coord3 &min, Coord3 &max) const
 
virtual void setSceneEventCatcher (EventCatcher *)
 
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 const visBase::TransformationgetDisplayTransformation () const
 
virtual void setRightHandSystem (bool yn)
 
virtual bool isRightHandSystem () const
 
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...
 

Protected Member Functions

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...
 

Private Attributes

bool isselectable
 
Notifier< VisualObjectselnotifier
 
Notifier< VisualObjectdeselnotifier
 
Notifier< VisualObjectrightClick
 
const EventInforcevinfo
 

Additional Inherited Members

- 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 ()
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Detailed Description

Constructor & Destructor Documentation

visBase::VisualObject::VisualObject ( bool  selectable = false)
protected
visBase::VisualObject::~VisualObject ( )
protected

Member Function Documentation

NotifierAccess* visBase::VisualObject::deSelection ( )
inlinevirtual

Reimplemented from visBase::DataObject.

virtual bool visBase::VisualObject::getBoundingBox ( Coord3 min,
Coord3 max 
) const
virtual
virtual Material* visBase::VisualObject::getMaterial ( )
pure virtual
virtual NotifierAccess* visBase::VisualObject::rightClicked ( )
inlinevirtual

Reimplemented from visBase::DataObject.

Reimplemented in visBase::RandomTrackDragger.

const EventInfo* visBase::VisualObject::rightClickedEventInfo ( ) const
inline
const TypeSet<int>* visBase::VisualObject::rightClickedPath ( ) const
virtual

Reimplemented from visBase::DataObject.

Reimplemented in visBase::RandomTrackDragger.

bool visBase::VisualObject::selectable ( ) const
inlinevirtual
NotifierAccess* visBase::VisualObject::selection ( )
inlinevirtual

Reimplemented from visBase::DataObject.

virtual void visBase::VisualObject::setMaterial ( Material )
pure virtual
virtual void visBase::VisualObject::setSceneEventCatcher ( EventCatcher )
inlinevirtual
void visBase::VisualObject::setSelectable ( bool  yn)
inline
void visBase::VisualObject::triggerDeSel ( )
inlineprotectedvirtual

Is called everytime object is deselected.

Reimplemented from visBase::DataObject.

Reimplemented in visSurvey::MPEDisplay, and visSurvey::LocationDisplay.

void visBase::VisualObject::triggerRightClick ( const EventInfo )
protectedvirtual

Reimplemented from visBase::DataObject.

Reimplemented in visBase::RandomTrackDragger.

void visBase::VisualObject::triggerSel ( )
inlineprotectedvirtual

Is called everytime object is selected.

Reimplemented from visBase::DataObject.

Reimplemented in visSurvey::MPEDisplay.

Member Data Documentation

Notifier<VisualObject> visBase::VisualObject::deselnotifier
private
bool visBase::VisualObject::isselectable
private
const EventInfo* visBase::VisualObject::rcevinfo
private
Notifier<VisualObject> visBase::VisualObject::rightClick
private
Notifier<VisualObject> visBase::VisualObject::selnotifier
private

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