![]() |
VR-Forces 5.0.2 Developer's Guide
|
The DtEntity2dFacadeBase is the common methods of a facade around agents that make up an entity in the 2D Icon model set. DtEntity2dFacade extends this to represent the element using a TrueType Font symbol; DtEntity2dImageFacade extends it to represent the element using an image.

Public Member Functions | |
| DtEntity2dFacadeBase (DtAgentManagerInterface &sceneInterface, DtElementID id, bool distribute=false) | |
| DtEntity2dFacadeBase (DtAgentManagerInterface &sceneInterface, int modelSet, DtElementID id, bool distribute=false) | |
| virtual | ~DtEntity2dFacadeBase () |
Entity Facade functions | |
These functions get parameters of the entity facade. representing the entity. | |
| virtual void | setVisible (bool visible) |
| virtual bool | visible () const |
| virtual DtElementID | elementID () const |
| virtual makVrv::DtUniqueID | uniqueId () const |
| virtual int | modelSet () const |
| DtSceneObjectAgent & | sceneObjectAgent () |
Spacial Functions | |
These functions control the spacial parameters of the entity. | |
| virtual void | setPosition (const DtVector &position) |
| virtual DtVector | position () const |
| virtual void | setVelocity (const DtVector32 &velocity) |
| virtual DtVector32 | velocity () const |
| virtual void | setAcceleration (const DtVector32 &acceleration) |
| virtual DtVector32 | acceleration () const |
| virtual void | setOrientation (const DtTaitBryan &orientation) |
| virtual DtTaitBryan | orientation () const |
| virtual void | setAngularVelocity (const DtVector32 &angularVelocity) |
| virtual DtVector32 | angularVelocity () const |
Advanced Spacial Functions | |
These functions control the advanced spacial behavior including dead-reckoning, and smoothing. | |
| virtual void | setDeadReckoningEnabled (bool position, bool velocity, bool orientation) |
| virtual void | setSmoothingEnabled (bool enabled) |
| virtual void | setSmoothingPeriod (float period) |
| virtual void | setDamaged (bool damaged) |
| bool | damaged () const |
Protected Member Functions | |
| virtual void | updateIcon ()=0 |
Protected Attributes | |
| DtElementID | myElementId |
| unsigned int | myModelSet |
| DtSceneObjectAgent * | mySceneObjectAgent |
| DtDeadReckonUpdaterAgent * | mySceneObjectUpdaterAgent |
| bool | myDamagedFlag |
| makVrv::DtEntity2dFacadeBase::DtEntity2dFacadeBase | ( | DtAgentManagerInterface & | sceneInterface, |
| DtElementID | id, | ||
| bool | distribute = false |
||
| ) |
CTOR.
| makVrv::DtEntity2dFacadeBase::DtEntity2dFacadeBase | ( | DtAgentManagerInterface & | sceneInterface, |
| int | modelSet, | ||
| DtElementID | id, | ||
| bool | distribute = false |
||
| ) |
CTOR with model set id.
|
virtual |
DTOR.
|
virtual |
set the entity's model hidden or visible
|
virtual |
Get the visibility of the entity.
|
virtual |
Get the element id for the entity facade.
|
virtual |
Returns the unique id of the scene object agent.
|
virtual |
Returns the model set being visualized.
| DtSceneObjectAgent& makVrv::DtEntity2dFacadeBase::sceneObjectAgent | ( | ) |
Returns the scene object agent for this facade.
|
virtual |
|
virtual |
Gets the current position of the entity. This value will not update until after the DtDe tick This is not the same as the current velocity. If the entity is being dead-reckoned or smoothed the velocity will change.
|
virtual |
|
virtual |
Gets the current velocity of the entity. This value will not update until after the DtDe tick. This is not the same as the current velocity. If the entity is being dead-reckoned or smoothed the velocity will change.
|
virtual |
Set the acceleration of the entity.
|
virtual |
Gets the current acceleration of the entity. This value will not update until after the DtDe tick. This is not the same as the last set acceleration. If the entity is being dead-reckoned or smoothed the velocity will change.
|
virtual |
Set the orientation of the entity.
|
virtual |
Get the current orientation of the entity.
|
virtual |
Set the angular velocity of the entity.
|
virtual |
Set the orientation of the entity.
|
virtual |
Set dead reckoning algorithm, whether to dead reckon, position, velocity, and orientation.
|
virtual |
Set whether the Entity smooths.
|
virtual |
Set the period for entity smoothing.
|
virtual |
Set dead reckoning algorithm, whether to dead reckon, position, velocity, and orientation.
| bool makVrv::DtEntity2dFacadeBase::damaged | ( | ) | const |
Set dead reckoning algorithm, whether to dead reckon, position, velocity, and orientation.
|
protectedpure virtual |
Method called to update the visual element when an entity's damage state changes.
Implemented in makVrv::DtEntity2dImageFacade, and makVrv::DtEntity2dFacade.
|
protected |
|
protected |
|
protected |
|
protected |