23class DtWindowConfiguration;
73 virtual void tick(
double dt)
override;
83 virtual const char*
type()
const override;
178 const std::string& deName,
const std::string& windowName,
const makVrv::DtWindowConfiguration& windowConfig);
235 const ViewMode& mode,
double& left,
double& right,
double& bottom,
double& top);
268 makVrv::DtCameraNode* node,
unsigned int newMode,
unsigned int currentExpected,
bool setIfUnexpected =
true);
Handle class for safe access to attributes.
Definition attributeHandle.h:30
Type-specific handle class for attributes.
Definition attributeHandle.h:229
Class for representing and manipulating RGBA colors.
Definition color.h:22
Table-based access to Lua state for configuration data.
Definition initializer.h:38
virtual void destroyMinimap()
Destroys the minimap channel.
bool myDisableMinimap
Flag indicating if the minimap is disabled.
Definition minimapUpdater.h:301
double myFrameWidth
Width of the frame around the minimap in pixels.
Definition minimapUpdater.h:283
virtual void handleMapOverlayResized()
Handles resizing of the map overlay.
double myMapHeight
Height of the map in screen coordinates.
Definition minimapUpdater.h:313
virtual void getViewModeScreenCoordinates(const ViewMode &mode, double &left, double &right, double &bottom, double &top)
Calculates screen coordinates for a minimap view mode.
virtual void cycleMinimapMode()
Switches to the next minimap view mode.
virtual void registerHandlers()
Registers message handlers for minimap-related messages.
virtual void handleAimingOrEquipmentChanged(const DtAttributeHandle &attribute)
Handles changes to shoulder-launcher aim state.
makVrv::DtOsgChannel * myMinimapChannel
Pointer to the OSG channel used for the minimap.
Definition minimapUpdater.h:307
double myOwnshipDotSize
Size of the ownship dot indicator as a fraction of map height.
Definition minimapUpdater.h:325
virtual void updateMinimapVisibility()
Updates the minimap visibility based on current state.
virtual const char * type() const override
Returns the type identifier for this component.
virtual void hideMinimap()
Hides the minimap by disabling rendering.
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the minimap updater component.
unsigned int myCurrentMode
Index of the currently active view mode.
Definition minimapUpdater.h:274
virtual DtVreMessageResult handleMinimapMessage(DtVreMessage *msg)
Handles minimap-specific messages.
virtual void handleUsingBinocularsChanged(bool usingBinoculars)
Handles changes to the usingBinoculars attribute.
virtual void addChannelEventProcessorAssociation()
Adds channel event processor association.
std::string myWindowName
Name of the window containing the minimap.
Definition minimapUpdater.h:289
double myReferenceHeight
Reference height for sizing ownship indicators.
Definition minimapUpdater.h:316
virtual void setNodeMask(makVrv::DtCameraNode *node, unsigned int newMode, unsigned int currentExpected, bool setIfUnexpected=true)
Sets the node mask on a camera node.
makVrv::DtQuadProxy * myOwnshipCompassQuadProxy
Quad proxy for the ownship compass indicator.
Definition minimapUpdater.h:340
DtColor myOwnshipDotColor
Color of the ownship dot indicator.
Definition minimapUpdater.h:331
bool myMinimapSuppressed
Flag indicating that binoculars or an active launcher are hiding the minimap.
Definition minimapUpdater.h:298
virtual void tick(double dt) override
Called every frame to update the minimap.
double myMapWidth
Width of the map in screen coordinates.
Definition minimapUpdater.h:310
virtual void createMinimap(const ViewMode &mode)
Creates the minimap channel using the specified view mode.
DtMinimapUpdater()
Constructor for DtMinimapUpdater.
virtual void slot_onWindowConfigurationChanged(const std::string &deName, const std::string &windowName, const makVrv::DtWindowConfiguration &windowConfig)
Callback for window configuration change events.
virtual bool postInitialize() override
Performs post-initialization tasks after all components are initialized.
bool myInitializeMinimapOnEngage
Flag indicating if the minimap should be created at engagement.
Definition minimapUpdater.h:304
unsigned int myNormalizedOverlayNodeMask
Cached node mask for the normalized overlay camera.
Definition minimapUpdater.h:355
virtual void updateMinimapSuppression()
Updates minimap visibility for binocular or launcher use.
virtual DtVreMessageResult handleWindowCreated(DtVreMessage *msg)
Handles window creation messages.
virtual void buildElements(DtInitTable &elements) override
Builds frame elements around the minimap.
int myInitialMapScale
Initial map scale to restore on shutdown.
Definition minimapUpdater.h:277
DtAttributeHandleType< makVrv::DtChannel * > myMinimapChannelAttr
Attribute handle providing access to the main VR-Vantage channel from the application attribute store...
Definition minimapUpdater.h:359
std::string myOwnshipDotTextureFilename
Filename of the texture for the ownship dot indicator.
Definition minimapUpdater.h:319
virtual void shutdown() override
Shuts down the minimap updater component.
DtSettingsOverrideGuard mySettingsOverrideGuard
Tracks the temporary entity icon scale override.
Definition minimapUpdater.h:343
virtual void modifyMinimap(const ViewMode &mode)
Modifies an existing minimap channel using the specified view mode.
virtual void removeChannelEventProcessorAssociation()
Removes channel event processor association.
virtual void createOverlay()
Creates the overlay for displaying ownship indicators.
unsigned int myOverlayNodeMask
Cached node mask for the overlay camera.
Definition minimapUpdater.h:352
bool myIsMinimapVisible
Flag indicating if the minimap is currently visible.
Definition minimapUpdater.h:295
unsigned int mySceneNodeMask
Cached node mask for the scene camera.
Definition minimapUpdater.h:346
virtual void showMinimap()
Shows the minimap by enabling rendering.
DtVrvOverlay * myMapOverlay
Overlay for displaying ownship indicators on the minimap.
Definition minimapUpdater.h:334
virtual void handleLauncherElementIdChanged(const DtAttributeHandle &launcherElementId)
Handles changes to the external launcher state.
unsigned int myRttNodeMask
Cached node mask for the RTT camera.
Definition minimapUpdater.h:349
std::string myMinimapChannelName
Name of the minimap channel.
Definition minimapUpdater.h:286
virtual DtVreMessageResult handleWindowDestroyed(DtVreMessage *msg)
Handles window destruction messages.
double myOwnshipCompassSize
Size of the ownship compass indicator as a fraction of map height.
Definition minimapUpdater.h:328
virtual void unregisterHandlers()
Unregisters message handlers.
std::vector< ViewMode > myModes
Collection of available minimap view modes.
Definition minimapUpdater.h:271
DtColor myFrameColor
Color of the frame around the minimap.
Definition minimapUpdater.h:280
makVrv::DtQuadProxy * myOwnshipDotQuadProxy
Quad proxy for the ownship dot indicator.
Definition minimapUpdater.h:337
virtual ~DtMinimapUpdater() override
Virtual destructor for DtMinimapUpdater.
std::string myOwnshipCompassTextureFilename
Filename of the texture for the ownship compass indicator.
Definition minimapUpdater.h:322
std::string myEventProcessorTargetChannel
Name of the channel that will receive events from the minimap.
Definition minimapUpdater.h:292
DtOverlayComponent()
Constructor for DtOverlayComponent.
virtual DtPlayerStation & player()
Gets the player station.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Tracks temporary settings overrides and conditionally restores them.
Definition settingsOverrideGuard.h:180
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Class for creating and managing 2D overlays on a 3D scene.
Definition vrvOverlay.h:79
Provides color representation and manipulation functionality.
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 * DtMinimapUpdaterType
Type identifier for DtMinimapUpdater component.
Definition minimapUpdater.h:33
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Definition appLauncherComponent.h:28
Component for creating and managing HUD elements in overlay channels.
Defines a guard for temporary, non-persistent settings overrides.
Structure defining a minimap view mode configuration.
Definition minimapUpdater.h:120
double left
Left edge position (0.0-1.0 in normalized screen coordinates)
Definition minimapUpdater.h:125
double right
Right edge position (0.0-1.0 in normalized screen coordinates)
Definition minimapUpdater.h:128
std::string name
Name of the view mode for identification.
Definition minimapUpdater.h:122
double bottom
Bottom edge position (0.0-1.0 in normalized screen coordinates)
Definition minimapUpdater.h:131
bool square
Flag indicating if the minimap should maintain a square aspect ratio.
Definition minimapUpdater.h:137
double top
Top edge position (0.0-1.0 in normalized screen coordinates)
Definition minimapUpdater.h:134
bool visible
Flag indicating if this view mode is visible or off-screen.
Definition minimapUpdater.h:140
Defines the base class for all VREngage messages.