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

A model of a decal ribbon. More...

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

List of all members.

Public Member Functions

 DtOsgDecalModel (DtDe &de, DtUniqueID id)
 CTOR.
virtual ~DtOsgDecalModel ()
 DTOR.
virtual void setModelDefinition (const std::string &str)
 Override the default model definition function.
virtual void setModelInstance (DtModelInstance *modelInstance)
 Override to provide casted pointer.
virtual std::string className () const
 Get the class name of the model instance owner.
virtual void setOrientation (int vtx, const DtTaitBryan &ori)
 Set the orientation of the model.
virtual void setPosition (int vtx, const DtVector &pos)
 Set the position of the model.
virtual void addToScene (const DtUniqueID &id, int modelSet, int visualizerType)
 Add the animation to the scene, as part of the scene object with the specified unique ID.
virtual void removeFromScene ()
 Remove the animation from the scene.
virtual void setOcclusionEnabled (bool enabled)
 Enable or disable occlusion of the ribbon by other objects in the scene.
virtual void setColor (float r, float g, float b, float a)
 set the model's color
virtual void initializeModelInstance ()
 Push any state maintained by the model to the model instance.
virtual void setVisible (bool isVisible)
 Override to call setVisible on the scene connector.
virtual void setSolid (bool solid)
 Set the geometry of the model as solid.
virtual void update ()
 Update the position of the ribbon.

Protected Attributes

DtOsgSceneConnectormySceneConnector
DtDecalModelInstancemyDecalModelCast
bool myOcclusionEnabled
bool myColorSet
osg::Vec4 myColor

Detailed Description

A model of a decal ribbon.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual void makVrv::DtOsgDecalModel::setModelDefinition ( const std::string &  str) [virtual]

Override the default model definition function.

Implements makVrv::DtDecalModel.

virtual void makVrv::DtOsgDecalModel::setModelInstance ( DtModelInstance modelInstance) [virtual]

Override to provide casted pointer.

Reimplemented from makVrv::DtModel.

virtual std::string makVrv::DtOsgDecalModel::className ( ) const [virtual]

Get the class name of the model instance owner.

This is used to control how model instances are created.

Implements makVrv::DtDecalModel.

virtual void makVrv::DtOsgDecalModel::setOrientation ( int  vtx,
const DtTaitBryan &  ori 
) [virtual]

Set the orientation of the model.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgDecalModel::setPosition ( int  vtx,
const DtVector pos 
) [virtual]

Set the position of the model.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgDecalModel::addToScene ( const DtUniqueID id,
int  modelSet,
int  visualizerType 
) [virtual]

Add the animation to the scene, as part of the scene object with the specified unique ID.

Implements makVrv::DtModel.

virtual void makVrv::DtOsgDecalModel::removeFromScene ( ) [virtual]

Remove the animation from the scene.

Implements makVrv::DtModel.

virtual void makVrv::DtOsgDecalModel::setOcclusionEnabled ( bool  enabled) [virtual]

Enable or disable occlusion of the ribbon by other objects in the scene.

Implements makVrv::DtDecalModel.

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

set the model's color

Reimplemented from makVrv::DtModel.

Push any state maintained by the model to the model instance.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgDecalModel::setVisible ( bool  isVisible) [virtual]

Override to call setVisible on the scene connector.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgDecalModel::setSolid ( bool  solid) [virtual]

Set the geometry of the model as solid.

Implements makVrv::DtModel.

virtual void makVrv::DtOsgDecalModel::update ( ) [virtual]

Update the position of the ribbon.

Implements makVrv::DtDecalModel.


Member Data Documentation

osg::Vec4 makVrv::DtOsgDecalModel::myColor [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)