diff options
author | Roman Sorokin <sorok-roma@yandex.ru> | 2014-07-31 15:39:37 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:22:45 +0300 |
commit | 0ccf5f9d0519c671b1c72b0d93fd355d9005b20c (patch) | |
tree | b8bcb4cf6dce901c6dec4ad7bca2f459affa4537 /drape_frontend/path_symbol_shape.hpp | |
parent | 815c2a94abe7593c376313f3292f0ecdb1ae5cd8 (diff) |
syntax fixes
Diffstat (limited to 'drape_frontend/path_symbol_shape.hpp')
-rw-r--r-- | drape_frontend/path_symbol_shape.hpp | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/drape_frontend/path_symbol_shape.hpp b/drape_frontend/path_symbol_shape.hpp index 5ea11365fd..eff982a919 100644 --- a/drape_frontend/path_symbol_shape.hpp +++ b/drape_frontend/path_symbol_shape.hpp @@ -2,9 +2,7 @@ #include "map_shape.hpp" #include "shape_view_params.hpp" -#include "path_text_shape.hpp" - -#include "../drape/overlay_handle.hpp" +#include "common_structures.hpp" #include "../std/vector.hpp" @@ -26,28 +24,4 @@ private: float m_maxScale; }; -class PathSymbolHandle : public OverlayHandle -{ -public: - static const uint8_t PositionAttributeID = 1; - PathSymbolHandle(m2::Spline const & spl, PathSymbolViewParams const & params, int maxCount, float hw, float hh) - : OverlayHandle(FeatureID(), dp::Center, 0.0f), - m_params(params), m_path(spl), m_scaleFactor(1.0f), - m_positions(maxCount * 6), m_maxCount(maxCount), - m_symbolHalfWidth(hw), m_symbolHalfHeight(hh) {} - - virtual void Update(ScreenBase const & screen); - virtual m2::RectD GetPixelRect(ScreenBase const & screen) const; - virtual void GetAttributeMutation(RefPointer<AttributeBufferMutator> mutator) const; - -private: - PathSymbolViewParams m_params; - m2::Spline m_path; - float m_scaleFactor; - mutable vector<Position> m_positions; - int m_maxCount; - float m_symbolHalfWidth; - float m_symbolHalfHeight; -}; - } |