![]() |
VR-Forces 4.3 Class Documentation
|
The DtEntityFacade is a facade around agents that make up an entity. More...

Public Member Functions | |
| DtEntityFacade (DtAgentManagerInterface &sceneInterface, DtSharedSettingsManager &settingsManager, DtElementID id, const DtModelSetRealizationManager::ModelSetRealizations &modelSets, bool distribute=false, bool useImageFor2d=false) | |
| CTOR. | |
| DtEntityFacade (DtAgentManagerInterface &sceneInterface, DtSharedSettingsManager &settingsManager, const DtModelSetRealizationManager::ModelSetRealizations &modelSets, bool distribute=false, bool useImageFor2d=false) | |
| CTOR (will supply elementID) | |
| virtual | ~DtEntityFacade () |
| DTOR. | |
Entity Facade functions | |
These functions get parameters of the entity facade. representing the entity. | |
| 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. | |
| const DtEntity3dFacade * | findFacadeFor3d () const |
| Get the facade created for the 3D modelset, if requested in the modelsets list provided to the constructor. | |
| DtEntity3dFacade * | findFacadeFor3d () |
| set the entity's model hidden or visible | |
| const DtEntity3dFacade * | findFacadeForColorized () const |
| Get the facade created for the colorized modelset, if requested in the modelsets list provided to the constructor. | |
| DtEntity3dFacade * | findFacadeForColorized () |
| Get the facade created for the colorized modelset, if requested in the modelsets list provided to the constructor. | |
| const DtEntity2dFacade * | findFacadeFor2d () const |
| Get the facade created for the 2D modelset, if requested in the modelsets list provided to the constructor and if useImageFor2d is false (the default) | |
| DtEntity2dFacade * | findFacadeFor2d () |
| Get the facade created for the 2D modelset, if requested in the modelsets list provided to the constructor and if useImageFor2d is false (the default) | |
| const DtEntity2dImageFacade * | findFacadeFor2dImage () const |
| Get the facade created for the 2D modelset, if requested in the modelsets list provided to the constructor and if useImageFor2d is true. | |
| DtEntity2dImageFacade * | findFacadeFor2dImage () |
| Get the facade created for the 2D modelset, if requested in the modelsets list provided to the constructor and if useImageFor2d is true. | |
Spacial Functions | |
These functions control the spacial parameters of the entity. | |
| 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 DtVector &velocity) |
| Set the velocity of the entity. | |
| virtual DtVector | velocity () const |
| Gets the current velocity of the entity. | |
| virtual void | setAcceleration (const DtVector &acceleration) |
| Set the acceleration of the entity. | |
| virtual DtVector | 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 DtVector &angularVelocity) |
| Set the angular velocity of the entity. | |
| virtual DtVector | angularVelocity () const |
| Set the orientation of the entity. | |
Advanced Spacial Functions | |
These functions control the advanced spacial behavior including dead-reckoning, smoothing and ground clamping. | |
| 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 | setGroundClampingMode (DtGroundClampingUpdater::GroundClampingMode mode) |
| Set ground clamping mode using bit flags defined in DtGroundClampingUpdater::GroundClampingMode. | |
| void | setDisplayName (const std::string displayName) |
| Set the display name for the entity. | |
| const std::string & | displayName () const |
| Get the display name for this entity. | |
Protected Member Functions | |
| void | buildFacade (DtAgentManagerInterface &sceneInterface, const DtModelSetRealizationManager::ModelSetRealizations &modelSets, bool distribute, bool useImageFor2d) |
Protected Attributes | |
| DtSharedSettingsManager & | mySharedSettingsManager |
| DtElementID | myElementId |
| std::string | myDisplayName |
| DtEntity3dFacade * | my3dFacade |
| DtEntity3dFacade * | myColorizedFacade |
| DtEntity2dFacadeBase * | my2dFacade |
The DtEntityFacade is a facade around agents that make up an entity.
This entity facade represents a scene objects and models in the 3D, 2D, and Colorized model sets.
| makVrv::DtEntityFacade::DtEntityFacade | ( | DtAgentManagerInterface & | sceneInterface, |
| DtSharedSettingsManager & | settingsManager, | ||
| DtElementID | id, | ||
| const DtModelSetRealizationManager::ModelSetRealizations & | modelSets, | ||
| bool | distribute = false, |
||
| bool | useImageFor2d = false |
||
| ) |
CTOR.
| makVrv::DtEntityFacade::DtEntityFacade | ( | DtAgentManagerInterface & | sceneInterface, |
| DtSharedSettingsManager & | settingsManager, | ||
| const DtModelSetRealizationManager::ModelSetRealizations & | modelSets, | ||
| bool | distribute = false, |
||
| bool | useImageFor2d = false |
||
| ) |
CTOR (will supply elementID)
|
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.
| const DtEntity3dFacade* makVrv::DtEntityFacade::findFacadeFor3d | ( | ) | const |
Get the facade created for the 3D modelset, if requested in the modelsets list provided to the constructor.
| DtEntity3dFacade* makVrv::DtEntityFacade::findFacadeFor3d | ( | ) |
set the entity's model hidden or visible
| const DtEntity3dFacade* makVrv::DtEntityFacade::findFacadeForColorized | ( | ) | const |
Get the facade created for the colorized modelset, if requested in the modelsets list provided to the constructor.
| DtEntity3dFacade* makVrv::DtEntityFacade::findFacadeForColorized | ( | ) |
Get the facade created for the colorized modelset, if requested in the modelsets list provided to the constructor.
| const DtEntity2dFacade* makVrv::DtEntityFacade::findFacadeFor2d | ( | ) | const |
Get the facade created for the 2D modelset, if requested in the modelsets list provided to the constructor and if useImageFor2d is false (the default)
| DtEntity2dFacade* makVrv::DtEntityFacade::findFacadeFor2d | ( | ) |
Get the facade created for the 2D modelset, if requested in the modelsets list provided to the constructor and if useImageFor2d is false (the default)
| const DtEntity2dImageFacade* makVrv::DtEntityFacade::findFacadeFor2dImage | ( | ) | const |
Get the facade created for the 2D modelset, if requested in the modelsets list provided to the constructor and if useImageFor2d is true.
| DtEntity2dImageFacade* makVrv::DtEntityFacade::findFacadeFor2dImage | ( | ) |
Get the facade created for the 2D modelset, if requested in the modelsets list provided to the constructor and if useImageFor2d is true.
|
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 ground clamping mode using bit flags defined in DtGroundClampingUpdater::GroundClampingMode.
| void makVrv::DtEntityFacade::setDisplayName | ( | const std::string | displayName | ) |
Set the display name for the entity.
| const std::string& makVrv::DtEntityFacade::displayName | ( | ) | const |
Get the display name for this entity.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |