23#include <matrix/vlVector.h>
24#include <matrix/vlQuaternion.h>
104 virtual void tick(
double dt)
override;
114 virtual const char*
type()
const override;
virtual makVre::DtVreMessageResult handlePlayerReset(makVre::DtVreMessage *msg)
Handles reset messages.
virtual void tick(double dt) override
Updates the observer's position, orientation, and sensor mode.
bool myAttached
Flag indicating if the observer is attached to an entity.
Definition commanderObserverUpdater.h:157
void updateSensor()
Updates the observer's sensor mode.
SensorViews myLastSensorViewMode
Last known sensor view mode.
Definition commanderObserverUpdater.h:185
DtVector myAttachedOffset
Position offset from the attachment part.
Definition commanderObserverUpdater.h:175
makVrv::DtObserver * myObserver
Cached pointer to the observer being controlled.
Definition commanderObserverUpdater.h:160
DtQuaternion myOriOffest
Orientation offset from the attachment part.
Definition commanderObserverUpdater.h:180
void updateDestroyed()
Handles entity destruction state changes.
virtual bool initialize(DtPlayerStation *player, DtInitTable &config) override
Initializes the component with configuration from Lua.
std::map< enum SensorViews, std::string > mySensorModes
Map of SensorViews enums to VR-Engage sensor mode names.
Definition commanderObserverUpdater.h:191
DtLinearInterpolator< double > * myZoomInterpolator
Interpolator for smooth zoom transitions.
Definition commanderObserverUpdater.h:165
virtual const char * type() const override
Returns the component type identifier.
virtual ~DtCommanderObserverUpdater() override
Virtual destructor for DtCommanderObserverUpdater.
void resetObserver()
Resets and re-attaches the observer to the entity.
virtual makVre::DtVreMessageResult handlePlayerCreated(makVre::DtVreMessage *msg)
Handles player created messages.
int myAttachPart
DIS part enumeration value for the vehicle part to attach the observer to.
Definition commanderObserverUpdater.h:170
DtCommanderObserverUpdater()
Constructor for DtCommanderObserverUpdater.
virtual void shutdown() override
Shuts down the component.
Table-based access to Lua state for configuration data.
Definition initializer.h:38
Linear interpolation template class.
Definition linearInterpolator.h:23
DtObserverUpdater()
Default constructor for DtObserverUpdater.
virtual DtPlayerStation & player()
Gets the player station.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Base component for managing observer parameters and view settings.
constexpr const char * attachPart
Definition commanderObserverUpdater.h:46
constexpr const char * sensorModes
Definition commanderObserverUpdater.h:52
constexpr const char * attachOffset
Definition commanderObserverUpdater.h:43
constexpr const char * oriOffset
\vreRoleParam{oriOffset,DtQuaternion,"DtQuaternion(0,0,0,1)",commanderObserverUpdater,...
Definition commanderObserverUpdater.h:49
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Provides a template class for linear interpolation between values.
Definition commanderObserverUpdater.h:35
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
constexpr const char * DtCommanderObserverUpdaterType
Type identifier for DtCommanderObserverUpdater component.
Definition commanderObserverUpdater.h:61
SensorViews
Enumeration of available sensor view modes.
Definition stateDefines.h:18
Definition appLauncherComponent.h:28
Common enumeration definitions used throughout the VREngage system.
Defines the base class for all VREngage messages.