19#include <makArchives/DtDisplayUnitsSettingsRecord.h>
66 virtual const char*
type()
const override;
78 virtual void tick(
double dt)
override;
143 const DtVector& geocentricIntersectionPoint,
double* targetElevation,
double* targetAzimuth);
Handle class for safe access to attributes.
Definition attributeHandle.h:30
virtual void updateSensorData()
Updates sensor location and elevation attributes.
virtual void updateTimeOfTargetLocation()
Updates the time of target location attribute.
double myTimeLastObserverToTargetDistanceCalculated
Time when observer-to-target distance was last calculated.
Definition vreBinocularsLasingOverlay.h:150
virtual void tick(double dt) override
Called every frame to update the overlay state.
virtual makVre::DtVreMessageResult handleStopLasingMessage(makVre::DtVreMessage *msg)
Handles stop lasing messages.
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the binoculars lasing overlay component.
DtBinocularsLasingOverlay()
Constructor for DtBinocularsLasingOverlay.
virtual std::string timeString()
Generates a formatted time string for the current time.
makVrv::DtIntersector * myIntersector
Intersector for performing raycasting to determine target position.
Definition vreBinocularsLasingOverlay.h:156
virtual void shutdown() override
Shuts down the binoculars lasing overlay component.
DtVector myLastLocalOwnshipPosition
Last known local ownship position for detecting changes.
Definition vreBinocularsLasingOverlay.h:162
makArchives::DtDisplayUnitsSettingsRecord::NorthUnits myLastNorthUnits
Last known north units setting for detecting changes.
Definition vreBinocularsLasingOverlay.h:159
virtual const char * type() const override
Returns the type identifier for this component.
virtual void updateTargetData()
Updates all target-related attributes based on current lasing state.
virtual void clearTargetData()
Sets all target data attributes to null or default values.
virtual bool isOverlayVisible() override
Determines if the overlay should be visible.
virtual void calculateElevationAndAzimuthToTarget(const DtVector &geocentricObserverLocation, const DtVector &geocentricIntersectionPoint, double *targetElevation, double *targetAzimuth)
Calculates elevation and azimuth from observer to target.
double myCurrentTime
Current simulation time in seconds.
Definition vreBinocularsLasingOverlay.h:147
virtual bool postInitialize() override
Performs post-initialization after all components are initialized.
virtual ~DtBinocularsLasingOverlay() override
Virtual destructor for DtBinocularsLasingOverlay.
virtual void updateNorthReference()
Updates the north reference attribute.
DtAttributeHandle myLasingHandle
Definition vreBinocularsLasingOverlay.h:167
double myTargetDataExpirationTime
Time when target data will expire.
Definition vreBinocularsLasingOverlay.h:153
DtVector myLastGeocentricIntersectionPoint
Last known geocentric position of laser intersection point.
Definition vreBinocularsLasingOverlay.h:165
DtBinocularsOverlay(const std::string &className="DtBinocularsOverlay")
Constructor for DtBinocularsOverlay.
Table-based access to Lua state for configuration data.
Definition initializer.h:38
virtual DtPlayerStation & player()
Gets the player station.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtBinocularsLasingOverlayType
Type identifier for DtBinocularsLasingOverlay component.
Definition vreBinocularsLasingOverlay.h:31
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.
Component for displaying binoculars reticle overlay.
Defines the base class for all VREngage messages.