![]() |
VR-Forces 4.0.4 Class Documentation
|
Instance of an OSG-specific attachable draw model. More...

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 () |
| DtSceneObject * | parentSceneObject () |
| osg::Geometry * | scribeBox (const osg::Vec3 ¢er, 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 |
Instance of an OSG-specific attachable draw model.
| makVrv::DtScribeBoxModelInstance::DtScribeBoxModelInstance | ( | DtDe & | de, |
| const std::string & | uniqueName | ||
| ) |
CTOR.
| virtual void makVrv::DtScribeBoxModelInstance::addToConnector | ( | DtOsgSceneConnector * | connector | ) | [virtual] |
Implementation of model instance function Add the draw model instance to a node in the scene graph.
Reimplemented from makVrv::DtOsgModelInstance.
| virtual bool makVrv::DtScribeBoxModelInstance::removeFromConnector | ( | DtOsgSceneConnector * | connector | ) | [virtual] |
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.
| virtual void makVrv::DtScribeBoxModelInstance::setOccluded | ( | bool | ) | [virtual] |
Sets whether or not scribe is occluded (default is false)
| virtual void makVrv::DtScribeBoxModelInstance::setLineSmoothing | ( | bool | ) | [virtual] |
Sets whether or not smooth lines are used. Default is false.
| void makVrv::DtScribeBoxModelInstance::setNodeCullAndBin | ( | osg::Node * | n, |
| bool | isTransparent | ||
| ) | [protected] |
| void makVrv::DtScribeBoxModelInstance::updateScribeBoxSize | ( | ) | [protected] |
| void makVrv::DtScribeBoxModelInstance::updateLineSmoothing | ( | ) | [protected] |
| void makVrv::DtScribeBoxModelInstance::updateScribeBoxLineWidth | ( | ) | [protected] |
| void makVrv::DtScribeBoxModelInstance::updateScribeBoxColor | ( | ) | [protected] |
| DtSceneObject* makVrv::DtScribeBoxModelInstance::parentSceneObject | ( | ) | [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.
osg::ref_ptr<osg::Group> makVrv::DtScribeBoxModelInstance::myGroup [protected] |
osg::ref_ptr<osg::Geode> makVrv::DtScribeBoxModelInstance::myShapeGeode [protected] |
osg::Vec4 makVrv::DtScribeBoxModelInstance::myColor [protected] |
double makVrv::DtScribeBoxModelInstance::myLineWidth [protected] |
std::string makVrv::DtScribeBoxModelInstance::myUniqueName [protected] |
bool makVrv::DtScribeBoxModelInstance::myOccluded [protected] |