Logo Search packages:      
Sourcecode: qmk-groundstation version File versions  Download package

qmapcontrol::CirclePoint Class Reference

#include <circlepoint.h>

Inheritance diagram for qmapcontrol::CirclePoint:

qmapcontrol::Point qmapcontrol::Geometry

List of all members.

Detailed Description

Draws a circle into the map.

This is a conveniece class for Point. It configures the pixmap of a Point to draw a circle. A QPen could be used to change the color or line-width of the circle

Kai Winter <kaiwinter@gmx.de>

Definition at line 40 of file circlepoint.h.

Public Types

enum  Alignment {
  TopLeft, TopRight, BottomLeft, BottomRight,
 sets where the point should be aligned More...

Public Slots

void setCoordinate (QPointF point)
virtual void setVisible (bool visible)
 if visible is true, the layer is made visible


void geometryClicked (Geometry *geometry, QPoint point)
 This signal is emitted when a Geometry is clicked.
void positionChanged (Geometry *geom)
 A Geometry emits this signal, when its position gets changed.
void updateRequest (QRectF rect)
void updateRequest (Geometry *geom)

Public Member Functions

Point::Alignment alignment () const
virtual QRectF boundingBox ()
 returns the bounding box of the point
 CirclePoint (qreal x, qreal y, int radius=10, QString name=QString(), Alignment alignment=Middle, QPen *pen=0)
 CirclePoint (qreal x, qreal y, QString name=QString(), Alignment alignment=Middle, QPen *pen=0)
virtual QList< Geometry * > clickedPoints ()
QPointF coordinate () const
 returns the coordinate of the point
bool Equals (Geometry *geom)
virtual bool hasClickedPoints () const
virtual bool hasPoints () const
bool isVisible () const
 returns true if this Geometry is visible
qreal latitude () const
 returns the latitude of the point
qreal longitude () const
 returns the longitude of the point
QString name () const
 returns the name of this Geometry
GeometryparentGeometry () const
 returns the parent Geometry of this Geometry
QPen * pen () const
 returns the QPen which is used on drawing
QPixmap * pixmap ()
 returns the pixmap of the point
virtual QList< Point * > points ()
void setBaselevel (int zoomlevel)
 Sets the zoom level on which the point�s pixmap gets displayed on full size.
void setMaxsize (QSize maxsize)
 sets a maximal size for the pixmap
void setMinsize (QSize minsize)
 sets a minimal size for the pixmap
void setName (QString name)
 sets the name of the geometry
virtual void setPen (QPen *pen)
 sets the QPen which is used for drawing the circle
QString toString ()
 returns a String representation of this Geometry
QWidget * widget ()
 returns the widget of the point

Public Attributes

QString GeometryType

Protected Member Functions

QPoint alignedPoint (const QPoint point) const
virtual void draw (QPainter *painter, const MapAdapter *mapadapter, const QRect &viewport, const QPoint offset)
void drawWidget (const MapAdapter *mapadapter, const QPoint offset)
void setParentGeometry (Geometry *geom)
virtual bool Touches (Point *geom, const MapAdapter *mapadapter)
 returns true if the given Point touches this Point

Protected Attributes

QSize displaysize
int homelevel
QSize maxsize
QSize minsize
Alignment myalignment
QString myname
QPen * mypen
QPixmap * mypixmap
QWidget * mywidget
QSize size
bool visible
qreal X
qreal Y


class Layer
class LineString

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index