49 virtual void createVisuals();
52 virtual void destroyVisuals();
55 virtual bool isVisualized()
const;
58 virtual void update()
override;
61 virtual bool getSize(
int& width,
int& height)
override;
64 virtual void setGeometry(
double left,
double bottom,
double width,
double height)
override;
67 virtual void setFont(
const std::string& fontFile,
float sizeInPoints)
override;
70 virtual void setFontColor(
float r,
float g,
float b,
float a)
override;
74 virtual void setPixelRatio(
float pixelRatio);
78 virtual double findDistanceFromResolution(
double viewResolution,
DtUnicode& label)
const;
128 static std::string className();
double myPreviousViewResolution
Definition: DtMapScaleSectionOverlay.h:95
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
A model-like object that draws a 2D line.
Definition: DtWindowLine.h:42
DtWindowText * myScaleText
Definition: DtMapScaleSectionOverlay.h:88
int myLineWidth
Definition: DtMapScaleSectionOverlay.h:91
DtWindowLine * myHorizontalLine
Definition: DtMapScaleSectionOverlay.h:89
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
bool myNeedsUpdate
Definition: DtMapScaleSectionOverlay.h:93
int myActualScaleWidth
Definition: DtMapScaleSectionOverlay.h:100
Responsible for creating new DtMapScaleSectionOverlay objects.
Definition: DtMapScaleSectionOverlay.h:109
int myLabelTextHeight
Definition: DtMapScaleSectionOverlay.h:97
int myLabelTextWidth
Definition: DtMapScaleSectionOverlay.h:98
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
int myTargetScaleWidth
Definition: DtMapScaleSectionOverlay.h:101
int myLeftAndRightMarginSpacing
Definition: DtMapScaleSectionOverlay.h:104
int myLabelScaleBarSpacing
Definition: DtMapScaleSectionOverlay.h:103
This class defines an informational section that can be added to the map information overlay which di...
Definition: DtMapScaleSectionOverlay.h:31
A model-like object that draws a 2D text on screen. This window text class inherits from DtWindowObje...
Definition: DtWindowText.h:38