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

qmapcontrol::Geometry Class Reference

#include <geometry.h>

Inheritance diagram for qmapcontrol::Geometry:

qmapcontrol::Curve qmapcontrol::Point qmapcontrol::LineString qmapcontrol::CirclePoint qmapcontrol::ImagePoint qmapcontrol::FixedImageOverlay

List of all members.


Detailed Description

Main class for objects that should be painted in maps.

Geometry is the root class of the hierarchy. Geometry is an abstract (non-instantiable) class.

This class and the derived classes Point, Curve and LineString are leant on the Simple Feature Specification of the Open Geospatial Consortium.

See also:
www.opengeospatial.com
Author:
Kai Winter <kaiwinter@gmx.de>

Definition at line 46 of file geometry.h.


Public Slots

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

Signals

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

virtual QRectF boundingBox ()=0
 returns the BoundingBox
virtual QList< Geometry * > clickedPoints ()
virtual void draw (QPainter *painter, const MapAdapter *mapadapter, const QRect &viewport, const QPoint offset)=0
bool Equals (Geometry *geom)
 Geometry (QString name=QString())
virtual bool hasClickedPoints () const
virtual bool hasPoints () const
bool isVisible () const
 returns true if this Geometry is visible
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
virtual QList< Point * > points ()=0
void setName (QString name)
 sets the name of the geometry
virtual void setPen (QPen *pen)
QString toString ()
 returns a String representation of this Geometry
virtual bool Touches (Point *geom, const MapAdapter *mapadapter)=0

Public Attributes

QString GeometryType

Protected Member Functions

void setParentGeometry (Geometry *geom)

Protected Attributes

QString myname
QPen * mypen
bool visible

Private Member Functions

 Geometry (const Geometry &old)
Geometryoperator= (const Geometry &rhs)

Private Attributes

GeometrymyparentGeometry

Friends

class LineString

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

Generated by  Doxygen 1.6.0   Back to index