Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
305 | KeyOz | 1 | /* |
2 | * |
||
3 | * This file is part of QMapControl, |
||
4 | * an open-source cross-platform map widget |
||
5 | * |
||
6 | * Copyright (C) 2007 - 2008 Kai Winter |
||
7 | * |
||
8 | * This program is free software: you can redistribute it and/or modify |
||
9 | * it under the terms of the GNU Lesser General Public License as published by |
||
10 | * the Free Software Foundation, either version 3 of the License, or |
||
11 | * (at your option) any later version. |
||
12 | * |
||
13 | * This program is distributed in the hope that it will be useful, |
||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
16 | * GNU Lesser General Public License for more details. |
||
17 | * |
||
18 | * You should have received a copy of the GNU Lesser General Public License |
||
19 | * along with QMapControl. If not, see <http://www.gnu.org/licenses/>. |
||
20 | * |
||
21 | * Contact e-mail: kaiwinter@gmx.de |
||
22 | * Program URL : http://qmapcontrol.sourceforge.net/ |
||
23 | * |
||
24 | */ |
||
25 | |||
26 | #ifndef CIRCLEPOINT_H |
||
27 | #define CIRCLEPOINT_H |
||
28 | |||
29 | #include "point.h" |
||
30 | |||
31 | namespace qmapcontrol |
||
32 | { |
||
33 | //! Draws a circle into the map |
||
34 | /*! This is a conveniece class for Point. |
||
35 | * It configures the pixmap of a Point to draw a circle. |
||
36 | * A QPen could be used to change the color or line-width of the circle |
||
37 | * |
||
38 | * @author Kai Winter <kaiwinter@gmx.de> |
||
39 | */ |
||
40 | class CirclePoint : public Point |
||
41 | { |
||
42 | public: |
||
43 | //! |
||
44 | /*! |
||
45 | * |
||
46 | * @param x longitude |
||
47 | * @param y latitude |
||
48 | * @param name name of the circle point |
||
49 | * @param alignment alignment (Middle or TopLeft) |
||
50 | * @param pen QPen for drawing |
||
51 | */ |
||
52 | CirclePoint(qreal x, qreal y, QString name = QString(), Alignment alignment = Middle, QPen* pen=0); |
||
53 | |||
54 | //! |
||
55 | /*! |
||
56 | * |
||
57 | * @param x longitude |
||
58 | * @param y latitude |
||
59 | * @param radius the radius of the circle |
||
60 | * @param name name of the circle point |
||
61 | * @param alignment alignment (Middle or TopLeft) |
||
62 | * @param pen QPen for drawing |
||
63 | */ |
||
64 | CirclePoint(qreal x, qreal y, int radius = 10, QString name = QString(), Alignment alignment = Middle, QPen* pen=0); |
||
65 | virtual ~CirclePoint(); |
||
66 | |||
67 | //! sets the QPen which is used for drawing the circle |
||
68 | /*! |
||
69 | * A QPen can be used to modify the look of the drawn circle |
||
70 | * @param pen the QPen which should be used for drawing |
||
71 | * @see http://doc.trolltech.com/4.3/qpen.html |
||
72 | */ |
||
73 | virtual void setPen(QPen* pen); |
||
74 | |||
75 | }; |
||
76 | } |
||
77 | #endif |