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

DtCylinderStateVisualizer objects are responsible for visualizing cylinder objects. More...

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

List of all members.

Public Member Functions

 DtCylinderStateVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet)
 Constructor.
virtual ~DtCylinderStateVisualizer ()
 Destructor.
virtual void setDiameters (double length, double width, double height)
 Sets the diameters of the cylinder.
virtual void setColor (float r, float g, float b, float a)
 Sets the color of the cylinder.
virtual void setFlashing (bool flashing)
 Sets whether the cylinder is flashing.
virtual void setStartLocation (const DtVector &pos)
 Sets the start location of the cylinder.
virtual void setEndLocation (const DtVector &endpoint)
 Sets the end location of the cylinder. Only used for fixed cylinders.
virtual void setOrientation (const DtTaitBryan &orientation)
 Sets the orientation of the cylinder.
virtual void setAttached (DtUniqueID id, int vtx, double percentage)
 Sets the cylinder's attachment.
virtual void setHostId (const std::string &id, int vtx, double percentage)
 Sets the cylinder's host ID. Overridden by child class.
virtual void setOffset (const DtVector &offset)
 Sets the offset of an attached cylinder.
virtual void setCylinderType (DtCylinderStateListener::DtCylinderType cylinderType)
 Sets whether the cylinder is articulating or fixed.
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.
virtual void setFixedAttached (DtUniqueID id, int vtx, double percentage)
virtual void setArticulatedAttached (DtUniqueID id, int vtx, double percentage)

Protected Attributes

DtCylinderModelAgent * myFixedCylinderModelAgent
DtVisibilityAdapter
< DtCylinderModelAgent > * 
myFixedVisibilityAdapter
DtArticulatingCylinderModelAgent * myArticulatingCylinderModelAgent
DtVisibilityAdapter
< DtArticulatingCylinderModelAgent > * 
myArticulatingVisibilityAdapter
DtAttachableUpdaterAgent * myUpdaterAgent
DtAttachableDeadReckonUpdaterAgent * myDRUpdaterAgent
bool myVertex0Attached
bool myVertex1Attached

Detailed Description

DtCylinderStateVisualizer objects are responsible for visualizing cylinder objects.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

virtual void makVrv::DtCylinderStateVisualizer::setDiameters ( double  length,
double  width,
double  height 
) [virtual]

Sets the diameters of the cylinder.

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

Sets the color of the cylinder.

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

Sets whether the cylinder is flashing.

Implements makVrv::DtRemoteGraphicVisualizerAttributes.

virtual void makVrv::DtCylinderStateVisualizer::setStartLocation ( const DtVector pos) [virtual]

Sets the start location of the cylinder.

virtual void makVrv::DtCylinderStateVisualizer::setEndLocation ( const DtVector endpoint) [virtual]

Sets the end location of the cylinder. Only used for fixed cylinders.

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

Sets the orientation of the cylinder.

Only used for articulating cylinders.

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

Sets the cylinder's attachment.

Parameters:
idUnique ID of the parent object
vtxWhich vertex (0 or 1) of the cylinder to attach
percentagePercentage between vertices to attach to, if the attached object is a cylinder or line
virtual void makVrv::DtCylinderStateVisualizer::setHostId ( const std::string &  id,
int  vtx,
double  percentage 
) [virtual]

Sets the cylinder's host ID. Overridden by child class.

virtual void makVrv::DtCylinderStateVisualizer::setOffset ( const DtVector offset) [virtual]

Sets the offset of an attached cylinder.

Sets whether the cylinder is articulating or fixed.

Must be called *before other values are set.

The instance's type info.

Implements makVrv::DtStateVisualizer.

This class's type info.

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

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

Reimplemented from makVrv::DtSceneObjectVisualizer.

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

Model agent is only destroyed in destructor.

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

Reimplemented from makVrv::DtSceneObjectVisualizer.

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.

virtual void makVrv::DtCylinderStateVisualizer::setFixedAttached ( DtUniqueID  id,
int  vtx,
double  percentage 
) [protected, virtual]
virtual void makVrv::DtCylinderStateVisualizer::setArticulatedAttached ( DtUniqueID  id,
int  vtx,
double  percentage 
) [protected, virtual]

Member Data Documentation

DtArticulatingCylinderModelAgent* makVrv::DtCylinderStateVisualizer::myArticulatingCylinderModelAgent [protected]
DtAttachableUpdaterAgent* makVrv::DtCylinderStateVisualizer::myUpdaterAgent [protected]
DtAttachableDeadReckonUpdaterAgent* makVrv::DtCylinderStateVisualizer::myDRUpdaterAgent [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)