diff options
author | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2018-07-04 14:00:25 +0300 |
---|---|---|
committer | Vlad Mihaylenko <vxmihaylenko@gmail.com> | 2018-07-20 14:51:41 +0300 |
commit | 00da2f0826c5ef90dc72f9874d05d0b46ebb27f5 (patch) | |
tree | 16783bdaf6cac5f9353ca359ed7b73954daf55e7 /drape/overlay_handle.hpp | |
parent | c3191975331f85d0789f7037f280303bce48becb (diff) |
Check min visible scale of overlays when build the overlay tree.
Diffstat (limited to 'drape/overlay_handle.hpp')
-rw-r--r-- | drape/overlay_handle.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drape/overlay_handle.hpp b/drape/overlay_handle.hpp index 9ca30199b8..66462f2724 100644 --- a/drape/overlay_handle.hpp +++ b/drape/overlay_handle.hpp @@ -92,13 +92,14 @@ public: using Rects = std::vector<m2::RectF>; OverlayHandle(OverlayID const & id, dp::Anchor anchor, - uint64_t priority, bool isBillboard); + uint64_t priority, int minVisibleScale, bool isBillboard); virtual ~OverlayHandle() {} bool IsVisible() const; void SetIsVisible(bool isVisible); + int GetMinVisibleScale() const; bool IsBillboard() const; virtual m2::PointD GetPivot(ScreenBase const & screen, bool perspective) const; @@ -171,6 +172,7 @@ protected: m2::RectD GetPixelRectPerspective(ScreenBase const & screen) const; private: + int m_minVisibleScale; bool const m_isBillboard; bool m_isVisible; @@ -206,7 +208,7 @@ public: SquareHandle(OverlayID const & id, dp::Anchor anchor, m2::PointD const & gbPivot, m2::PointD const & pxSize, m2::PointD const & pxOffset, uint64_t priority, bool isBound, std::string const & debugStr, - bool isBillboard = false); + int minVisibleScale, bool isBillboard); m2::RectD GetPixelRect(ScreenBase const & screen, bool perspective) const override; void GetPixelShape(ScreenBase const & screen, bool perspective, Rects & rects) const override; |