VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtEntity2dFacade Class Reference

The DtEntity2dFacade is a facade around agents that make up an entity in the 2D Icon model set represented by a TrueType font symbol. More...

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

Public Member Functions

 DtEntity2dFacade (DtAgentManagerInterface &sceneInterface, DtElementID id, bool distribute=false)
 CTOR.
 DtEntity2dFacade (DtAgentManagerInterface &sceneInterface, int modelSet, DtElementID id, bool distribute=false)
 CTOR with model set id.
virtual ~DtEntity2dFacade ()
 DTOR.
Icon functions

These functions control the icon display of the entity.

virtual void setIconModelDefinition (const std::string &modelDefinitionName)
 Set the model definition for the icon.
virtual void setOutlineColor (const float color[4])
 Set the model definition for the icon.
virtual void setFillColor (const float color[4])
 Set the model definition for the icon.
virtual void setOutlineGlyph (DtUnicodeChar glyph)
 Set the model definition for the icon.
virtual void setFillGlyph (DtUnicodeChar glyph)
 Set the model definition for the icon.
virtual void setDamageGlyph (DtUnicodeChar glyph)
 Set the model definition for the icon.
- Public Member Functions inherited from makVrv::DtEntity2dFacadeBase
 DtEntity2dFacadeBase (DtAgentManagerInterface &sceneInterface, DtElementID id, bool distribute=false)
 CTOR.
 DtEntity2dFacadeBase (DtAgentManagerInterface &sceneInterface, int modelSet, DtElementID id, bool distribute=false)
 CTOR with model set id.
virtual ~DtEntity2dFacadeBase ()
 DTOR.
virtual void setVisible (bool visible)
 set the entity's model hidden or visible
virtual bool visible () const
 Get the visibility of the entity.
virtual DtElementID elementID () const
 Get the element id for the entity facade.
virtual makVrv::DtUniqueID uniqueId () const
 Returns the unique id of the scene object agent.
virtual int modelSet () const
 Returns the model set being visualized.
DtSceneObjectAgent & sceneObjectAgent ()
 Returns the scene object agent for this facade.
virtual void setPosition (const DtVector &position)
 Set the position of the entity.The change in position will be applied during the DtDe's agent update phase (which occurs during the DtDe tick after the Driver update phase).
virtual DtVector position () const
 Gets the current position of the entity.
virtual void setVelocity (const DtVector32 &velocity)
 Set the velocity of the entity.
virtual DtVector32 velocity () const
 Gets the current velocity of the entity.
virtual void setAcceleration (const DtVector32 &acceleration)
 Set the acceleration of the entity.
virtual DtVector32 acceleration () const
 Gets the current acceleration of the entity.
virtual void setOrientation (const DtTaitBryan &orientation)
 Set the orientation of the entity.
virtual DtTaitBryan orientation () const
 Get the current orientation of the entity.
virtual void setAngularVelocity (const DtVector32 &angularVelocity)
 Set the angular velocity of the entity.
virtual DtVector32 angularVelocity () const
 Set the orientation of the entity.
virtual void setDeadReckoningEnabled (bool position, bool velocity, bool orientation)
 Set dead reckoning algorithm, whether to dead reckon, position, velocity, and orientation.
virtual void setSmoothingEnabled (bool enabled)
 Set whether the Entity smooths.
virtual void setSmoothingPeriod (float period)
 Set the period for entity smoothing.
virtual void setDamaged (bool damaged)
 Set dead reckoning algorithm, whether to dead reckon, position, velocity, and orientation.
bool damaged () const
 Set dead reckoning algorithm, whether to dead reckon, position, velocity, and orientation.

Protected Member Functions

virtual void updateIcon ()
 Method called to update the visual element when an entity's damage state changes.
virtual DtUnicode generateSymbolString (float fillColor[4], float outlineColor[4]) const

Protected Attributes

DtProjectedWidgetModelAgent * myProjectIconModelAgent
DtWidgetLabelAgent * mySymbolLabelAgent
DtUnicodeChar myOutlineGlyph
DtUnicodeChar myFillGlyph
DtUnicodeChar myDamageGlyph
DtUnicode mySymbolString
float myFillColor [4]
float myOutlineColor [4]
- Protected Attributes inherited from makVrv::DtEntity2dFacadeBase
DtElementID myElementId
unsigned int myModelSet
DtSceneObjectAgent * mySceneObjectAgent
DtDeadReckonUpdaterAgent * mySceneObjectUpdaterAgent
bool myDamagedFlag

Detailed Description

The DtEntity2dFacade is a facade around agents that make up an entity in the 2D Icon model set represented by a TrueType font symbol.

Constructor & Destructor Documentation

makVrv::DtEntity2dFacade::DtEntity2dFacade ( DtAgentManagerInterface sceneInterface,
DtElementID  id,
bool  distribute = false 
)

CTOR.

makVrv::DtEntity2dFacade::DtEntity2dFacade ( DtAgentManagerInterface sceneInterface,
int  modelSet,
DtElementID  id,
bool  distribute = false 
)

CTOR with model set id.

virtual makVrv::DtEntity2dFacade::~DtEntity2dFacade ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtEntity2dFacade::setIconModelDefinition ( const std::string &  modelDefinitionName)
virtual

Set the model definition for the icon.

virtual void makVrv::DtEntity2dFacade::setOutlineColor ( const float  color[4])
virtual

Set the model definition for the icon.

virtual void makVrv::DtEntity2dFacade::setFillColor ( const float  color[4])
virtual

Set the model definition for the icon.

virtual void makVrv::DtEntity2dFacade::setOutlineGlyph ( DtUnicodeChar  glyph)
virtual

Set the model definition for the icon.

virtual void makVrv::DtEntity2dFacade::setFillGlyph ( DtUnicodeChar  glyph)
virtual

Set the model definition for the icon.

virtual void makVrv::DtEntity2dFacade::setDamageGlyph ( DtUnicodeChar  glyph)
virtual

Set the model definition for the icon.

virtual void makVrv::DtEntity2dFacade::updateIcon ( )
protectedvirtual

Method called to update the visual element when an entity's damage state changes.

Implements makVrv::DtEntity2dFacadeBase.

virtual DtUnicode makVrv::DtEntity2dFacade::generateSymbolString ( float  fillColor[4],
float  outlineColor[4] 
) const
protectedvirtual

Member Data Documentation

DtProjectedWidgetModelAgent* makVrv::DtEntity2dFacade::myProjectIconModelAgent
protected
DtWidgetLabelAgent* makVrv::DtEntity2dFacade::mySymbolLabelAgent
protected
DtUnicodeChar makVrv::DtEntity2dFacade::myOutlineGlyph
protected
DtUnicodeChar makVrv::DtEntity2dFacade::myFillGlyph
protected
DtUnicodeChar makVrv::DtEntity2dFacade::myDamageGlyph
protected
DtUnicode makVrv::DtEntity2dFacade::mySymbolString
protected
float makVrv::DtEntity2dFacade::myFillColor[4]
protected
float makVrv::DtEntity2dFacade::myOutlineColor[4]
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)