![]() |
VR-Forces 5.0.3 Developer's Guide
|
This class defines an informational section that can be added to the map information overlay which displays a map scale based on the current observer's position for the channel the map information overlay is on.
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 | ~DtMapScaleSectionOverlay () |
| DtMapScaleSectionOverlay ()=delete | |
| DtMapScaleSectionOverlay (const DtMapScaleSectionOverlay &other)=delete | |
| DtMapScaleSectionOverlay & | operator= (const DtMapScaleSectionOverlay &other)=delete |
| virtual void | createVisuals () |
| virtual void | destroyVisuals () |
| virtual bool | isVisualized () const |
| virtual void | update () override |
| virtual bool | getSize (int &width, int &height) override |
| virtual void | setGeometry (double left, double bottom, double width, double height) override |
| virtual void | setFont (const std::string &fontFile, float sizeInPoints) override |
| virtual void | setFontColor (float r, float g, float b, float a) override |
| virtual void | setPixelRatio (float pixelRatio) |
Public Member Functions inherited from makVrv::DtMapInformationSectionOverlay | |
| 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 | setAreBoundsVisualized (bool areBoundsVisualized) |
| virtual bool | areBoundsVisualized () const |
Protected Member Functions | |
| virtual double | findDistanceFromResolution (double viewResolution, DtUnicode &label) const |
| DtMapScaleSectionOverlay (DtDe &de) | |
Protected Member Functions inherited from makVrv::DtMapInformationSectionOverlay | |
| DtMapInformationSectionOverlay (DtDe &de) | |
| virtual bool | getChannelDimensionsInPixels (int &widthPixels, int &heightPixels) const |
| virtual bool | getParentOverlayCenter (double &normalizedX, double &normalizedY) const |
Protected Attributes | |
| DtWindowText * | myScaleText |
| DtWindowLine * | myHorizontalLine |
| int | myLineWidth |
| bool | myNeedsUpdate |
| double | myPreviousViewResolution |
| int | myLabelTextHeight |
| int | myLabelTextWidth |
| int | myActualScaleWidth |
| int | myTargetScaleWidth |
| int | myLabelScaleBarSpacing |
| int | myLeftAndRightMarginSpacing |
Protected Attributes inherited from makVrv::DtMapInformationSectionOverlay | |
| 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 | DtMapScaleSectionOverlayCreator |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtMapInformationSectionOverlay | |
| boost::signalslib::signal< void()> | signal_sectionOverlayDimensionsChanged |
|
virtual |
DTOR.
|
delete |
not allowed
|
delete |
not allowed
|
protected |
CTOR Protected so that instances of this class can only be created using a DtMapInformationSectionOverlayCreator.
|
delete |
not allowed
|
virtual |
Create the visuals for this section overlay.
Reimplemented from makVrv::DtMapInformationSectionOverlay.
|
virtual |
Destroy the visuals for this section overlay.
Reimplemented from makVrv::DtMapInformationSectionOverlay.
|
virtual |
Return whether or not the section overlay has been visualized.
Implements makVrv::DtMapInformationSectionOverlay.
|
overridevirtual |
Updates the section overlay - called every frame.
Reimplemented from makVrv::DtMapInformationSectionOverlay.
|
overridevirtual |
Get the size needed for this section overlay.
Implements makVrv::DtMapInformationSectionOverlay.
|
overridevirtual |
Set the geometry of this section overlay in normalized screen space [0-1].
Reimplemented from makVrv::DtMapInformationSectionOverlay.
|
overridevirtual |
Set the font file and size in points to display the text in.
Reimplemented from makVrv::DtMapInformationSectionOverlay.
|
overridevirtual |
Set the font color to display the text in.
Reimplemented from makVrv::DtMapInformationSectionOverlay.
|
virtual |
Sets the pixel density ratio to scale the section overlay on high dpi screens.
Reimplemented from makVrv::DtMapInformationSectionOverlay.
|
protectedvirtual |
Given a view resolution (meters/pixel) get a distance that will be used to display on the screen.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |