libosmscout 1.1.1
Loading...
Searching...
No Matches
SymbolRendererQt.h
Go to the documentation of this file.
1#ifndef OSMSCOUT_MAP_QT_SYMBOLRENDERERQT_H
2#define OSMSCOUT_MAP_QT_SYMBOLRENDERERQT_H
3
4/*
5 This source is part of the libosmscout-map library
6 Copyright (C) 2010 Tim Teulings
7 Copyright (C) 2022 Lukas Karas
8
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
13
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with this library; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22*/
23
24#include <QPainter>
25
28
29#include <osmscoutmap/Styles.h>
30
31namespace osmscout {
32
37private:
38 QPainter *painter; // not owning
39public:
40 explicit SymbolRendererQt(QPainter *painter);
43
44 ~SymbolRendererQt() override = default;
45
48
49protected:
50 void SetFill(const FillStyleRef &fillStyle) override;
51 void SetBorder(const BorderStyleRef &borderStyle, double screenMmInPixel) override;
52 void DrawPolygon(const std::vector<Vertex2D> &polygonPixels) override;
53 void DrawRect(double x, double y, double w, double h) override;
54 void DrawCircle(double x, double y, double radius) override;
55};
56}
57
58#endif // OSMSCOUT_MAP_QT_SYMBOLRENDERERQT_H
#define OSMSCOUT_MAP_QT_API
Definition MapQtImportExport.h:45
Definition SymbolRenderer.h:34
~SymbolRendererQt() override=default
void DrawRect(double x, double y, double w, double h) override
void DrawCircle(double x, double y, double radius) override
SymbolRendererQt(const SymbolRendererQt &)=default
SymbolRendererQt(QPainter *painter)
void SetFill(const FillStyleRef &fillStyle) override
SymbolRendererQt & operator=(const SymbolRendererQt &)=default
void SetBorder(const BorderStyleRef &borderStyle, double screenMmInPixel) override
void DrawPolygon(const std::vector< Vertex2D > &polygonPixels) override
SymbolRendererQt & operator=(SymbolRendererQt &&)=default
SymbolRendererQt(SymbolRendererQt &&)=default
Definition Area.h:39
std::shared_ptr< BorderStyle > BorderStyleRef
Definition Styles.h:464
std::shared_ptr< FillStyle > FillStyleRef
Definition Styles.h:356