22class DtWindowConfiguration;
71 virtual void tick(
double dt)
override;
81 virtual const char*
type()
const override;
157 const std::string& deName,
const std::string& windowName,
const makVrv::DtWindowConfiguration& windowConfig);
214 const ViewMode& mode,
double& left,
double& right,
double& bottom,
double& top);
247 makVrv::DtCameraNode* node,
unsigned int newMode,
unsigned int currentExpected,
bool setIfUnexpected =
true);
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:277
double myFrameWidth
Width of the frame around the minimap in pixels.
Definition minimapUpdater.h:262
virtual void handleMapOverlayResized()
Handles resizing of the map overlay.
double myMapHeight
Height of the map in screen coordinates.
Definition minimapUpdater.h:289
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.
makVrv::DtOsgChannel * myMinimapChannel
Pointer to the OSG channel used for the minimap.
Definition minimapUpdater.h:283
double myOwnshipDotSize
Size of the ownship dot indicator as a fraction of map height.
Definition minimapUpdater.h:301
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:253
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:268
double myReferenceHeight
Reference height for sizing ownship indicators.
Definition minimapUpdater.h:292
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:316
float myInitialIconScale
Initial icon scale value to restore on shutdown.
Definition minimapUpdater.h:319
DtColor myOwnshipDotColor
Color of the ownship dot indicator.
Definition minimapUpdater.h:307
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:286
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:280
unsigned int myNormalizedOverlayNodeMask
Cached node mask for the normalized overlay camera.
Definition minimapUpdater.h:331
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:256
std::string myOwnshipDotTextureFilename
Filename of the texture for the ownship dot indicator.
Definition minimapUpdater.h:295
virtual void shutdown() override
Shuts down the minimap updater component.
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:328
bool myIsMinimapVisible
Flag indicating if the minimap is currently visible.
Definition minimapUpdater.h:274
unsigned int mySceneNodeMask
Cached node mask for the scene camera.
Definition minimapUpdater.h:322
virtual void showMinimap()
Shows the minimap by enabling rendering.
DtVrvOverlay * myMapOverlay
Overlay for displaying ownship indicators on the minimap.
Definition minimapUpdater.h:310
unsigned int myRttNodeMask
Cached node mask for the RTT camera.
Definition minimapUpdater.h:325
std::string myMinimapChannelName
Name of the minimap channel.
Definition minimapUpdater.h:265
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:304
virtual void unregisterHandlers()
Unregisters message handlers.
std::vector< ViewMode > myModes
Collection of available minimap view modes.
Definition minimapUpdater.h:250
DtColor myFrameColor
Color of the frame around the minimap.
Definition minimapUpdater.h:259
makVrv::DtQuadProxy * myOwnshipDotQuadProxy
Quad proxy for the ownship dot indicator.
Definition minimapUpdater.h:313
virtual ~DtMinimapUpdater() override
Virtual destructor for DtMinimapUpdater.
std::string myOwnshipCompassTextureFilename
Filename of the texture for the ownship compass indicator.
Definition minimapUpdater.h:298
std::string myEventProcessorTargetChannel
Name of the channel that will receive events from the minimap.
Definition minimapUpdater.h:271
DtOverlayComponent()
Constructor for DtOverlayComponent.
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
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
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtMinimapUpdaterType
Type identifier for DtMinimapUpdater component.
Definition minimapUpdater.h:32
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.
Structure defining a minimap view mode configuration.
Definition minimapUpdater.h:99
double left
Left edge position (0.0-1.0 in normalized screen coordinates)
Definition minimapUpdater.h:104
double right
Right edge position (0.0-1.0 in normalized screen coordinates)
Definition minimapUpdater.h:107
std::string name
Name of the view mode for identification.
Definition minimapUpdater.h:101
double bottom
Bottom edge position (0.0-1.0 in normalized screen coordinates)
Definition minimapUpdater.h:110
bool square
Flag indicating if the minimap should maintain a square aspect ratio.
Definition minimapUpdater.h:116
double top
Top edge position (0.0-1.0 in normalized screen coordinates)
Definition minimapUpdater.h:113
bool visible
Flag indicating if this view mode is visible or off-screen.
Definition minimapUpdater.h:119
Defines the base class for all VREngage messages.