|
VR-Engage
2.2
|
The DtInstrumentPanelManager handles creation, modification, and deletion of extra channels, windows, or instrument panels used by various roles. For example:
#include <instrumentPanelManager.h>
Public Member Functions | |
| DtInstrumentPanelManager () | |
| virtual | ~DtInstrumentPanelManager () |
| virtual void | init (makVrv::DtDe *de, DtPlayerStationApp *app, DtEntityResolver *resolver, DtInitTable windowConfig) |
| virtual bool | onDisengage (const DtEntityIdentifier &id) |
| virtual DtPanelStruct * | getPanelStruct (const DtEntityIdentifier &id) const |
| virtual DtCameraStruct * | getCameraStruct (const DtPanelStruct *panelStruct, const std::string &name) const |
| virtual void | setObserverSensorMode (makVrv::DtObserver *observer, const std::string &modeName) |
| virtual void | slot_onPostTick () |
| virtual void | slot_channelToBeDestroyed (makVrv::DtChannelManager *mgr, makVrv::DtChannel *channel) |
| virtual void | slot_WindowToBeDestroyed (makVrv::DtWindow *window) |
| virtual DtVreMessageResult | handleEntityRemoved (DtVreMessage *msg) |
| virtual void | setAutoDisableHdrAutoExposure (bool value) |
| virtual void | addOverlaySectionCreator (const std::string &key, makVrv::DtOsgSensorViewOverlaySectionCreator *creator) |
Protected Types | |
| using | DtEntityPanelMap = std::map<DtEntityIdentifier, DtPanelStruct*> |
| using | DtStringOverlayCreatorMap = std::map<std::string, makVrv::DtOsgSensorViewOverlaySectionCreator*> |
Protected Attributes | |
| makVrv::DtDe * | myDe |
| DtPlayerStationApp * | myApp |
| DtEntityResolver * | myEntityResolver |
| std::string | myGimbalViewSensorMode |
| DtVector2DI | myGimbalPosition |
| DtVector2DI | myGimbalSize |
| int | myPlanViewResolution |
| DtVector2DI | myPlanViewPosition |
| DtVector2DI | myPlanViewSize |
| DtEntityPanelMap | myEntityPanelMap |
| std::string | myObserverModeSuffix |
| std::vector< WindowOperationMessage * > | myPendingFieldOfView |
| DtStringOverlayCreatorMap | myOverlayCreatorMap |
| bool | myAutoDisableHdrAutoExposure |
|
protected |
Map of entity identifiers to panel structures.
|
protected |
Map of overlay section keys to their creator objects.
Maps string keys to DtOsgSensorViewOverlaySectionCreators, allowing users to configure which overlay sections to use depending on their role or entity.
| makVre::DtInstrumentPanelManager::DtInstrumentPanelManager | ( | ) |
Default constructor.
Initializes member variables to default values. Full initialization occurs when the init method is called.
|
virtual |
Virtual destructor.
Cleans up any remaining panel structures and resources.
|
virtual |
Initializes the instrument panel manager.
Sets up message handlers, configures default settings for gimbal and plan views, and adds default overlay creators.
| de | Pointer to the rendering engine |
| app | Pointer to the player station application |
| resolver | Pointer to the entity resolver |
| windowConfig | Configuration table containing window settings |
References de().
|
virtual |
Handles entity disengagement.
Cleans up resources associated with an entity when it's disengaged.
| id | The identifier of the entity being disengaged |
|
virtual |
Retrieves the panel structure for a given entity.
| id | The entity identifier |
|
virtual |
Retrieves a camera structure by name from a panel structure.
| panelStruct | The panel structure containing the camera |
| name | The name of the camera to retrieve |
|
virtual |
Sets the sensor mode for an observer.
Attempts to set the sensor mode, and if the mode isn't found, tries appending the configurable mode suffix.
| observer | The observer to modify |
| modeName | The name of the sensor mode to set |
|
virtual |
Slot called on post-tick to check for pending field of view messages.
Processes pending stealth window creation messages when their required fields of view become available.
|
virtual |
Slot called when a channel is about to be destroyed.
Performs necessary cleanup for the channel and updates associated panel structures.
| mgr | The channel manager |
| channel | The channel being destroyed |
|
virtual |
Slot called when a window is about to be destroyed.
Performs necessary cleanup for the window and updates associated panel structures.
| window | The window being destroyed |
|
virtual |
Handles entity removal messages.
Cleans up resources associated with an entity when it's removed.
| msg | The entity removed message |
|
virtual |
Sets whether to automatically disable HDR auto exposure on certain views.
| value | true to automatically disable HDR auto exposure, false to leave it as is |
|
virtual |
Adds or replaces an overlay section creator.
Each key is mapped to a creator that can generate a specific overlay section type for sensor views. This allows for configurable overlay sections.
| key | The identifier for the overlay section type |
| creator | The creator object for generating the overlay section |
|
protectedvirtual |
Adds default overlay section creators.
Adds creators for the following keys:
|
protectedvirtual |
Handles window operation messages.
Routes messages to the appropriate handler based on the operation type.
| msg | The window operation message |
|
protectedvirtual |
Handles messages to set gimbal overlay sections.
| msg | The message containing overlay section information |
|
protectedvirtual |
Handles messages to restore gimbal overlay sections.
| msg | The message to restore overlay sections |
|
protectedvirtual |
Handles messages to reassign panel ownership.
| msg | The message containing reassignment information |
|
protectedvirtual |
Processes gimbal operations (create, destroy, modify)
Handles creation, destruction, and modification of gimbal views for Multi-function Displays (MFDs). Modification cycles through sensor modes.
| msg | The window operation message |
|
protectedvirtual |
Processes stealth operations.
| msg | The window operation message |
|
protectedvirtual |
Processes plan view operations.
| msg | The window operation message |
|
protectedvirtual |
Processes instrument panel operations.
| msg | The window operation message |
|
protectedvirtual |
Creates a gimbal view.
| msg | The window operation message with gimbal creation parameters |
|
protectedvirtual |
Destroys a gimbal view.
| msg | The window operation message identifying the gimbal to destroy |
|
protectedvirtual |
Creates a plan view.
| msg | The window operation message with plan view creation parameters |
|
protectedvirtual |
Destroys a plan view.
| msg | The window operation message identifying the plan view to destroy |
|
protectedvirtual |
Creates an instrument panel.
| msg | The window operation message with instrument panel creation parameters |
|
protectedvirtual |
Destroys an instrument panel.
| msg | The window operation message identifying the instrument panel to destroy |
|
protectedvirtual |
Creates a render-to-texture instrument panel.
| msg | The window operation message with RTT panel creation parameters |
|
protectedvirtual |
Destroys a render-to-texture instrument panel.
| msg | The window operation message identifying the RTT panel to destroy |
|
protectedvirtual |
Creates a stealth window.
| msg | The window operation message with stealth window creation parameters |
|
protectedvirtual |
Destroys a stealth window.
| msg | The window operation message identifying the stealth window to destroy | |
| [out] | destroyed | Set to true if the window was successfully destroyed; false otherwise |
|
protectedvirtual |
Destroys all stealth windows.
| msg | The window operation message |
|
protectedvirtual |
Handles minimap-related messages.
| msg | The minimap message |
|
protectedvirtual |
Handles messages to set gimbal sensor mode.
| msg | The message containing sensor mode information |
|
protectedvirtual |
Sets the current selection.
| id | The ID of the entity to select |
|
protectedvirtual |
Clears the current selection.
|
protectedvirtual |
Finds or creates a panel structure for a given message.
| msg | The window operation message |
|
protectedvirtual |
Finds or creates a camera structure.
| panelStruct | The panel structure to add the camera to |
| cameraType | The type of camera to create |
| name | The name of the camera |
|
protectedvirtual |
Slot called when an observer is created.
Sets the observer name and sensor mode in the camera.
| inputDriver | The input driver |
| observer | The observer that was created |
| cameraStruct | The camera structure to update |
|
protected |
Pointer to the rendering engine.
|
protected |
Pointer to the player station application.
|
protected |
Pointer to the entity resolver.
|
protected |
Current sensor mode for gimbal views.
|
protected |
Default position for gimbal views.
|
protected |
Default size for gimbal views.
|
protected |
Resolution for plan views.
|
protected |
Default position for plan views.
|
protected |
Default size for plan views.
|
protected |
Map storing all entity-panel associations.
|
protected |
Suffix to append when searching for observer modes.
If a requested observer mode can't be found, append either " (CameraFX)" or " (SensorFX)" and search again.
|
protected |
Storage for pending field of view messages.
Stores copies of messages when the required field of view does not exist yet.
|
protected |
Map storing all overlay section creators.
|
protected |
Flag to control HDR auto exposure behavior.
When true, HDR auto exposure will be automatically disabled for certain types of views.