24class DtChannelConfiguration;
27class DtChannelManager;
73 virtual void tick(
double dt)
override;
81 virtual const char*
type()
const override;
111 const std::string& oldChannelName,
const makVrv::DtChannelConfiguration& config);
Provides handle classes for safe access to attributes.
Type-specific handle class for attributes.
Definition attributeHandle.h:229
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the binoculars overlay component.
DtAttributeHandleType< bool > myAimingAttr
Handle for aiming state.
Definition vreBinocularsOverlay.h:149
virtual void slot_channelConfigurationModified(const std::string &deName, const std::string &winName, const std::string &oldChannelName, const makVrv::DtChannelConfiguration &config)
Slot called when a channel configuration is modified.
virtual void computeReticleDimensions()
Calculates the dimensions of the reticle based on current view settings.
virtual void tick(double dt) override
Called every frame to update the overlay state.
virtual bool postInitialize() override
Performs post-initialization after all components are initialized.
virtual const char * type() const override
Returns the type identifier for this component.
void setReticleHeight(float height)
Sets the height of the binoculars reticle.
DtAttributeHandleType< HumanPosture > myPostureAttr
Handle for current human posture.
Definition vreBinocularsOverlay.h:140
virtual void slot_channelDestroyed(makVrv::DtChannelManager *channelManager, makVrv::DtChannel *channel)
Slot called when a channel is about to be destroyed.
DtAttributeHandleType< LauncherState > myLauncherStateAttr
Handle for launcher state.
Definition vreBinocularsOverlay.h:146
DtAttributeHandleType< Equipment > myCurrentEquipmentAttr
Handle for currently selected equipment.
Definition vreBinocularsOverlay.h:143
virtual ~DtBinocularsOverlay() override
Virtual destructor for DtBinocularsOverlay.
float myReticleTotalMils
Total size of the reticle in mils.
Definition vreBinocularsOverlay.h:121
makVre::DtInitTable myConfig
Cached configuration table for accessing settings during runtime.
Definition vreBinocularsOverlay.h:130
makVrv::DtOsgChannel * myChannel
Pointer to the channel used for rendering.
Definition vreBinocularsOverlay.h:127
DtAttributeHandleType< ObserverAttachMode > myObserverAttachModeAttr
Handle for observer attach mode.
Definition vreBinocularsOverlay.h:137
DtAttributeHandleType< double > myHealthAttr
Handle for ownship health state.
Definition vreBinocularsOverlay.h:134
bool myUsePostEffect
Flag indicating whether post-processing effects should be used.
Definition vreBinocularsOverlay.h:124
virtual bool isOverlayVisible()
Determines if the overlay should be visible.
DtBinocularsOverlay(const std::string &className="DtBinocularsOverlay")
Constructor for DtBinocularsOverlay.
virtual void shutdown() override
Shuts down the binoculars overlay component.
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
DtQtQuickOverlay()
Constructor for DtQtQuickOverlay.
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 * DtBinocularsOverlayType
Type identifier for DtBinocularsOverlay component.
Definition vreBinocularsOverlay.h:33
Definition appLauncherComponent.h:28
Defines the DtPlayerComponent base class for VR-Engage role components.
Contains DtQtQuickOverlay class which provides a Qt Quick overlay component for rendering 2D UI over ...
Common enumeration definitions used throughout the VREngage system.