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

qmapcontrol::Curve Class Reference

#include <curve.h>

Inheritance diagram for qmapcontrol::Curve:

qmapcontrol::Geometry qmapcontrol::LineString

List of all members.

Detailed Description

A Curve Geometry, implemented to fullfil OGC Spec.

The Curve class is used by LineString as parent class. This class could not be used directly.

From the OGC Candidate Implementation Specification: "A Curve is a 1-dimensional geometric object usually stored as a sequence of Points, with the subtype of Curve specifying the form of the interpolation between Points. This specification defines only one subclass of Curve, LineString, which uses a linear interpolation between Points."

Kai Winter <kaiwinter@gmx.de>

Definition at line 45 of file curve.h.

Public Slots

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

virtual QRectF boundingBox ()=0
 returns the BoundingBox
virtual QList< Geometry * > clickedPoints ()
bool Equals (Geometry *geom)
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
double Length

Protected Member Functions

 Curve (QString name=QString())
virtual void draw (QPainter *painter, const MapAdapter *mapadapter, const QRect &screensize, const QPoint offset)=0
void setParentGeometry (Geometry *geom)

Protected Attributes

QString myname
QPen * mypen
bool visible

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

Generated by  Doxygen 1.6.0   Back to index