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

DtCuboidStateVisualizer objects are responsible for displaying cuboid object. More...

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

List of all members.

Public Member Functions

 DtCuboidStateVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet)
 Constructor.
virtual ~DtCuboidStateVisualizer ()
 Destructor.
virtual void setDimensions (const DtVector &dim)
 Sets the dimensions of the cuboid.
virtual void setColor (float r, float g, float b, float a)
 Sets the color of the cuboid.
virtual void setFlashing (bool flashing)
 Sets whether the cuboid is flashing.
virtual void setPosition (const DtVector &pos)
 Sets the position of the cuboid in database coordinates, or body coordinates (if attached)
virtual void setOrientation (const DtTaitBryan &orientation)
 Sets the orientation of the cuboid in database coordinates.
virtual void setAttached (DtUniqueID id, int vtx, double percentage)
 Attaches the cuboid to the unique ID specified.
virtual void setHostId (const std::string &id, int vtx, double percentage)
 Sets the host ID attached to. Overridden by child classes.
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 setVisible (bool yesNo)
virtual void createModelAgents ()
 Creates the model agent. If already created, makes it visible.
virtual void destroyModelAgents ()
 Model agent is only destroyed in destructor.
virtual void setModelDefinitionForAgents ()
 Sets model definition for all the agents that this visualizer might be using.

Protected Attributes

DtAttachableCuboidModelAgent * myCuboidModelAgent
DtAttachableDeadReckonUpdaterAgent * myAttachedUpdaterAgent
DtVisibilityAdapter
< DtAttachableCuboidModelAgent > * 
myVisibilityAdapter

Detailed Description

DtCuboidStateVisualizer objects are responsible for displaying cuboid object.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

virtual void makVrv::DtCuboidStateVisualizer::setDimensions ( const DtVector dim) [virtual]

Sets the dimensions of the cuboid.

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

Sets the color of the cuboid.

virtual void makVrv::DtCuboidStateVisualizer::setFlashing ( bool  flashing) [virtual]

Sets whether the cuboid is flashing.

Implements makVrv::DtRemoteGraphicVisualizerAttributes.

virtual void makVrv::DtCuboidStateVisualizer::setPosition ( const DtVector pos) [virtual]

Sets the position of the cuboid in database coordinates, or body coordinates (if attached)

virtual void makVrv::DtCuboidStateVisualizer::setOrientation ( const DtTaitBryan &  orientation) [virtual]

Sets the orientation of the cuboid in database coordinates.

virtual void makVrv::DtCuboidStateVisualizer::setAttached ( DtUniqueID  id,
int  vtx,
double  percentage 
) [virtual]

Attaches the cuboid to the unique ID specified.

Parameters:
idUnique ID of the object attached to, if 0, detaches
vtxignored
percentageSpecifies the percentage between 2 vertices if attached to a line or cylinder
virtual void makVrv::DtCuboidStateVisualizer::setHostId ( const std::string &  id,
int  vtx,
double  percentage 
) [virtual]

Sets the host ID attached to. Overridden by child classes.

The instance's type info.

Implements makVrv::DtStateVisualizer.

This class's type info.

virtual void makVrv::DtCuboidStateVisualizer::setVisible ( bool  yesNo) [protected, virtual]
virtual void makVrv::DtCuboidStateVisualizer::createModelAgents ( ) [protected, virtual]

Creates the model agent. If already created, makes it visible.

Reimplemented from makVrv::DtSceneObjectVisualizer.

virtual void makVrv::DtCuboidStateVisualizer::destroyModelAgents ( ) [protected, virtual]

Model agent is only destroyed in destructor.

Here, it will be hidden (if it has been created)

Reimplemented from makVrv::DtSceneObjectVisualizer.

virtual void makVrv::DtCuboidStateVisualizer::setModelDefinitionForAgents ( ) [protected, virtual]

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

Reimplemented from makVrv::DtSceneObjectVisualizer.


Member Data Documentation

DtAttachableCuboidModelAgent* makVrv::DtCuboidStateVisualizer::myCuboidModelAgent [protected]
DtAttachableDeadReckonUpdaterAgent* makVrv::DtCuboidStateVisualizer::myAttachedUpdaterAgent [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)