QMapControl  0.9.7.4
circlepoint.h
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 "qmapcontrol_global.h"
30 #include "point.h"
31 
32 namespace qmapcontrol
33 {
35 
41  class QMAPCONTROL_EXPORT CirclePoint : public Point
42  {
43  public:
45 
53  CirclePoint(qreal x, qreal y, QString name = QString(), Alignment alignment = Middle, QPen* pen=0);
54 
56 
65  CirclePoint(qreal x, qreal y, int radius = 10, QString name = QString(), Alignment alignment = Middle, QPen* pen=0);
66  virtual ~CirclePoint();
67 
69 
74  virtual void setPen(QPen* pen);
75 
76  private:
77  void drawCircle();
78  };
79 }
80 #endif
Draws a circle into the map.
Definition: circlepoint.h:41
Alignment
sets where the point should be aligned
Definition: point.h:75
A geometric point to draw objects into maps.
Definition: point.h:66
QMapControl namespace.
Definition: arrowpoint.cpp:28