9 #include "VectorMath.h"
17 namespace LabelOrientation
27 namespace LabelDisplay
36 namespace LabelHorizontalAlignment
47 namespace LabelVerticalAlignment
63 IfNotMaskedByMapFeature,
69 namespace ScreenMarginHiding
82 typedef std::string IdType;
87 LabelOrientation::Type labelOrientation,
88 LabelDisplay::Type labelDisplay,
89 LabelHorizontalAlignment::Type labelHorizontalAlignment,
90 LabelVerticalAlignment::Type labelVerticalAlignment,
91 const v2& labelOffsetEms,
92 float labelAltitudeOffset,
93 float constraintRadiusScale,
95 bool initiallyFadedOut,
97 StencilMode::Type stencilMode,
98 StencilMode::Type stencilModeFlattened,
101 ScreenMarginHiding::Type screenMarginHiding,
102 bool ignoreOcclusion,
103 const v2& iconOffset,
107 IdType GetId()
const {
return m_id; }
109 const LabelTextStyle* GetTextStyle()
const {
return m_pLabelTextStyle; }
111 const LabelIconStyle* GetIconStyle()
const {
return m_pLabelIconStyle; }
113 LabelOrientation::Type GetLabelOrientation()
const {
return m_labelOrientation; }
115 LabelDisplay::Type GetLabelDisplay()
const {
return m_labelDisplay; }
117 LabelHorizontalAlignment::Type GetLabelHorizontalAlignment()
const {
return m_labelHorizontalAlignment; }
119 LabelVerticalAlignment::Type GetLabelVerticalAlignment()
const {
return m_labelVerticalAlignment; }
121 const v2& GetLabelOffsetEms()
const {
return m_labelOffsetEms; }
123 float GetLabelAltitudeOffset()
const {
return m_labelAltitudeOffset; }
125 float GetConstraintRadiusScale()
const {
return m_constraintRadiusScale; }
127 float GetFadeDuration()
const {
return m_fadeDuration; }
129 bool ShouldFade()
const {
return m_fadeDuration > 0.f; }
131 float GetFadeSpeed()
const {
return m_fadeSpeed; }
133 bool IsInitiallyFadedOut()
const {
return m_initiallyFadedOut; }
135 int GetPriority()
const {
return m_priority; }
137 bool IsPickable()
const {
return m_pickable; }
139 StencilMode::Type GetStencilMode()
const {
return m_stencilMode; }
141 StencilMode::Type GetStencilModeFlattened()
const {
return m_stencilModeFlattened; }
143 float GetScreenMargin()
const {
return m_screenMargin; }
145 ScreenMarginHiding::Type GetScreenMarginHiding()
const {
return m_screenMarginHiding; }
147 bool WillIgnoreOcclusion()
const {
return m_ignoreOcclusion; }
149 const v2& GetIconOffset()
const {
return m_iconOffset; }
151 const int GetStyleIndex()
const {
return m_styleIndex; }
156 const LabelOrientation::Type m_labelOrientation;
157 const LabelDisplay::Type m_labelDisplay;
158 const LabelHorizontalAlignment::Type m_labelHorizontalAlignment;
159 const LabelVerticalAlignment::Type m_labelVerticalAlignment;
160 const v2 m_labelOffsetEms;
161 const float m_labelAltitudeOffset;
162 const float m_constraintRadiusScale;
163 const float m_fadeDuration;
164 const float m_fadeSpeed;
165 const StencilMode::Type m_stencilMode;
166 const StencilMode::Type m_stencilModeFlattened;
167 const bool m_initiallyFadedOut;
168 const bool m_pickable;
169 const int m_priority;
170 const float m_screenMargin;
171 const ScreenMarginHiding::Type m_screenMarginHiding;
172 const bool m_ignoreOcclusion;
173 const v2 m_iconOffset;
174 const int m_styleIndex;