20class DtVirtualRealityDriver;
90 virtual void tick(
double dt)
override;
99 virtual const char*
type()
const override;
Provides handle classes for safe access to attributes.
Type-specific handle class for attributes.
Definition attributeHandle.h:229
double myMaxViewMagnification
Maximum allowed view magnification value.
Definition vreBinocularsSimLogic.h:126
virtual const char * type() const override
Returns the type identifier for this component.
virtual void onViewMagnificationChanged(double mag)
Callback for view magnification attribute changes.
DtAttributeHandleType< bool > myBlockBinocularsAttr
Handle for blocking binoculars mode.
Definition vreBinocularsSimLogic.h:153
virtual ~DtBinocularsSimLogic() override
Virtual destructor for DtBinocularsSimLogic.
bool myMrWasActive
Flag indicating if mixed reality was active before entering binoculars mode.
Definition vreBinocularsSimLogic.h:132
virtual void tick(double dt) override
Called every frame to update the component state.
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the binoculars simulation logic component.
DtAttributeHandleType< double > myViewMagnificationAttr
Handle for current binocular magnification.
Definition vreBinocularsSimLogic.h:150
double myHmdSmoothingAlpha
Smoothing alpha parameter for HMD orientation smoothing.
Definition vreBinocularsSimLogic.h:139
DtAttributeHandleType< double > myMaxViewMagnificationAttr
Handle for maximum binocular magnification.
Definition vreBinocularsSimLogic.h:147
bool myHmdSmoothingEnabled
Flag indicating if HMD orientation smoothing is enabled.
Definition vreBinocularsSimLogic.h:135
virtual bool postInitialize() override
Performs post-initialization after all components are initialized.
DtAttributeHandleType< bool > myVrEnabledAttr
Handle for VR enabled state.
Definition vreBinocularsSimLogic.h:156
virtual makVre::DtVreMessageResult handleZoomToEvent(makVre::DtVreMessage *msg)
Handles zoom-to messages for binoculars.
DtBinocularsSimLogic()
Constructor for DtBinocularsSimLogic.
virtual makVre::DtVreMessageResult handleZoomByEvent(makVre::DtVreMessage *msg)
Handles zoom-by messages for binoculars.
DtAttributeHandleType< bool > myUsingBinocularsAttr
Handle indicating whether binocular mode is active.
Definition vreBinocularsSimLogic.h:159
double myHmdSmoothingThreshold
Threshold parameter for HMD orientation smoothing in degrees per second.
Definition vreBinocularsSimLogic.h:143
virtual void shutdown() override
Shuts down the binoculars simulation logic component.
makVrv::DtVirtualRealityDriver * myVrDriver
Pointer to the VR driver if available.
Definition vreBinocularsSimLogic.h:129
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
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
constexpr const char * hmdSmoothingAlpha
Definition vreBinocularsSimLogic.h:34
constexpr const char * hmdSmoothingThreshold
Definition vreBinocularsSimLogic.h:40
constexpr const char * hmdSmoothingEnabled
Definition vreBinocularsSimLogic.h:37
constexpr const char * maxViewMagnification
Definition vreBinocularsSimLogic.h:43
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Definition vreBinocularsSimLogic.h:26
!
Definition glsVreMessageUtil.h:50
constexpr const char * DtBinocularsSimLogicType
Type identifier for DtBinocularsSimLogic component.
Definition vreBinocularsSimLogic.h:49
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Definition appLauncherComponent.h:28
Defines the DtPlayerComponent base class for VR-Engage role components.
Defines the base class for all VREngage messages.