![]() |
VR-Forces Developer's Guide
|
DtMapInformationOverlayInstance is responsible for creating and updating an information overlay in a Plan View. The overlay has a set of informational sections that it can visualize. Informational sections can be removed from the main information overlay and custom informational sections can be added. The informational sections that the information overlay has depends on what is passed to its constructor by DtMapInformationOverlayInstanceCreator.
Toolkit users can make use of DtMapInformationOverlayInstanceCreator to customize which informational sections are visible in a map information overlay.

Public Types | |
| typedef std::map < DtObserverSettingsManager::ObserverSetting, DtMapInformationSectionOverlayCreator * > | DtMapInformationOverlayInstanceSectionCreators |
| typedef std::map < DtObserverSettingsManager::ObserverSetting, DtMapInformationSectionOverlay * > | DtMapInformationOverlayInstanceSections |
Public Member Functions | |
| virtual | ~DtMapInformationOverlayInstance () |
| DtMapInformationOverlayInstance ()=delete | |
| DtMapInformationOverlayInstance (const DtMapInformationOverlayInstance &other)=delete | |
| DtMapInformationOverlayInstance & | operator= (const DtMapInformationOverlayInstance &other)=delete |
| virtual void | setChannelName (const std::string &deName, const std::string &winName, const std::string &channelName) |
| virtual void | setModelDefinition (const std::string &modelDefinitionName) |
| virtual bool | isVisible () |
| virtual void | destroyVisuals () |
| virtual void | createVisuals () |
| virtual void | createSectionVisuals (DtObserverSettingsManager::ObserverSetting setting) |
| virtual void | destroySectionVisuals (DtObserverSettingsManager::ObserverSetting setting) |
| virtual void | setSectionVisible (DtObserverSettingsManager::ObserverSetting setting, bool isVisible) |
| virtual void | setOverlayGroup (int group) |
| virtual int | overlayGroup () const |
| virtual void | setBackgroundColor (float r, float g, float b, float a) |
| virtual bool | getBackgroundColor (float &r, float &g, float &b, float &a) const |
| virtual void | setFontColor (float r, float g, float b, float a) |
| virtual bool | getFontColor (float &r, float &g, float &b, float &a) const |
| virtual void | setFontFile (const std::string &fontFile) |
| virtual std::string | fontFile () const |
| virtual void | setFontPointSize (int pointSize) |
| virtual int | fontPointSize () const |
Protected Member Functions | |
| virtual void | slot_sectionOverlayDimensionsChanged () |
| virtual void | update () |
| virtual void | updateGeometries () |
| virtual void | synchronizeWindowAndChannelDimensions () |
| virtual void | setPixelRatio (float pixelRatio) |
| virtual void | destroyBackground () |
| virtual void | createBackground () |
| DtMapInformationOverlayInstance (DtDe &de, DtMapInformationOverlayInstanceSectionCreators creators) | |
| virtual void | slot_channelCreated (DtChannelManager *, DtChannel *) |
| virtual void | slot_channelToBeDestroyed (DtChannelManager *, DtChannel *) |
| virtual void | slot_channelConfigurationModified (const std::string &deName, const std::string &winName, const std::string &oldChannelName, const DtChannelConfiguration &config) |
| virtual void | slot_windowConfigurationModified (const std::string &deName, const std::string &winName, const DtWindowConfiguration &config) |
Friends | |
| class | DtMapInformationOverlayInstanceCreator |
| typedef std::map<DtObserverSettingsManager::ObserverSetting, DtMapInformationSectionOverlayCreator*> makVrv::DtMapInformationOverlayInstance::DtMapInformationOverlayInstanceSectionCreators |
| typedef std::map<DtObserverSettingsManager::ObserverSetting, DtMapInformationSectionOverlay*> makVrv::DtMapInformationOverlayInstance::DtMapInformationOverlayInstanceSections |
|
virtual |
DTOR.
|
delete |
not allowed
|
delete |
not allowed
|
protected |
Constructor needs the DtDe to use. Protected because this is only called by the DtMapInformationOverlayInstanceCreator.
|
delete |
not allowed
|
virtual |
Set the channel the overlay will be visualized on.
|
virtual |
Set the model definition the map information overlay will use when creating visuals. Model definitions are expected to follow the MapInformationOverlay schema. Visuals need to be destroyed and re-created before the values provided by the model definition, associated with the passed in name, will be used. If a model definition with the provided name does not exist, this function does nothing.
Reimplemented in makVrf::DtMapStatusTextInstance.
|
virtual |
Get whether or not the overlay is visible.
|
virtual |
Destroy any visuals created for the overlay - also destroys visuals for all of the overlay's informational sections.
|
virtual |
Create any visuals needed for the overlay - also creates visuals for all of the overlay's informational sections.
|
virtual |
Create the visuals for an informational section of the overlay using its observer setting enumerated values. This function does nothing if the informational section is already created.
Reimplemented in makVrf::DtMapStatusTextInstance.
|
virtual |
Destroy the visuals for an informational section of the overlay using its observer setting enumerated values. This function does nothing if the informational section has not been created.
|
virtual |
Set whether or not a particular informational section is visible using its corresponding observer visual type enumerated value If a section is not visible, its visuals are destroyed and its resources are cleaned up. If the section is visible, ensure its visuals have been created. The overlay must have a creator for the informational section that corresponds to the passed in observer setting in order to ensure its visuals are created.
|
virtual |
Set the group this overlay will be drawn in The higher the group number, the "closer" to the eyepoint this overlay will be drawn. Use this function to stack overlay objects in the particular order you want them displayed.
|
virtual |
Get the group this overlay will be drawn in The higher the group number, the "closer" to the eyepoint this overlay will be drawn. Use this function to stack overlay objects in the particular order you want them displayed.
|
virtual |
Set the background color of the overlay.
|
virtual |
Get the background color of the overlay.
|
virtual |
Set the font color to use for text on the overlay and all of its informational sections.
|
virtual |
Get the font color to use for text on the overlay and all of its informational sections.
|
virtual |
Set the font file to use for text on the overlay and all of its informational sections.
|
virtual |
Get the font file to use for text on the overlay and all of its informational sections.
|
virtual |
Set the font point size to use for text on the overlay and all of its informational sections.
|
virtual |
Get the font point size to use for text on the overlay and all of its informational sections.
|
protectedvirtual |
Slots for responding to channel-related signals.
Slot executed when the channel manager signaler signals a channel has been created. This function checks if the created channel is the same channel this overlay is rendered on and ensures the internal channel is properly set if so.
|
protectedvirtual |
Slot executed when the channel manager signaler signals a channel is going to be destroyed. This function destroys the overlay and its informational sections - cleaning up resources.
|
protectedvirtual |
If the channel for this overlay has changed, ensure the overlay gets updated as its geometry may have changed.
|
protectedvirtual |
If the window for this overlay has changed, ensure the overlay gets updated as its geometry may have changed.
|
protectedvirtual |
Called when an information section's geometry has changed meaning we should update the geometry of the overlay and other informational sections.
|
protectedvirtual |
Updates the overlay - called every frame.
|
protectedvirtual |
Update the geometry of the overlay and its informational sections. This function does nothing if myGeometryDirty is false.
Reimplemented in makVrf::DtMapStatusTextInstance.
|
protectedvirtual |
Check if window/channel dimensions have changed and ensure the geometry of the overlay gets updated if it has.
|
protectedvirtual |
Sets the pixel density ratio to scale the overlay on high dpi screens.
|
protectedvirtual |
Destroy the background visual created for the overlay. This function does nothing if the background has not been visualized.
|
protectedvirtual |
Create the background visual created for the overlay. This function does nothing if the background has already been visualized.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
margin in pixels
|
protected |
|
protected |
|
protected |
|
protected |
space between rows in pixels
|
protected |
The list of overlay section creators to be used when creating a new sensor view overlay.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |