VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtFpsOrientationUpdaterAgent Class Referenceabstract

Detailed Description

DtFpsOrientationUpdaterAgent provides a distributed interface for controlling DtFpsOrientationUpdater objects. It enables remote control of model orientation across distributed rendering systems. This agent forwards calls to the actual updater object, handling distribution when needed.

#include <DtFpsOrientationUpdaterAgent.hpp>

Inheritance diagram for makVre::DtFpsOrientationUpdaterAgent:
[legend]

Public Member Functions

 DtFpsOrientationUpdaterAgent ()
 
virtual ~DtFpsOrientationUpdaterAgent () override
 
DtFpsOrientationUpdaterfindObject ()
 
const DtFpsOrientationUpdaterfindObject () const
 
virtual void setModelHeading (double heading, bool useYaw)=0
 

Static Public Member Functions

static DtFpsOrientationUpdaterAgentcreate (makVrv::DtAgentManagerInterface &sceneInterface, bool bDistribute=true)
 

Protected Member Functions

virtual DtFpsOrientationUpdaterfindObjectAsDtFpsOrientationUpdater ()=0
 

Constructor & Destructor Documentation

◆ DtFpsOrientationUpdaterAgent()

makVre::DtFpsOrientationUpdaterAgent::DtFpsOrientationUpdaterAgent ( )

Default constructor.

Referenced by create().

◆ ~DtFpsOrientationUpdaterAgent()

virtual makVre::DtFpsOrientationUpdaterAgent::~DtFpsOrientationUpdaterAgent ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ create()

static DtFpsOrientationUpdaterAgent * makVre::DtFpsOrientationUpdaterAgent::create ( makVrv::DtAgentManagerInterface & sceneInterface,
bool bDistribute = true )
static

Static helper method to create an instance of this agent.

Parameters
sceneInterfaceReference to the agent manager interface
bDistributeFlag indicating whether to distribute this agent
Returns
Pointer to a newly created agent instance

References DtFpsOrientationUpdaterAgent().

◆ findObject() [1/2]

DtFpsOrientationUpdater * makVre::DtFpsOrientationUpdaterAgent::findObject ( )

Finds the actual updater object this agent is controlling.

Returns
Pointer to the controlled DtFpsOrientationUpdater object
Warning
Any direct modifications to the actual object will NOT work when using distributed rendering

◆ findObject() [2/2]

const DtFpsOrientationUpdater * makVre::DtFpsOrientationUpdaterAgent::findObject ( ) const

Finds the actual updater object this agent is controlling (const version)

Returns
Const pointer to the controlled DtFpsOrientationUpdater object
Warning
Any direct modifications to the actual object will NOT work when using distributed rendering

◆ setModelHeading()

virtual void makVre::DtFpsOrientationUpdaterAgent::setModelHeading ( double heading,
bool useYaw )
pure virtual

Sets the heading of the model.

Parameters
headingHeading angle in degrees
useYawFlag indicating whether to use yaw rotation or direct orientation

Controls the heading rotation of the model. When useYaw is true, the heading is applied as a yaw rotation. Otherwise, it's applied as a direct orientation change.

Implemented in makVre::DtFpsOrientationUpdaterAgentImplementation.

◆ findObjectAsDtFpsOrientationUpdater()

virtual DtFpsOrientationUpdater * makVre::DtFpsOrientationUpdaterAgent::findObjectAsDtFpsOrientationUpdater ( )
protectedpure virtual

Implementation method to find the controlled object as DtFpsOrientationUpdater.

Returns
Pointer to the controlled DtFpsOrientationUpdater object

Implemented in makVre::DtFpsOrientationUpdaterAgentImplementation.


The documentation for this class was generated from the following file: