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

circle_shape.hpp « drape_frontend - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f0e85b58a39d68958f70cbcfd10e617a5515a612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once

#include "drape_frontend/map_shape.hpp"
#include "drape_frontend/shape_view_params.hpp"

namespace dp
{
class OverlayHandle;
} // namespace dp

namespace df
{

class CircleShape : public MapShape
{
public:
  CircleShape(m2::PointF const & mercatorPt, CircleViewParams const & params, bool needOverlay);

  void Draw(ref_ptr<dp::Batcher> batcher, ref_ptr<dp::TextureManager> textures) const override;
  MapShapeType GetType() const override { return MapShapeType::OverlayType; }

private:
  uint64_t GetOverlayPriority() const;
  drape_ptr<dp::OverlayHandle> CreateOverlay() const;

  m2::PointF m_pt;
  CircleViewParams m_params;
  bool m_needOverlay;
};

} //namespace df