84 virtual void tick(
double dt)
override;
93 virtual const char*
type()
const override;
Table-based access to Lua state for configuration data.
Definition initializer.h:38
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:172
makVrv::DtObserver * myObserver
Pointer to the observer used for ray casting and sensor mode control.
Definition laserTargetDesignatorSimLogic.h:169
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.
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:181
std::string myVisualSensorMode
Name of the visual sensor mode in VR-Vantage.
Definition laserTargetDesignatorSimLogic.h:178
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:190
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:184
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:175
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:166
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.
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:38
constexpr const char * inputConfigFile
Definition laserTargetDesignatorSimLogic.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
Provides configuration initialization for VREngage components.
Definition laserTargetDesignatorSimLogic.h:30
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtLaserTargetDesignatorSimLogicType
Type identifier for DtLaserTargetDesignatorSimLogic component.
Definition laserTargetDesignatorSimLogic.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.