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

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

#include "text_element.hpp"

namespace graphics
{
  class PathTextElement : public TextElement
  {
  private:

    GlyphLayout m_glyphLayout;

  public:

    struct Params : TextElement::Params
    {
      m2::PointD const * m_pts;
      size_t m_ptsCount;
      double m_fullLength;
      double m_pathOffset;
      double m_textOffset;
      Params();
    };

    PathTextElement(Params const & p);

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

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

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