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

Public Member Functions

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
 
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 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 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 ()
 

Protected Member Functions

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

Materialmaterial_
 
bool righthandsystem_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Private Attributes

osg::Group * osgroot_
 

Detailed Description

Constructor & Destructor Documentation

visBase::VisualObjectImpl::VisualObjectImpl ( bool  selectable)
protected
virtual visBase::VisualObjectImpl::~VisualObjectImpl ( )
protectedvirtual

Member Function Documentation

int visBase::VisualObjectImpl::addChild ( osg::Node *  )
protected
Returns
new child index
int visBase::VisualObjectImpl::childIndex ( const osg::Node *  ) const
protected
virtual void visBase::VisualObjectImpl::fillPar ( IOPar ) const
virtual
const Material* visBase::VisualObjectImpl::getMaterial ( ) const
inline
Material* visBase::VisualObjectImpl::getMaterial ( )
virtual

Implements visBase::VisualObject.

Reimplemented in visSurvey::HorizonDisplay.

void visBase::VisualObjectImpl::insertChild ( int  pos,
osg::Node *   
)
protected
bool visBase::VisualObjectImpl::isRightHandSystem ( ) const
inlinevirtual

Reimplemented from visBase::DataObject.

virtual void visBase::VisualObjectImpl::materialChangeCB ( CallBacker )
protectedvirtual
void visBase::VisualObjectImpl::readLock ( )
void visBase::VisualObjectImpl::readUnLock ( )
void visBase::VisualObjectImpl::removeChild ( osg::Node *  )
protected
virtual void visBase::VisualObjectImpl::setGroupNode ( osg::Group *  )
protectedvirtual

Must be called during construction.

void visBase::VisualObjectImpl::setLockable ( )

Will enable lock functionality.

Note
Must be done before giving away the SoNode with getInventorNode() to take effect
void visBase::VisualObjectImpl::setMaterial ( Material )
virtual

Implements visBase::VisualObject.

Reimplemented in visSurvey::VolumeDisplay.

void visBase::VisualObjectImpl::setRightHandSystem ( bool  yn)
inlinevirtual

Sets whether the coordinate system is right or left handed.

Reimplemented from visBase::DataObject.

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

static const char* visBase::VisualObjectImpl::sKeyIsOn ( )
static
static const char* visBase::VisualObjectImpl::sKeyMaterial ( )
static
static const char* visBase::VisualObjectImpl::sKeyMaterialID ( )
static
bool visBase::VisualObjectImpl::tryReadLock ( )
bool visBase::VisualObjectImpl::tryWriteLock ( )
virtual bool visBase::VisualObjectImpl::usePar ( const IOPar )
virtual
void visBase::VisualObjectImpl::writeLock ( )
void visBase::VisualObjectImpl::writeUnLock ( )

Member Data Documentation

Material* visBase::VisualObjectImpl::material_
protected
osg::Group* visBase::VisualObjectImpl::osgroot_
private
bool visBase::VisualObjectImpl::righthandsystem_
protected

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