![]() |
VR-Forces 5.0.2 Developer's Guide
|
DtMapInformationSectionOverlay is an abstract base class that contains functionality common to all informational sections in the map information overlay, DtMapInformationOverlay. The map information overlay is responsible for creating/destroying the sections, when their observer visual type settings change, and calling their update functions every frame.

Public Member Functions | |
| virtual | ~DtMapInformationSectionOverlay () |
| virtual void | setChannelOverlay (const std::string &displayName, const std::string &windowName, const std::string &channelName) |
| virtual void | setChannel (DtChannel *channel) |
| virtual void | setGroup (unsigned int group) |
| virtual void | setPixelRatio (float pixelRatio) |
| virtual void | createVisuals () |
| virtual void | destroyVisuals () |
| virtual bool | isVisualized () const =0 |
| virtual void | update () |
| virtual bool | getSize (int &width, int &height)=0 |
| virtual void | setGeometry (double left, double bottom, double width, double height) |
| virtual void | setFont (const std::string &fontFile, float sizeInPoints) |
| virtual void | setFontColor (float r, float g, float b, float a) |
| virtual void | setAreBoundsVisualized (bool areBoundsVisualized) |
| virtual bool | areBoundsVisualized () const |
Public Attributes | |
| boost::signalslib::signal< void()> | signal_sectionOverlayDimensionsChanged |
Protected Member Functions | |
| DtMapInformationSectionOverlay (DtDe &de) | |
| virtual bool | getChannelDimensionsInPixels (int &widthPixels, int &heightPixels) const |
| virtual bool | getParentOverlayCenter (double &normalizedX, double &normalizedY) const |
Protected Attributes | |
| DtDe & | myDe |
| std::string | myDisplayName |
| std::string | myWindowName |
| std::string | myChannelName |
| DtChannel * | myChannel |
| bool | myVisualizeBoundsEnabled |
| DtWindowPolygon * | myBoundsQuad |
| DtSignalConnectionManager | myPixelRatioConnection |
| float | myPixelRatio |
| unsigned int | myGroup |
| double | myLeft |
| double | myBottom |
| double | myRight |
| double | myTop |
| std::string | myFontFile |
| float | myFontColor [4] |
| int | myFontPointSize |
Friends | |
| class | DtMapInformationSectionOverlayCreator |
|
virtual |
DTOR.
|
protected |
Constructor needs the DtDe to use. Protected because this is only called by the DtMapInformationSectionOverlayCreator.
|
virtual |
Set the channel this section overlay will be rendered on. This function can override setChannel. Do not use if the provided channel is not fully realized yet - use setChannel(DtChannel*) instead.
|
virtual |
Set the channel this section overlay will be rendered on. This function can override setChannelOverlay and is useful if a channel isn't fully realized yet.
Set the group this section overlay will be rendered in. The higher the group number the "closer" the element will be drawn to the eye point.
|
virtual |
Sets the pixel density ratio to scale grid lines on high dpi screens.
Reimplemented in makVrv::DtMapScaleSectionOverlay.
|
virtual |
Create the visuals for this section overlay. This class's function implementation only does something if setAreBoundsVisualized.
Reimplemented in makVrv::DtMapMouseCursorPositionFromBullseyeSectionOverlay, makVrv::DtMapMouseCursorToWorldPositionSectionOverlay, and makVrv::DtMapScaleSectionOverlay.
|
virtual |
Destroy the visuals for this section overlay. This class's function implementation only does something if setAreBoundsVisualized.
Reimplemented in makVrv::DtMapMouseCursorPositionFromBullseyeSectionOverlay, makVrv::DtMapMouseCursorToWorldPositionSectionOverlay, and makVrv::DtMapScaleSectionOverlay.
|
pure virtual |
Return whether or not the section overlay has been visualized.
Implemented in makVrv::DtMapMouseCursorPositionFromBullseyeSectionOverlay, makVrv::DtMapMouseCursorToWorldPositionSectionOverlay, and makVrv::DtMapScaleSectionOverlay.
|
virtual |
Updates the section overlay - called every frame.
Reimplemented in makVrv::DtMapMouseCursorPositionFromBullseyeSectionOverlay, makVrv::DtMapMouseCursorToWorldPositionSectionOverlay, and makVrv::DtMapScaleSectionOverlay.
|
pure virtual |
Get the size needed for this section overlay.
Implemented in makVrv::DtMapMouseCursorPositionFromBullseyeSectionOverlay, makVrv::DtMapMouseCursorToWorldPositionSectionOverlay, and makVrv::DtMapScaleSectionOverlay.
|
virtual |
Set the geometry of this section overlay in normalized screen space [0-1].
Reimplemented in makVrv::DtMapMouseCursorPositionFromBullseyeSectionOverlay, makVrv::DtMapMouseCursorToWorldPositionSectionOverlay, and makVrv::DtMapScaleSectionOverlay.
|
virtual |
Set the font file and size in points to display the text in.
Reimplemented in makVrv::DtMapMouseCursorPositionFromBullseyeSectionOverlay, makVrv::DtMapMouseCursorToWorldPositionSectionOverlay, and makVrv::DtMapScaleSectionOverlay.
|
virtual |
Set the font color to display the text in.
Reimplemented in makVrv::DtMapMouseCursorPositionFromBullseyeSectionOverlay, makVrv::DtMapMouseCursorToWorldPositionSectionOverlay, and makVrv::DtMapScaleSectionOverlay.
|
virtual |
Set whether or not bounds for this informational section overlay are visualized or not. This is a useful debugging capability.
|
virtual |
Get whether or not bounds for this informational section overlay are visualized or not. This is a useful debugging capability.
|
protectedvirtual |
Get the dimensions of the channel of this section overlay in pixels Helper function that can be used by sub-classes.
|
protectedvirtual |
Get the center for the parent overlay of this section overlay in normalized screen space [0-1].
|
friend |
| boost::signalslib::signal<void()> makVrv::DtMapInformationSectionOverlay::signal_sectionOverlayDimensionsChanged |
parent map overlay should resize and update other section overlays accordingly
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |