VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtScribeBoxModelInstance Class Reference

Instance of an OSG-specific attachable draw model. More...

Inheritance diagram for makVrv::DtScribeBoxModelInstance:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtScribeBoxModelInstance (DtDe &de, const std::string &uniqueName)
 CTOR.
 ~DtScribeBoxModelInstance ()
 DTOR.
virtual void addToConnector (DtOsgSceneConnector *connector)
 Implementation of model instance function Add the draw model instance to a node in the scene graph.
virtual bool removeFromConnector (DtOsgSceneConnector *connector)
 Implementation of model instance function Remove the draw model instance from a node in the scene graph.
virtual void drawBox ()
 Draw a box ...
virtual void setColor (const osg::Vec4 &color)
virtual void setLineWidth (double lineWidth)
virtual void setParentSceneObject (const DtUniqueID &sceneObj)
virtual void setVisible (bool isVisible)
 no-op
virtual void setOccluded (bool)
 Sets whether or not scribe is occluded (default is false)
virtual void setLineSmoothing (bool)
 Sets whether or not smooth lines are used. Default is false.

Protected Member Functions

void setNodeCullAndBin (osg::Node *n, bool isTransparent)
void updateScribeBoxSize ()
void updateLineSmoothing ()
void updateScribeBoxLineWidth ()
void updateScribeBoxColor ()
DtSceneObjectparentSceneObject ()
osg::Geometry * scribeBox (const osg::Vec3 &center, float lengthX, float lengthY, float lengthZ)
virtual void resetGeode ()
 Reset the geode to empty, creating it if necessary.

Protected Attributes

osg::ref_ptr< osg::Group > myGroup
osg::ref_ptr< osg::Geode > myShapeGeode
osg::Vec4 myColor
double myLineWidth
std::string myUniqueName
DtUniqueID myParentSceneObject
bool myOccluded
bool myLineSmoothing

Detailed Description

Instance of an OSG-specific attachable draw model.


Constructor & Destructor Documentation

makVrv::DtScribeBoxModelInstance::DtScribeBoxModelInstance ( DtDe de,
const std::string &  uniqueName 
)

CTOR.

DTOR.


Member Function Documentation

Implementation of model instance function Add the draw model instance to a node in the scene graph.

Reimplemented from makVrv::DtOsgModelInstance.

Implementation of model instance function Remove the draw model instance from a node in the scene graph.

Reimplemented from makVrv::DtOsgModelInstance.

virtual void makVrv::DtScribeBoxModelInstance::drawBox ( ) [virtual]

Draw a box ...

virtual void makVrv::DtScribeBoxModelInstance::setColor ( const osg::Vec4 &  color) [virtual]
virtual void makVrv::DtScribeBoxModelInstance::setLineWidth ( double  lineWidth) [virtual]
virtual void makVrv::DtScribeBoxModelInstance::setParentSceneObject ( const DtUniqueID sceneObj) [virtual]
virtual void makVrv::DtScribeBoxModelInstance::setVisible ( bool  isVisible) [inline, virtual]

no-op

Implements makVrv::DtModelInstance.

Sets whether or not scribe is occluded (default is false)

Sets whether or not smooth lines are used. Default is false.

void makVrv::DtScribeBoxModelInstance::setNodeCullAndBin ( osg::Node *  n,
bool  isTransparent 
) [protected]
osg::Geometry* makVrv::DtScribeBoxModelInstance::scribeBox ( const osg::Vec3 &  center,
float  lengthX,
float  lengthY,
float  lengthZ 
) [protected]
virtual void makVrv::DtScribeBoxModelInstance::resetGeode ( ) [protected, virtual]

Reset the geode to empty, creating it if necessary.


Member Data Documentation

osg::ref_ptr<osg::Group> makVrv::DtScribeBoxModelInstance::myGroup [protected]
osg::ref_ptr<osg::Geode> makVrv::DtScribeBoxModelInstance::myShapeGeode [protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)