![]() |
VR-Forces 4.8 Class Documentation
|
Will show a map scale given the overserver position and screen DPI. More...

Public Member Functions | |
| DtMapScaleInstance (makVrv::DtDe &de) | |
| CTOR. More... | |
| virtual | ~DtMapScaleInstance () |
| DTOR. More... | |
| virtual void | getSize (int &width, int &height) |
| Returns the maximal width/height of this object. More... | |
Public Member Functions inherited from makVrf::DtMapInformationOverlayInstance | |
| DtMapInformationOverlayInstance (makVrv::DtDe &de) | |
| CTOR. More... | |
| virtual | ~DtMapInformationOverlayInstance () |
| DTOR. More... | |
| virtual void | setModelDefinition (const std::string &modelDefinition) |
| Set the model definition; note that this (potentially) includes all the other parameters enumeration below. More... | |
| virtual void | setVisible (bool isVisible) |
| Set the grid line visibility state. More... | |
| bool | visible () const |
| virtual void | setChannel (makVrv::DtChannel *) |
| virtual void | setOrigin (int left, int bottom) |
| Sets the origin of where this overlay should be displayed in screen space. More... | |
| virtual void | setGeometry (int left, int bottom, int width, int height) |
| Sets the geometry of the object. More... | |
| virtual void | updateDisplay () |
| Sets flag to update display on next tick. More... | |
Protected Member Functions | |
| virtual void | channelUpdated () |
| Called when the channel is updated. More... | |
| virtual void | destroyVisuals () |
| Overrides needed to be implemented by subclasses. More... | |
| virtual void | createVisuals () |
| Create any visuals needed for the overlay. More... | |
| virtual void | reloadTextFonts () |
| Subclasses should re implement this function to reset the font on any allocated text items to support runtime font size changes. More... | |
| virtual double | findDistanceFromResolution (double viewResolution, makVrv::DtUnicode &label) const |
| Given a view resoltion (meters/pixel) get a distance that will be used to display on the screen. More... | |
| virtual void | slot_onUnitChanged (int attribute, int from, int old) |
| Connected to signal_displayUnitChanged on DtDisplayUnitsSettingsSignaler. More... | |
| virtual double | roundToMeter (double metersDistance, makVrv::DtUnicode &label, bool changeToKm=true) const |
| Rounds the current distance to a displayabe meter (or kilometer) representation. More... | |
| virtual double | roundToFeet (double metersDistance, makVrv::DtUnicode &label) const |
| Rounds using feet as measurement, however, will still return meters as a result. More... | |
| virtual double | roundToNauticalMiles (double metersDistance, makVrv::DtUnicode &label) const |
| Rounds using nauticalMiles as measurement, however, will still return meters as a result. More... | |
| virtual void | setGroup (float) |
| Sets the overlay group. More... | |
Protected Member Functions inherited from makVrf::DtMapInformationOverlayInstance | |
| virtual void | setupFont () |
| virtual DtGuiEventProcessor & | guiEventProcessor () const |
| virtual void | slot_windowPixelRatioChanged (float pixelRatio) |
| Reloads fonts on map scale when high dpi scaling changes screens. More... | |
Private Member Functions | |
| DtMapScaleInstance (const DtMapScaleInstance &orig) | |
| Unimplemented copy constructor. More... | |
| DtMapScaleInstance & | operator= (const DtMapScaleInstance &rhs) |
| Unimplemented assignment operator. More... | |
Additional Inherited Members | |
Public Attributes inherited from makVrf::DtMapInformationOverlayInstance | |
| boost::signals2::signal< void()> | signal_needsUpdate |
| Emit this signal when an update/layout change is needed. More... | |
Will show a map scale given the overserver position and screen DPI.
| makVrf::DtMapScaleInstance::DtMapScaleInstance | ( | makVrv::DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
private |
Unimplemented copy constructor.
Returns the maximal width/height of this object.
Implements makVrf::DtMapInformationOverlayInstance.
|
protectedvirtual |
Called when the channel is updated.
Implements makVrf::DtMapInformationOverlayInstance.
|
protectedvirtual |
Overrides needed to be implemented by subclasses.
Destroy any visuals created for the overlay
Implements makVrf::DtMapInformationOverlayInstance.
|
protectedvirtual |
Create any visuals needed for the overlay.
Implements makVrf::DtMapInformationOverlayInstance.
|
protectedvirtual |
Subclasses should re implement this function to reset the font on any allocated text items to support runtime font size changes.
Reimplemented from makVrf::DtMapInformationOverlayInstance.
|
protectedvirtual |
Given a view resoltion (meters/pixel) get a distance that will be used to display on the screen.
|
protectedvirtual |
Connected to signal_displayUnitChanged on DtDisplayUnitsSettingsSignaler.
Calls refreshLabels if the attribute is Distance
|
protectedvirtual |
Rounds the current distance to a displayabe meter (or kilometer) representation.
|
protectedvirtual |
Rounds using feet as measurement, however, will still return meters as a result.
It is the label that is at issue in this calculation
|
protectedvirtual |
Rounds using nauticalMiles as measurement, however, will still return meters as a result.
It is the label that is at issue in this calculation
|
protectedvirtual |
Sets the overlay group.
Reimplemented from makVrf::DtMapInformationOverlayInstance.
|
private |
Unimplemented assignment operator.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |