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

circle_element.hpp « graphics - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 289214a88b3ebdecdf5b3a7b941247770e0e24b8 (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
32
33
34
35
36
#pragma once

#include "overlay_element.hpp"
#include "circle.hpp"

namespace graphics
{
  class CircleElement : public OverlayElement
  {
  private:

    Circle::Info m_ci;

    mutable vector<m2::AnyRectD> m_boundRects;

    m2::AnyRectD const boundRect() const;

  public:

    typedef OverlayElement base_t;

    struct Params : public base_t::Params
    {
      Circle::Info m_ci;
      Params();
    };

    CircleElement(Params const & p);

    vector<m2::AnyRectD> const & boundRects() const;

    void draw(OverlayRenderer * s, math::Matrix<double, 3, 3> const & m) const;

    void setTransformation(const math::Matrix<double, 3, 3> & m);
  };
}