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

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

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

List of all members.

Public Member Functions

 DtDrawModelInstance (DtDe &de)
 CTOR.
 ~DtDrawModelInstance ()
 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 drawLine (const osg::Vec4 &color, const double lineWidth)
 Draw a line ...
virtual void setPosition (int vtx, const DtVector &position)
virtual void setVisible (bool isVisible)
 no-op

Protected Member Functions

void createText (const std::string &fontName, const osg::Vec4 &color, double size)
 create the text object for the height above terrain line height indicator
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::ref_ptr< osg::Geometry > myGeometry
osg::ref_ptr< osg::Vec3Array > myPoints

Detailed Description

Instance of an OSG-specific attachable draw model.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual void makVrv::DtDrawModelInstance::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.

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

Reimplemented from makVrv::DtOsgModelInstance.

virtual void makVrv::DtDrawModelInstance::drawLine ( const osg::Vec4 &  color,
const double  lineWidth 
) [virtual]

Draw a line ...

virtual void makVrv::DtDrawModelInstance::setPosition ( int  vtx,
const DtVector position 
) [virtual]
virtual void makVrv::DtDrawModelInstance::setVisible ( bool  isVisible) [inline, virtual]

no-op

Implements makVrv::DtModelInstance.

void makVrv::DtDrawModelInstance::createText ( const std::string &  fontName,
const osg::Vec4 &  color,
double  size 
) [protected]

create the text object for the height above terrain line height indicator

virtual void makVrv::DtDrawModelInstance::resetGeode ( ) [protected, virtual]

Reset the geode to empty, creating it if necessary.


Member Data Documentation

osg::ref_ptr<osg::Group> makVrv::DtDrawModelInstance::myGroup [protected]
osg::ref_ptr<osg::Geode> makVrv::DtDrawModelInstance::myShapeGeode [protected]
osg::ref_ptr<osg::Geometry> makVrv::DtDrawModelInstance::myGeometry [protected]
osg::ref_ptr<osg::Vec3Array> makVrv::DtDrawModelInstance::myPoints [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)