20#include <vrvCore/DtUniqueID.h>
88 virtual void tick(
double dt)
override;
97 virtual const char*
type()
const override;
Type-specific handle class for attributes.
Definition attributeHandle.h:229
Table-based access to Lua state for configuration data.
Definition initializer.h:38
DtAttributeHandleType< bool > myLaserOnAttr
Attribute handle indicating whether the laser designator is currently lasing.
Definition laserTargetDesignatorSimLogic.h:212
void appendLaserDesignatorElements(std::vector< makVrv::DtElementID > &ignoreList) const
Appends all laser designator element IDs to a raycast ignore list.
virtual void stopLasingLocation()
Stops the laser target designator.
virtual const char * type() const override
Returns the type identifier for this component.
std::string myInputConfigFile
Path to the input configuration file.
Definition laserTargetDesignatorSimLogic.h:186
makVrv::DtObserver * myObserver
Pointer to the observer used for ray casting and sensor mode control.
Definition laserTargetDesignatorSimLogic.h:183
virtual void toggleLasingState()
Toggles the laser target designator on or off.
virtual void shutdown() override
Shuts down the laser target designator component.
DtLaserTargetDesignatorSimLogic()
Constructor for DtLaserTargetDesignatorSimLogic.
DtAttributeHandleType< bool > myIRSensorOnAttr
Attribute handle indicating whether the IR sensor is currently active.
Definition laserTargetDesignatorSimLogic.h:220
virtual void tick(double dt) override
Called every frame to update the laser designator.
std::string myCachedSensorMode
Original sensor mode to restore on shutdown.
Definition laserTargetDesignatorSimLogic.h:195
std::string myVisualSensorMode
Name of the visual sensor mode in VR-Vantage.
Definition laserTargetDesignatorSimLogic.h:192
virtual void handlePressAndHoldToLase(float value)
Input handler function for press-and-hold lasing action.
bool myDisableVrHeadPose
Flag controlling whether VR head pose is disabled during lasing.
Definition laserTargetDesignatorSimLogic.h:204
void updatePoseInformation()
Updates pose information for VR head tracking.
virtual void toggleIRSensor()
Toggles between IR and visual sensor modes.
bool myLaserStarted
Flag indicating if the laser has been started.
Definition laserTargetDesignatorSimLogic.h:198
DtAttributeHandleType< int > myLaserCodeAttr
Attribute handle storing the laser code used for target designation.
Definition laserTargetDesignatorSimLogic.h:208
virtual DtVreMessageResult handleMenuMessage(makVre::DtVreMessage *msg)
Handles menu action messages for the laser designator.
std::string myIRSensorMode
Name of the IR sensor mode in VR-Vantage.
Definition laserTargetDesignatorSimLogic.h:189
virtual void startLasingLocation()
Starts the laser target designator at the current aim point.
DtInputLogic myInputLogic
Input logic that handles mapping of input actions to functions.
Definition laserTargetDesignatorSimLogic.h:180
DtAttributeHandleType< std::string > myLaserStateAttr
Attribute handle storing the laser state string ("ON" or "OFF").
Definition laserTargetDesignatorSimLogic.h:216
virtual bool isLasingOn() const
Checks if the laser is currently active.
virtual void updateLasingLocation()
Updates the current laser target location.
virtual ~DtLaserTargetDesignatorSimLogic() override
Virtual destructor for DtLaserTargetDesignatorSimLogic.
virtual bool initialize(DtPlayerStation *player, DtInitTable &config) override
Initializes the laser target designator component.
void handleLaserOnChange(bool on)
Handles changes to the laserOn attribute.
virtual void handleToggleLaser(float value)
Input handler function for toggle laser action.
DtAttributeHandleType< bool > myVrEnabledAttr
Attribute handle indicating whether VR mode is enabled for the player.
Definition laserTargetDesignatorSimLogic.h:224
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 * disableVrHeadPose
Definition laserTargetDesignatorSimLogic.h:42
constexpr const char * inputConfigFile
Definition laserTargetDesignatorSimLogic.h:45
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Provides configuration initialization for VREngage components.
Definition laserTargetDesignatorSimLogic.h:34
!
Definition glsVreMessageUtil.h:50
constexpr const char * DtLaserTargetDesignatorSimLogicType
Type identifier for DtLaserTargetDesignatorSimLogic component.
Definition laserTargetDesignatorSimLogic.h:53
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.