libosmscout 1.1.1
Loading...
Searching...
No Matches
MapPainterNoOp.h
Go to the documentation of this file.
1#ifndef OSMSCOUT_MAP_MAPPAINTERNOOP_H
2#define OSMSCOUT_MAP_MAPPAINTERNOOP_H
3/*
4 This source is part of the libosmscout-map library
5 Copyright (C) 2015 Tim Teulings
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20*/
21
23
24namespace osmscout {
36 {
37 protected:
39 const Projection& projection,
40 const MapParameter& parameter,
41 IconStyle& style) override;
42
43 double GetFontHeight(const Projection& projection,
44 const MapParameter& parameter,
45 double fontSize) override;
46
47 void DrawGround(const Projection& projection,
48 const MapParameter& parameter,
49 const FillStyle& style) override;
50
51 void RegisterRegularLabel(const Projection& projection,
52 const MapParameter& parameter,
53 const ObjectFileRef& ref,
54 const std::vector<LabelData> &labels,
55 const Vertex2D& position,
56 double objectWidth) override;
57
58 void RegisterContourLabel(const Projection &projection,
59 const MapParameter &parameter,
60 const ObjectFileRef& ref,
61 const PathLabelData &label,
62 const LabelPath &labelPath) override;
63
64 void DrawLabels(const Projection& projection,
65 const MapParameter& parameter,
66 const MapData& data) override;
67
68 void DrawIcon(const IconStyle* style,
69 const Vertex2D& centerPos,
70 double width, double height) override;
71
72 void DrawSymbol(const Projection& projection,
73 const MapParameter& parameter,
74 const Symbol& symbol,
75 const Vertex2D& screenPos,
76 double scaleFactor) override;
77
78 void DrawPath(const Projection& projection,
79 const MapParameter& parameter,
80 const Color& color,
81 double width,
82 const std::vector<double>& dash,
83 LineStyle::CapStyle startCap,
84 LineStyle::CapStyle endCap,
85 const CoordBufferRange& coordRange) override;
86
87 void DrawContourSymbol(const Projection& projection,
88 const MapParameter& parameter,
89 const Symbol& symbol,
90 const ContourSymbolData& data) override;
91
92 void DrawArea(const Projection& projection,
93 const MapParameter& parameter,
94 const AreaData& area) override;
95
96 public:
98
99 ~MapPainterNoOp() override = default;
100
101 bool DrawMap(const Projection& projection,
102 const MapParameter& parameter,
103 const MapData& data,
106 };
107
108}
109
110#endif
#define OSMSCOUT_MAP_API
Definition MapImportExport.h:45
Definition LabelPath.h:44
MapPainter(const StyleConfigRef &styleConfig)
StyleConfigRef styleConfig
Reference to the style configuration to be used.
Definition MapPainter.h:250
void DrawGround(const Projection &projection, const MapParameter &parameter, const FillStyle &style) override
void DrawLabels(const Projection &projection, const MapParameter &parameter, const MapData &data) override
void RegisterContourLabel(const Projection &projection, const MapParameter &parameter, const ObjectFileRef &ref, const PathLabelData &label, const LabelPath &labelPath) override
void RegisterRegularLabel(const Projection &projection, const MapParameter &parameter, const ObjectFileRef &ref, const std::vector< LabelData > &labels, const Vertex2D &position, double objectWidth) override
bool DrawMap(const Projection &projection, const MapParameter &parameter, const MapData &data, RenderSteps startStep=RenderSteps::FirstStep, RenderSteps endStep=RenderSteps::LastStep)
MapPainterNoOp(const StyleConfigRef &styleConfig)
void DrawPath(const Projection &projection, const MapParameter &parameter, const Color &color, double width, const std::vector< double > &dash, LineStyle::CapStyle startCap, LineStyle::CapStyle endCap, const CoordBufferRange &coordRange) override
void DrawSymbol(const Projection &projection, const MapParameter &parameter, const Symbol &symbol, const Vertex2D &screenPos, double scaleFactor) override
void DrawIcon(const IconStyle *style, const Vertex2D &centerPos, double width, double height) override
~MapPainterNoOp() override=default
void DrawContourSymbol(const Projection &projection, const MapParameter &parameter, const Symbol &symbol, const ContourSymbolData &data) override
void DrawArea(const Projection &projection, const MapParameter &parameter, const AreaData &area) override
bool HasIcon(const StyleConfig &styleConfig, const Projection &projection, const MapParameter &parameter, IconStyle &style) override
double GetFontHeight(const Projection &projection, const MapParameter &parameter, double fontSize) override
Definition LabelLayouter.h:46
Definition Projection.h:46
Index selectors by type and level.
Definition StyleConfig.h:552
Definition Area.h:39
std::shared_ptr< StyleConfig > StyleConfigRef
Definition StyleConfig.h:859
RenderSteps
Definition MapPainter.h:64
@ LastStep
Definition MapPainter.h:92
@ FirstStep
Definition MapPainter.h:65
Definition MapPainter.h:174
Definition MapPainter.h:200