21class DtChannelConfiguration;
24class DtChannelManager;
70 virtual void tick(
double dt)
override;
78 virtual const char*
type()
const override;
114 const std::string& oldChannelName,
const makVrv::DtChannelConfiguration& config);
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the binoculars overlay component.
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.
virtual void slot_channelDestroyed(makVrv::DtChannelManager *channelManager, makVrv::DtChannel *channel)
Slot called when a channel is about to be destroyed.
virtual ~DtBinocularsOverlay() override
Virtual destructor for DtBinocularsOverlay.
float myReticleTotalMils
Total size of the reticle in mils.
Definition vreBinocularsOverlay.h:124
makVre::DtInitTable myConfig
Cached configuration table for accessing settings during runtime.
Definition vreBinocularsOverlay.h:133
void setVisible(bool visible)
Sets the visibility state of the overlay.
makVrv::DtOsgChannel * myChannel
Pointer to the channel used for rendering.
Definition vreBinocularsOverlay.h:130
bool myUsePostEffect
Flag indicating whether post-processing effects should be used.
Definition vreBinocularsOverlay.h:127
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
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtBinocularsOverlayType
Type identifier for DtBinocularsOverlay component.
Definition vreBinocularsOverlay.h:30
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 ...