Subversion Repositories Projects


Blame | Last modification | View Log | RSS feed

* This file is part of QMapControl,
* an open-source cross-platform map widget
* Copyright (C) 2007 - 2008 Kai Winter
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License
* along with QMapControl. If not, see <>.
* Contact e-mail:
* Program URL   :

#ifndef CURVE_H
#define CURVE_H

#include "geometry.h"
#include "point.h"

namespace qmapcontrol
    //! 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 <>

    class Curve : public Geometry
        virtual ~Curve();

        double Length;

        //  virtual Geometry Clone();
        //  virtual QRectF GetBoundingBox();

        //  virtual Point EndPoint() = 0;
        //  virtual Point StartPoint() = 0;
        //  virtual Point Value() = 0;

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