![]() |
VR-Forces 5.0.2 Developer's Guide
|
The DtEntity2dFacade is a facade around agents that make up an entity in the 2D Icon model set represented by a TrueType font symbol.

Public Member Functions | |
| DtEntity2dImageFacade (DtAgentManagerInterface &sceneInterface, DtElementID id, bool distribute=false) | |
| DtEntity2dImageFacade (DtAgentManagerInterface &sceneInterface, int modelSet, DtElementID id, bool distribute=false) | |
| virtual | ~DtEntity2dImageFacade () |
Image functions | |
These functions control the image display of the entity. | |
| virtual void | setIconModelDefinition (const std::string &def) |
| virtual std::string | iconModelDefinition () const |
| virtual void | setDestroyedIconModelDefinition (const std::string &def) |
| virtual std::string | destroyedIconModelDefinition () const |
| virtual void | setScale (float scale) |
| float | scale () const |
| virtual void | setImageSize (int sizeX, int sizeY) |
| virtual void | getImageSize (int &sizeX, int &sizeY) |
Public Member Functions inherited from makVrv::DtEntity2dFacadeBase | |
| DtEntity2dFacadeBase (DtAgentManagerInterface &sceneInterface, DtElementID id, bool distribute=false) | |
| DtEntity2dFacadeBase (DtAgentManagerInterface &sceneInterface, int modelSet, DtElementID id, bool distribute=false) | |
| virtual | ~DtEntity2dFacadeBase () |
| virtual void | setVisible (bool visible) |
| virtual bool | visible () const |
| virtual DtElementID | elementID () const |
| virtual makVrv::DtUniqueID | uniqueId () const |
| virtual int | modelSet () const |
| DtSceneObjectAgent & | sceneObjectAgent () |
| 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 |
| 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 () |
Protected Attributes | |
| DtProjectedWidgetModelAgent * | myProjectIconModelAgent |
| DtWidgetAgent * | myIcon |
| DtWidgetAgent * | myDestroyedIcon |
| float | myScale |
| unsigned int | myIconGroup |
| unsigned int | myDestroyedIconGroup |
| int | mySizeX |
| int | mySizeY |
| std::string | myIconModelDefinition |
| std::string | myDestroyedIconModelDefinition |
Protected Attributes inherited from makVrv::DtEntity2dFacadeBase | |
| DtElementID | myElementId |
| unsigned int | myModelSet |
| DtSceneObjectAgent * | mySceneObjectAgent |
| DtDeadReckonUpdaterAgent * | mySceneObjectUpdaterAgent |
| bool | myDamagedFlag |
| makVrv::DtEntity2dImageFacade::DtEntity2dImageFacade | ( | DtAgentManagerInterface & | sceneInterface, |
| DtElementID | id, | ||
| bool | distribute = false |
||
| ) |
CTOR.
| makVrv::DtEntity2dImageFacade::DtEntity2dImageFacade | ( | DtAgentManagerInterface & | sceneInterface, |
| int | modelSet, | ||
| DtElementID | id, | ||
| bool | distribute = false |
||
| ) |
CTOR with model set id.
|
virtual |
DTOR.
|
virtual |
Set/get the model definition for the image to use for the main icon. If unset, the default is "2525a_unknown".
|
virtual |
Set/get the model definition for the image to use for the main icon. If unset, the default is "2525a_unknown".
|
virtual |
Set/get the model definition for the image to use for the destroyed icon. This icon is drawn OVER the main icon when the facade's damage state is set to true. The default is "Destroyed".
|
virtual |
Set/get the model definition for the image to use for the destroyed icon. This icon is drawn OVER the main icon when the facade's damage state is set to true. The default is "Destroyed".
|
virtual |
Set/get a scale factor to by used to scale the main and destroyed images.
| float makVrv::DtEntity2dImageFacade::scale | ( | ) | const |
Set/get a scale factor to by used to scale the main and destroyed images.
Set/get the image size (before scaling) to use for the main and destroyed icons.
Set/get the image size (before scaling) to use for the main and destroyed icons.
|
protectedvirtual |
Method called to update the visual element when an entity's damage state changes.
Implements makVrv::DtEntity2dFacadeBase.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |