21#include <makArchives/DtDisplayUnitsSettingsRecord.h>
68 virtual const char*
type()
const override;
80 virtual void tick(
double dt)
override;
145 const DtVector& geocentricIntersectionPoint,
double* targetElevation,
double* targetAzimuth);
Provides handle classes for safe access to attributes.
Type-specific handle class for attributes.
Definition attributeHandle.h:229
DtAttributeHandleType< std::string > myLasingTargetElevationMSLAttr
Handle for formatted lasing target MSL elevation text.
Definition vreBinocularsLasingOverlay.h:189
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:152
DtAttributeHandleType< std::string > myLasingSensorLocationAttr
Handle for formatted lasing sensor location text.
Definition vreBinocularsLasingOverlay.h:174
DtAttributeHandleType< bool > myHasLaserAttr
Handle indicating whether the observer currently has a laser.
Definition vreBinocularsLasingOverlay.h:210
DtAttributeHandleType< std::string > myLasingNorthReferenceAttr
Handle for the lasing north reference text.
Definition vreBinocularsLasingOverlay.h:180
DtAttributeHandleType< bool > myLaserOnAttr
Handle for laser active state.
Definition vreBinocularsLasingOverlay.h:204
DtAttributeHandleType< std::string > myLasingElrfStatusAttr
Handle for the ELRF status text.
Definition vreBinocularsLasingOverlay.h:183
virtual void tick(double dt) override
Called every frame to update the overlay state.
DtAttributeHandleType< std::string > myBinocularsTimeStringAttr
Handle for formatted binocular time text.
Definition vreBinocularsLasingOverlay.h:171
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:158
virtual void shutdown() override
Shuts down the binoculars lasing overlay component.
DtVector myLastLocalOwnshipPosition
Last known local ownship position for detecting changes.
Definition vreBinocularsLasingOverlay.h:164
makArchives::DtDisplayUnitsSettingsRecord::NorthUnits myLastNorthUnits
Last known north units setting for detecting changes.
Definition vreBinocularsLasingOverlay.h:161
DtAttributeHandleType< std::string > myLasingTargetLocationAttr
Handle for formatted lasing target location text.
Definition vreBinocularsLasingOverlay.h:186
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.
DtAttributeHandleType< std::string > myLasingSensorElevationAttr
Handle for formatted lasing sensor elevation text.
Definition vreBinocularsLasingOverlay.h:177
virtual bool isOverlayVisible() override
Determines if the overlay should be visible.
DtAttributeHandleType< std::string > myLasingTimeOfTargetLocationAttr
Handle for time-of-target-location text.
Definition vreBinocularsLasingOverlay.h:201
DtAttributeHandleType< std::string > myLasingTargetRangeAttr
Handle for formatted lasing target range text.
Definition vreBinocularsLasingOverlay.h:192
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:149
virtual bool postInitialize() override
Performs post-initialization after all components are initialized.
DtAttributeHandleType< DtVector > myObserverLocationAttr
Handle for observer location in geocentric coordinates.
Definition vreBinocularsLasingOverlay.h:207
virtual ~DtBinocularsLasingOverlay() override
Virtual destructor for DtBinocularsLasingOverlay.
virtual void updateNorthReference()
Updates the north reference attribute.
DtAttributeHandleType< std::string > myLasingTargetAzimuthAttr
Handle for formatted lasing target azimuth text.
Definition vreBinocularsLasingOverlay.h:198
DtAttributeHandleType< makVre::DtEntityResolver * > myEntityResolverAttr
Handle for the global entity resolver attribute.
Definition vreBinocularsLasingOverlay.h:213
double myTargetDataExpirationTime
Time when target data will expire.
Definition vreBinocularsLasingOverlay.h:155
DtVector myLastGeocentricIntersectionPoint
Last known geocentric position of laser intersection point.
Definition vreBinocularsLasingOverlay.h:167
DtAttributeHandleType< std::string > myLasingTargetElevationAttr
Handle for formatted lasing target elevation text.
Definition vreBinocularsLasingOverlay.h:195
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
!
Definition glsVreMessageUtil.h:50
constexpr const char * DtBinocularsLasingOverlayType
Type identifier for DtBinocularsLasingOverlay component.
Definition vreBinocularsLasingOverlay.h:33
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.