21class DtVirtualRealityDriver;
91 virtual void tick(
double dt)
override;
100 virtual const char*
type()
const override;
Provides handle classes for safe access to attributes.
Type-specific handle class for attributes.
Definition attributeHandle.h:229
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:137
DtAttributeHandleType< double > myViewMagnificationAttr
Handle for current scoped view magnification.
Definition vreScopeSimLogic.h:163
DtScopeSimLogic()
Constructor for DtScopeSimLogic.
DtAttributeHandleType< int > myScopeZoomIndexAttr
Handle for current scope zoom level index.
Definition vreScopeSimLogic.h:166
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:145
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:140
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:156
double myHmdSmoothingAlpha
Smoothing alpha parameter for HMD orientation smoothing.
Definition vreScopeSimLogic.h:152
DtAttributeHandleType< std::vector< double > > myScopeZoomLevelsAttr
Handle for available scope zoom levels.
Definition vreScopeSimLogic.h:160
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:148
double myMaxViewMagnification
Maximum allowed view magnification value.
Definition vreScopeSimLogic.h:134
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:38
constexpr const char * hmdSmoothingAlpha
Definition vreScopeSimLogic.h:35
constexpr const char * hmdSmoothingThreshold
Definition vreScopeSimLogic.h:41
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:27
!
Definition glsVreMessageUtil.h:50
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:47
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.