![]() |
VR-Forces Developer's Guide
|
The DtEntity3dFacade is a facade around agents that make up an entity in the 3D model set.
Public Member Functions | |
| DtEntity3dFacade (DtAgentManagerInterface &sceneInterface, DtSharedSettingsManager &settingsMgr, DtElementID id, bool distribute=false) | |
| DtEntity3dFacade (DtAgentManagerInterface &sceneInterface, DtSharedSettingsManager &settingsMgr, DtElementID id, DtModelSetId modelset, bool distribute=false) | |
| virtual | ~DtEntity3dFacade () |
Entity Facade functions | |
These functions get parameters of the entity facade. representing the entity. | |
| virtual void | setUpdateTypes (bool deadReckon=true, bool groundClamp=true) |
| virtual void | setVisible (bool visible) |
| virtual bool | visible () const |
| virtual DtElementID | elementId () const |
| virtual DtModelSetId | 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, smoothing and ground clamping. | |
| virtual void | setDeadReckoningEnabled (bool position, bool velocity, bool orientation) |
| virtual void | setSmoothingEnabled (bool enabled) |
| virtual void | setSmoothingPeriod (float period) |
| virtual void | setGroundClampingMode (DtGroundClampingUpdater::GroundClampingMode mode) |
| virtual void | SetGroundClampingCullCylinderRadiusScale (float scale) |
| virtual void | setWaterClamping (bool isWaterClamping) |
| virtual void | setWaterClampingLod (double lodRange) |
| virtual void | setWaterlineOriginOffset (float offset) |
| virtual void | addWake () |
| virtual void | setWakeLODDistance (double distance) |
| virtual DtWakeModelAgent * | wake () |
| virtual void | addTidalStreamWake () |
| virtual void | addTidalStreamWake (double wakeLength, double draft, double maxWaveAmplitude) |
| virtual void | addTidalStreamWake (const std::string &modelDefinitionName) |
| virtual void | removeTidalStreamWake () |
| virtual void | setTidalStreamWakeLod (double distance) |
| virtual void | setTidalStreamWakeCurrent (double speed, double direction) |
Articulated Model Functions | |
These functions control the appearance of an articulated model representing the entity. | |
| virtual void | setArticulatedModelDefinition (const std::string &modelName) |
| virtual const std::string & | articulatedModelDefinition () const |
| virtual void | setModelScalingEnabled (bool enabled) |
| virtual void | setPartOrientation (int partNumber, const DtTaitBryan &orientation, const DtVector &angularVelocity) |
| virtual void | setPartTranslation (int partNumber, const DtVector &translation, const DtVector &velocity) |
| virtual void | setPartVisibility (int partNumber, bool onOff) |
| virtual void | setSwitchState (int switchToSet, int value) |
| virtual void | setLightpointMaxDistance (float distance) |
| virtual DtArticulatedModelAgent * | articulatedModelAgent () |
Protected Member Functions | |
| void | init () |
| virtual void | slot_globalBuoyancyChanged (bool enabled) |
| virtual void | slot_buoyancyDefaultLODDistanceChanged (double distance) |
| virtual void | createWaterClampingUpdater () |
| virtual void | destroyWaterClampingUpdater () |
Protected Attributes | |
| DtSharedSettingsManager & | mySharedSettingsManager |
| DtElementID | myElementId |
| DtAgentManagerInterface & | mySceneInterface |
| bool | myDistributeFlag |
| float | myWaterlineOffset |
| bool | myIsWaterClamping |
| double | myWaterClampingLod |
| std::string | myModelDefinitionName |
| DtModelSetId | myModelSet |
| DtSceneObjectAgent * | mySceneObjectAgent |
| DtArticulatedModelAgent * | myModelAgent |
| DtDeadReckonUpdaterAgent * | myDeadReckonUpdaterAgent |
| DtGroundClampingUpdaterAgent * | myGroundClampingUpdaterAgent |
| DtWaterClampingUpdaterAgent * | myWaterClampingUpdaterAgent |
| DtSurfaceClampingUpdaterAgent * | mySurfaceClampingUpdaterAgent |
| DtTidalStreamWakeModelAgent * | myTidalStreamWakeModelAgent |
| DtTidalStreamWakeUpdaterAgent * | myTidalStreamWakeUpdaterAgent |
| DtWakeModelAgent * | myWakeModelAgent |
| DtWakeUpdaterAgent * | myWakeUpdaterAgent |
| DtSignalConnectionManager | myConnections |
| boost::signalslib::connection | myBuoyancyLODDistanceChangedConnection |
| makVrv::DtEntity3dFacade::DtEntity3dFacade | ( | DtAgentManagerInterface & | sceneInterface, |
| DtSharedSettingsManager & | settingsMgr, | ||
| DtElementID | id, | ||
| bool | distribute = false |
||
| ) |
CTOR Creates a 3d Facade for the 3D model set.
| makVrv::DtEntity3dFacade::DtEntity3dFacade | ( | DtAgentManagerInterface & | sceneInterface, |
| DtSharedSettingsManager & | settingsMgr, | ||
| DtElementID | id, | ||
| DtModelSetId | modelset, | ||
| bool | distribute = false |
||
| ) |
CTOR Creates a 3d Facade for the any model set.
|
virtual |
DTOR.
|
virtual |
Set the types of updaters that can run on this object.
|
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 model set being visualized.
| DtSceneObjectAgent& makVrv::DtEntity3dFacade::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 ground clamping mode using bit flags defined in DtGroundClampingUpdater::GroundClampingMode.
|
virtual |
Set the scale multiplier used to determine whether or not to cull the target according to its distance from the eye-point. This is used by the DtGroundClampingUpdater agent associated with this facade.
|
virtual |
Enable/disable water clamping.
|
virtual |
Set the LOD distance at which to stop water clamping.
|
virtual |
Set an offset to a model's waterline origin, if water clamping is enabled.
|
virtual |
Add a wake to the 3D model.
|
virtual |
Set dead reckoning algorithm, whether to dead reckon, position, velocity, and orientation.
|
virtual |
Access the wake object, if it exists.
|
virtual |
Add a tidal stream wake model to an object, Using default parameters for length, draft, and maxWaveAmplitude.
|
virtual |
Add a tidal stream wake model to an object. If a tidal stream wake already exists, it will be replaced with this one.
|
virtual |
Add a tidal stream wake model to an object, specifying a model definition.
|
virtual |
Remove a tidal stream wake.
|
virtual |
Set an LOD out-range for tidal stream wakes; note that the wake must be added first.
|
virtual |
Set the current parameters for a tidal stream wake. Speed is in meters/second, direction is radians clockwise from north. This will override the global current speed and direction specified in the environment. Note that the wake must be added first.
|
virtual |
Set the entity's model definition names.
|
virtual |
Get the entity's model definition names.
|
virtual |
Enable/Disable model scaling.
|
virtual |
Set an articulated part orientation.
|
virtual |
Set an articulated part translation.
Sets the visibility of an articulated part.
Sets a switch state.
|
virtual |
Lightpoint range control.
|
virtual |
Access the articulated model agent directly.
|
protected |
Constructor implementation.
|
protectedvirtual |
Slot called when the entity display settings Enable Buoyancy value changed.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |