VR-Forces 4.0.4 Class Documentation
Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
makVrv::DtArticulatingCylinderModelInstance Class Reference

Model instance to draw a cuboid. More...

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

List of all members.

Classes

struct  AttachedCylinderParameters

Public Member Functions

 DtArticulatingCylinderModelInstance (DtDe &de)
 CTOR.
virtual ~DtArticulatingCylinderModelInstance ()
 DTOR.
virtual void setDimensions (double x, double y, double z)
 Set the dimensions of the cylinder.
virtual void setColor (float r, float g, float b, float a)
 Set the color of the cylinder.
virtual void setLightingEnabled (bool enabled)
 Set lighting enabled or disabled (default disabled)
virtual bool realize (DtModelDefinition &definition)
 Attempt to realize a definition.
virtual void addToConnector (DtOsgSceneConnector *connector)
 Tell the model instance to add itself to the provided node.
virtual bool removeFromConnector (DtOsgSceneConnector *connector)
 Tell the model instance to remove itself from the provided node.
virtual void setVisible (bool isVisible)
 no-op

Static Public Attributes

static const
AttachedCylinderParameters 
defaultParameters
 Default values for the cuboid parameters.

Protected Member Functions

virtual void buildGeometry (const AttachedCylinderParameters &parameters)
 Build the cylinder's geometry from a parameter set.
virtual void buildState (const AttachedCylinderParameters &parameters)
 Build the cylinder's state from a parameter set.

Protected Attributes

AttachedCylinderParameters myParameters
 The current parameter set.
osg::ref_ptr< osg::ShapeDrawable > myCylinderDrawable
osg::ref_ptr< osg::Geode > myFrontGeode
 Geode to draw the geometry with backface culling.
osg::ref_ptr< osg::Geode > myBackGeode
 Geode to draw the geometry with frontface culling.
osg::ref_ptr
< osg::MatrixTransform > 
myTransform

Detailed Description

Model instance to draw a cuboid.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual void makVrv::DtArticulatingCylinderModelInstance::setDimensions ( double  x,
double  y,
double  z 
) [virtual]

Set the dimensions of the cylinder.

virtual void makVrv::DtArticulatingCylinderModelInstance::setColor ( float  r,
float  g,
float  b,
float  a 
) [virtual]

Set the color of the cylinder.

Set lighting enabled or disabled (default disabled)

Attempt to realize a definition.

If the model instance can't realize the definition it should return false.

Reimplemented from makVrv::DtModelInstance.

Tell the model instance to add itself to the provided node.

Reimplemented from makVrv::DtOsgModelInstance.

Tell the model instance to remove itself from the provided node.

Reimplemented from makVrv::DtOsgModelInstance.

virtual void makVrv::DtArticulatingCylinderModelInstance::setVisible ( bool  isVisible) [inline, virtual]

no-op

Implements makVrv::DtModelInstance.

virtual void makVrv::DtArticulatingCylinderModelInstance::buildGeometry ( const AttachedCylinderParameters parameters) [protected, virtual]

Build the cylinder's geometry from a parameter set.

virtual void makVrv::DtArticulatingCylinderModelInstance::buildState ( const AttachedCylinderParameters parameters) [protected, virtual]

Build the cylinder's state from a parameter set.


Member Data Documentation

Default values for the cuboid parameters.

The current parameter set.

osg::ref_ptr<osg::ShapeDrawable> makVrv::DtArticulatingCylinderModelInstance::myCylinderDrawable [protected]
osg::ref_ptr<osg::Geode> makVrv::DtArticulatingCylinderModelInstance::myFrontGeode [protected]

Geode to draw the geometry with backface culling.

osg::ref_ptr<osg::Geode> makVrv::DtArticulatingCylinderModelInstance::myBackGeode [protected]

Geode to draw the geometry with frontface culling.

osg::ref_ptr<osg::MatrixTransform> makVrv::DtArticulatingCylinderModelInstance::myTransform [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)