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

Dt3DTextStateVisualizer objects are responsible for displaying 3D text. More...

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

List of all members.

Public Member Functions

 Dt3DTextStateVisualizer (DtBaseConnection &simulation, DtStateListener &listener, int modelSet)
 Constructor.
virtual ~Dt3DTextStateVisualizer ()
 Destructor.
virtual void setLocation (const DtVector &loc)
 Sets the position of the cuboid in database coordinates, or body coordinates (if attached)
virtual void setColor (float r, float g, float b, float a)
 Sets the color of the text.
virtual void setFlashing (bool flashing)
 Sets whether the text is flashing.
virtual void setText (const std::string &str)
 Sets the actual text.
virtual void setAttached (DtUniqueID id, int vtx, double percentage)
 Attaches the text 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)
 Set the visuals visible or invisible.
virtual void createModelAgents ()
 Create the visual models, or do nothing if they already exist.
virtual void destroyModelAgents ()
 Destroy the visual models.
virtual void setModelDefinitionForAgents ()
 Not implemented.

Protected Attributes

Dt3DTextModelAgent * myTextModelAgent
DtAttachableUpdaterAgent * myAttachableUpdater
DtVisibilityAdapter
< Dt3DTextModelAgent > * 
myVisibilityAdapter

Detailed Description

Dt3DTextStateVisualizer objects are responsible for displaying 3D text.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

virtual void makVrv::Dt3DTextStateVisualizer::setLocation ( const DtVector loc) [virtual]

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

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

Sets the color of the text.

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

Sets whether the text is flashing.

Implements makVrv::DtRemoteGraphicVisualizerAttributes.

virtual void makVrv::Dt3DTextStateVisualizer::setText ( const std::string &  str) [virtual]

Sets the actual text.

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

Attaches the text 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::Dt3DTextStateVisualizer::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::Dt3DTextStateVisualizer::setVisible ( bool  yesNo) [protected, virtual]

Set the visuals visible or invisible.

This maintains the state of the visual objects, and calling setVisible(false) should not be expected to provide any performance benefit.

Implements makVrv::DtRemoteGraphicVisualizerAttributes.

virtual void makVrv::Dt3DTextStateVisualizer::createModelAgents ( ) [protected, virtual]

Create the visual models, or do nothing if they already exist.

Reimplemented from makVrv::DtSceneObjectVisualizer.

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

Destroy the visual models.

This does not maintain their state; for example, //! calling setFlashing(true); destroyModelAgents(); createModelAgents(); will result in models with the default value of flashing, which is false.

Destroying models generally provides some performance benefit, as compared to calling setVisible(false).

Reimplemented from makVrv::DtSceneObjectVisualizer.

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

Not implemented.

Reimplemented from makVrv::DtSceneObjectVisualizer.


Member Data Documentation

Dt3DTextModelAgent* makVrv::Dt3DTextStateVisualizer::myTextModelAgent [protected]
DtAttachableUpdaterAgent* makVrv::Dt3DTextStateVisualizer::myAttachableUpdater [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)