Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-06-15 10:20:24 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-06-16 14:19:03 +0300
commitab8d3579d50fddbc9296c769ec99cff06164f3cc (patch)
tree874f361ee405983c8ed6d147571a50863628bece /drape/overlay_handle.hpp
parent8606c53a1c1f19da6e736b5a71a6830cbd02a8af (diff)
Improved metaline rendering
Diffstat (limited to 'drape/overlay_handle.hpp')
-rw-r--r--drape/overlay_handle.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/drape/overlay_handle.hpp b/drape/overlay_handle.hpp
index 762f63aeb4..17f5b604a7 100644
--- a/drape/overlay_handle.hpp
+++ b/drape/overlay_handle.hpp
@@ -141,6 +141,9 @@ public:
void SetCachingEnable(bool enable);
+ void SetReady(bool isReady) { m_isReady = isReady; }
+ bool IsReady() const { return m_isReady; }
+
#ifdef DEBUG_OVERLAYS_OUTPUT
virtual string GetOverlayDebugInfo() { return ""; }
#endif
@@ -182,6 +185,8 @@ private:
mutable bool m_extendedShapeDirty;
mutable m2::RectD m_extendedRectCache;
mutable bool m_extendedRectDirty;
+
+ bool m_isReady = false;
};
class SquareHandle : public OverlayHandle
@@ -190,7 +195,8 @@ class SquareHandle : public OverlayHandle
public:
SquareHandle(OverlayID const & id, dp::Anchor anchor, m2::PointD const & gbPivot,
- m2::PointD const & pxSize, uint64_t priority, bool isBound, string const & debugStr,
+ m2::PointD const & pxSize, m2::PointD const & pxOffset,
+ uint64_t priority, bool isBound, string const & debugStr,
bool isBillboard = false);
m2::RectD GetPixelRect(ScreenBase const & screen, bool perspective) const override;
@@ -204,6 +210,7 @@ public:
private:
m2::PointD m_gbPivot;
m2::PointD m_pxHalfSize;
+ m2::PointD m_pxOffset;
bool m_isBound;
#ifdef DEBUG_OVERLAYS_OUTPUT