19class DtVirtualRealityDriver;
89 virtual void tick(
double dt)
override;
98 virtual const char*
type()
const override;
Table-based access to Lua state for configuration data.
Definition initializer.h:38
virtual DtPlayerStation & player()
Gets the player station.
DtPlayerComponent()
Constructor.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
makVrv::DtVirtualRealityDriver * myVrDriver
Pointer to the VR driver if available.
Definition vreScopeSimLogic.h:135
DtScopeSimLogic()
Constructor for DtScopeSimLogic.
virtual void shutdown() override
Shuts down the scope simulation logic component.
virtual const char * type() const override
Returns the type identifier for this component.
ObserverAttachMode myLastObserverAttachMode
The observer attach mode used before entering aiming mode.
Definition vreScopeSimLogic.h:143
virtual void onViewMagnificationChanged(double mag)
Callback for view magnification attribute changes.
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the scope simulation logic component.
bool myMrWasActive
Flag indicating if mixed reality was active before entering aiming mode.
Definition vreScopeSimLogic.h:138
virtual makVre::DtVreMessageResult handleScopeIncreaseZoom(makVre::DtVreMessage *msg)
Handles messages to increase scope zoom level.
virtual void onAimingChanged(bool aiming)
Callback for when the aiming state changes.
double myHmdSmoothingThreshold
Threshold parameter for HMD orientation smoothing in degrees per second.
Definition vreScopeSimLogic.h:154
double myHmdSmoothingAlpha
Smoothing alpha parameter for HMD orientation smoothing.
Definition vreScopeSimLogic.h:150
virtual ~DtScopeSimLogic() override
Virtual destructor for DtScopeSimLogic.
virtual void tick(double dt) override
Called every frame to update the component state.
bool myHmdSmoothingEnabled
Flag indicating if HMD orientation smoothing is enabled.
Definition vreScopeSimLogic.h:146
double myMaxViewMagnification
Maximum allowed view magnification value.
Definition vreScopeSimLogic.h:132
virtual makVre::DtVreMessageResult handleScopeDecreaseZoom(makVre::DtVreMessage *msg)
Handles messages to decrease scope zoom level.
virtual bool postInitialize() override
Performs post-initialization after all components are initialized.
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
constexpr const char * hmdSmoothingEnabled
Definition vreScopeSimLogic.h:36
constexpr const char * hmdSmoothingAlpha
Definition vreScopeSimLogic.h:33
constexpr const char * hmdSmoothingThreshold
Definition vreScopeSimLogic.h:39
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Definition vreScopeSimLogic.h:25
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
ObserverAttachMode
Enumeration of camera/observer attachment offsets.
Definition stateDefines.h:44
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
constexpr const char * DtScopeSimLogicType
Type identifier for DtScopeSimLogic component.
Definition vreScopeSimLogic.h:45
Definition appLauncherComponent.h:28
Defines the DtPlayerComponent base class for VR-Engage role components.
Common enumeration definitions used throughout the VREngage system.
Defines the base class for all VREngage messages.