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

line_shape.hpp « drape_frontend - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0923f9e904588ea9e4c8b509e1571aa95f5f2652 (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
#pragma once

#include "map_shape.hpp"
#include "shape_view_params.hpp"

#include "../geometry/point2d.hpp"

#include "../std/vector.hpp"

namespace df
{

class LineShape : public MapShape
{
public:
  LineShape(vector<m2::PointF> const & points,
            LineViewParams const & params);

  virtual void Draw(dp::RefPointer<dp::Batcher> batcher, dp::RefPointer<dp::TextureSetHolder> textures) const;

  float         GetWidth() const { return m_params.m_width; }
  dp::Color const & GetColor() const { return m_params.m_color; }

private:
  LineViewParams m_params;
  vector<m2::PointF> m_points;
};

} // namespace df