VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtMapScaleSectionOverlay.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
11 
12 #pragma once
13 
14 namespace makVrv
15 {
16  class DtWindowLine;
17  class DtWindowText;
18  class DtUnicode;
19  class DtDe;
20 
32  {
34 
35  public:
37  virtual ~DtMapScaleSectionOverlay();
38 
40  DtMapScaleSectionOverlay() = delete;
41 
44 
46  DtMapScaleSectionOverlay& operator=(const DtMapScaleSectionOverlay& other) = delete;
47 
49  virtual void createVisuals();
50 
52  virtual void destroyVisuals();
53 
55  virtual bool isVisualized() const;
56 
58  virtual void update() override;
59 
61  virtual bool getSize(int& width, int& height) override;
62 
64  virtual void setGeometry(double left, double bottom, double width, double height) override;
65 
67  virtual void setFont(const std::string& fontFile, float sizeInPoints) override;
68 
70  virtual void setFontColor(float r, float g, float b, float a) override;
71 
74  virtual void setPixelRatio(float pixelRatio);
75 
76  protected:
78  virtual double findDistanceFromResolution(double viewResolution, DtUnicode& label) const;
79 
80  protected:
81 
86 
87  protected:
90 
92 
94 
96 
99 
102 
105  };
106 
111  {
112  public:
113 
116 
120  static DtMapInformationSectionOverlayCreator* instance(DtDe& de);
121 
124  static void registerInstance(DtDe& de, DtMapInformationSectionOverlayCreator*);
125 
128  static std::string className();
129 
131  virtual DtMapInformationSectionOverlay* create(DtDe& de) override;
132 
134  virtual DtMapInformationSectionOverlayCreator* clone() const override;
135 
136  };
137 
138 }
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
Contains DtMapInformationSectionOverlay class declaration.
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
DtMapInformationSectionOverlay is an abstract base class that contains functionality common to all in...
Definition: DtMapInformationSectionOverlay.h:35
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
Abstract base class for creating new DtMapInformationOverlaySection objects. All implementations of i...
Definition: DtMapInformationSectionOverlay.h:145
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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)