|
VR-Engage
2.2
|
DtFpsFirstPersonUpdaterAgent provides a distributed interface for controlling DtFpsFirstPersonUpdater objects. It enables remote control of first-person model orientation and configuration across distributed rendering systems. This agent forwards calls to the actual updater object, handling distribution when needed.
#include <DtFpsFirstPersonUpdaterAgent.hpp>
Public Member Functions | |
| DtFpsFirstPersonUpdaterAgent () | |
| virtual | ~DtFpsFirstPersonUpdaterAgent () override |
| DtFpsFirstPersonUpdater * | findObject () |
| const DtFpsFirstPersonUpdater * | findObject () const |
| virtual void | setModelPitch (float pitch)=0 |
| virtual void | setModelHeading (float heading)=0 |
| virtual void | setPitchAxis (char axis)=0 |
| virtual void | setBaseRotation (DtVector yawPitchRoll)=0 |
| virtual void | setPivotJoint (std::string jointName)=0 |
Public Member Functions inherited from makVre::DtSceneObjectMimicUpdaterAgent | |
| DtSceneObjectMimicUpdaterAgent () | |
| virtual | ~DtSceneObjectMimicUpdaterAgent () |
| DtSceneObjectMimicUpdater * | findObject () |
| const DtSceneObjectMimicUpdater * | findObject () const |
| virtual void | setParentSceneObject (makVrv::DtUniqueID id)=0 |
| virtual void | setModelOffset (const DtVector &offset)=0 |
Static Public Member Functions | |
| static DtFpsFirstPersonUpdaterAgent * | create (makVrv::DtAgentManagerInterface &sceneInterface, bool bDistribute=true) |
Static Public Member Functions inherited from makVre::DtSceneObjectMimicUpdaterAgent | |
| static DtSceneObjectMimicUpdaterAgent * | create (makVrv::DtAgentManagerInterface &sceneInterface, bool bDistribute=true) |
Protected Member Functions | |
| virtual DtFpsFirstPersonUpdater * | findObjectAsDtFpsFirstPersonUpdater ()=0 |
Protected Member Functions inherited from makVre::DtSceneObjectMimicUpdaterAgent | |
| virtual DtSceneObjectMimicUpdater * | findObjectAsDtSceneObjectMimicUpdater ()=0 |
| makVre::DtFpsFirstPersonUpdaterAgent::DtFpsFirstPersonUpdaterAgent | ( | ) |
Default constructor.
Referenced by create().
|
overridevirtual |
Virtual destructor.
|
static |
Static helper method to create an instance of this agent.
| sceneInterface | Reference to the agent manager interface |
| bDistribute | Flag indicating whether to distribute this agent |
References DtFpsFirstPersonUpdaterAgent().
| DtFpsFirstPersonUpdater * makVre::DtFpsFirstPersonUpdaterAgent::findObject | ( | ) |
Finds the actual updater object this agent is controlling.
| const DtFpsFirstPersonUpdater * makVre::DtFpsFirstPersonUpdaterAgent::findObject | ( | ) | const |
Finds the actual updater object this agent is controlling (const version)
|
pure virtual |
Sets the pitch of the first-person model.
| pitch | Pitch angle in degrees |
Controls the pitch rotation of the first-person model, relative to the parent entity's SceneObject orientation.
Implemented in makVre::DtFpsFirstPersonUpdaterAgentImplementation.
|
pure virtual |
Sets the heading of the first-person model.
| heading | Heading angle in degrees |
Controls the heading rotation of the first-person model, relative to the parent entity's SceneObject orientation.
Implemented in makVre::DtFpsFirstPersonUpdaterAgentImplementation.
|
pure virtual |
Sets the axis used for pitch rotation.
| axis | Character representing the axis ('X', 'Y', or 'Z') |
Configuration parameter that controls which axis is used by setModelPitch. Default is 'Y'.
Implemented in makVre::DtFpsFirstPersonUpdaterAgentImplementation.
|
pure virtual |
Sets the base rotation for the first-person model.
| yawPitchRoll | Vector containing yaw, pitch, and roll values in degrees |
Configuration parameter that sets a base rotation for the first-person model. Values from setModelPitch and setModelHeading are added to this base rotation. Value is relative to the parent entity's SceneObject. Default is (0,0,0).
Implemented in makVre::DtFpsFirstPersonUpdaterAgentImplementation.
|
pure virtual |
Sets the pivot joint for model rotation.
| jointName | Name of the skeletal joint to use as pivot |
Configuration parameter that specifies the name of the skeletal joint in the first-person model around which the model should be rotated. Default is "cervical".
Implemented in makVre::DtFpsFirstPersonUpdaterAgentImplementation.
|
protectedpure virtual |
Implementation method to find the controlled object as DtFpsFirstPersonUpdater.
Implemented in makVre::DtFpsFirstPersonUpdaterAgentImplementation.