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

State visualizer for entities with articulated models. More...

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

List of all members.

Public Member Functions

 DtEntityArticulatedStateModelVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet)
 CTOR.
virtual ~DtEntityArticulatedStateModelVisualizer ()
 DTOR.
virtual void setAutoSendMovingState (bool)
 Set to false to not automatically set moving state.
bool autoSendMovingState () const
virtual void setState (int stateNumber, int stateValue)
 Sets the state of the articulated model.
virtual void setVisualizerDefinition (const DtVisualizerDefinition &visDef)
 process the visual definition record
virtual void setColorizedColor (float r, float g, float b, float alpha)
 Set the color of the model.
virtual void setDisableModelScaling (bool b)
 Set whether model scaling is disabled (false by default)
virtual void setLocalModelScalingEnabled (bool enabled)
 Set whether local model scaling is enabled ( false by default )
virtual void setLocalModelScalingAmount (float localScl)
 Set the amount of local scaling to apply ( when enabled ).
virtual const
DtStateVisualizer::TypeInfo
typeInfo () const
 The instance's type info.

Static Public Member Functions

static const
DtStateVisualizer::TypeInfo
theTypeInfo ()
 This class's type info.

Protected Member Functions

virtual void createModelAgents ()
 Override to create model agents that will be used to display data from the listener.
virtual void destroyModelAgents ()
 Destroys all currently created definitions.
virtual void setModelDefinitionForAgents ()
 Sets model definition for all the agents that this visualizer might be using.
virtual void updateColorBlending ()
virtual void setPartTranslation (int partNumber, const DtVector &transform, const DtVector &velocity)
 Update the part translation.
virtual void setPartOrientation (int partNumber, const DtTaitBryan &orientation, const DtVector &rotationalVelocity)
 Rotate the part.
virtual void setVelocity (const DtVector &v)
 Checks to see whether or not to set moving bit.
void updateMoving (bool moving)
virtual void setRelativeVelocity (const DtVector &v)

Protected Attributes

DtArticulatedModelAgent * myArticulatedModelAgent
bool myAutoSendMovingState
bool myMovingFlag
bool myAffectsBounds
bool myColorized
float myColorizedRed
float myColorizedGreen
float myColorizedBlue
float myColorizedAlpha
bool myDisableModelScaling
bool myEnableLocalModelScaling
float myLocalModelScalingAmount

Detailed Description

State visualizer for entities with articulated models.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

Set to false to not automatically set moving state.

virtual void makVrv::DtEntityArticulatedStateModelVisualizer::setState ( int  stateNumber,
int  stateValue 
) [virtual]

Sets the state of the articulated model.

Reimplemented from makVrv::DtEntityStateVisualizer.

Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityArticulatedStateModelVisualizer.

process the visual definition record

Reimplemented from makVrv::DtStateVisualizer.

virtual void makVrv::DtEntityArticulatedStateModelVisualizer::setColorizedColor ( float  r,
float  g,
float  b,
float  alpha 
) [virtual]

Set the color of the model.

Set whether model scaling is disabled (false by default)

Set whether local model scaling is enabled ( false by default )

Set the amount of local scaling to apply ( when enabled ).

The instance's type info.

Implements makVrv::DtStateVisualizer.

This class's type info.

Override to create model agents that will be used to display data from the listener.

Implements makVrv::DtStateVisualizer.

Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityArticulatedStateModelVisualizer.

Destroys all currently created definitions.

Implements makVrv::DtStateVisualizer.

Sets model definition for all the agents that this visualizer might be using.

If model agents are not created, should create them. Should not call this directly, but rather call setModelDefinition

Implements makVrv::DtStateVisualizer.

Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkEntityArticulatedStateModelVisualizer.

virtual void makVrv::DtEntityArticulatedStateModelVisualizer::setPartTranslation ( int  partNumber,
const DtVector transform,
const DtVector velocity 
) [protected, virtual]

Update the part translation.

virtual void makVrv::DtEntityArticulatedStateModelVisualizer::setPartOrientation ( int  partNumber,
const DtTaitBryan &  orientation,
const DtVector rotationalVelocity 
) [protected, virtual]

Rotate the part.

virtual void makVrv::DtEntityArticulatedStateModelVisualizer::setVelocity ( const DtVector v) [protected, virtual]

Checks to see whether or not to set moving bit.

virtual void makVrv::DtEntityArticulatedStateModelVisualizer::setRelativeVelocity ( const DtVector v) [protected, virtual]

Member Data Documentation


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)