QMapControl  0.9.7.4
Public Slots | Signals | Public Member Functions | List of all members
Curve Class Referenceabstract

A Curve Geometry, implemented to fullfil OGC Spec. More...

#include <curve.h>

Inheritance diagram for Curve:
Geometry QObject LineString

Public Slots

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

Signals

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

Public Member Functions

virtual QRectF boundingBox ()=0
 returns the BoundingBox More...
 
bool Equals (Geometry *geom)
 
bool isVisible () const
 returns true if this Geometry is visible More...
 
QString name () const
 returns the name of this Geometry More...
 
GeometryparentGeometry () const
 returns the parent Geometry of this Geometry More...
 
QPen * pen () const
 returns the QPen which is used on drawing More...
 
void setName (QString name)
 sets the name of the geometry More...
 
QString toString ()
 returns a String representation of this Geometry More...
 

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."

Author
Kai Winter kaiwi.nosp@m.nter.nosp@m.@gmx..nosp@m.de

Member Function Documentation

virtual QRectF boundingBox ( )
pure virtualinherited

returns the BoundingBox

The bounding box in world coordinates

Returns
the BoundingBox

Implemented in Point, and LineString.

Referenced by Layer::addGeometry(), MapControl::isGeometryVisible(), Layer::removeGeometry(), and Geometry::setVisible().

bool Equals ( Geometry geom)
inherited

returns true if the given Geometry is equal to this Geometry not implemented yet!

Parameters
geomThe Geometry to be tested
Returns
true if the given Geometry is equal to this
void geometryClicked ( Geometry geometry,
QPoint  point 
)
signalinherited

This signal is emitted when a Geometry is clicked.

A Geometry is clickable, if the containing layer is clickable. The objects emits a signal if it gets clicked

Parameters
geometryThe clicked Geometry
point-unused-

Referenced by Point::Touches().

bool isVisible ( ) const
inherited

returns true if this Geometry is visible

Returns
true if this Geometry is visible

Referenced by Point::Touches().

QString name ( ) const
inherited

returns the name of this Geometry

Returns
the name of this Geometry

Referenced by Geometry::setName().

Geometry * parentGeometry ( ) const
inherited

returns the parent Geometry of this Geometry

A LineString is a composition of many Points. This methods returns the parent (the LineString) of a Point

Returns
the parent Geometry of this Geometry
QPen * pen ( ) const
inherited

returns the QPen which is used on drawing

The pen is set depending on the Geometry. A CirclePoint for example takes one with the constructor.

Returns
the QPen which is used for drawing

Referenced by ArrowPoint::ArrowPoint(), CirclePoint::CirclePoint(), LineString::LineString(), ArrowPoint::setPen(), and CirclePoint::setPen().

void positionChanged ( Geometry geom)
signalinherited

A Geometry emits this signal, when its position gets changed.

Parameters
geomthe Geometry
void setName ( QString  name)
inherited

sets the name of the geometry

Parameters
namethe new name of the geometry

References Geometry::name().

void setVisible ( bool  visible)
virtualslotinherited

if visible is true, the layer is made visible

Parameters
visibleif the layer should be visible

References Geometry::boundingBox().

QString toString ( )
inherited

returns a String representation of this Geometry

not implemented yet!

Returns
a String representation of this Geometry

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