44 coord.append( ptsList );
69 return pointAt(
id.vertex, vertex,
id.type );
virtual void points(QList< QgsPointV2 > &pt) const =0
Returns a list of points within the curve.
virtual bool isRing() const
Returns true if the curve is a ring.
Abstract base class for all geometries.
virtual void coordinateSequence(QList< QList< QList< QgsPointV2 > > > &coord) const override
Retrieves the sequence of geometries, rings and nodes.
virtual int numPoints() const =0
Returns the number of points in the curve.
void append(const T &value)
virtual bool pointAt(int i, QgsPointV2 &vertex, QgsVertexId::VertexType &type) const =0
Returns the point and vertex id of a point within the curve.
Utility class for identifying a unique vertex within a geometry.
virtual bool nextVertex(QgsVertexId &id, QgsPointV2 &vertex) const override
Returns next vertex id and coordinates.
virtual void sumUpArea(double &sum) const =0
Calculates the area of the curve.
virtual QgsLineStringV2 * curveToLine() const =0
Returns a new line string geometry corresponding to a segmentized approximation of the curve...
virtual QgsPointV2 endPoint() const =0
Returns the end point of the curve.
virtual double area() const override
Returns the area of the geometry.
virtual bool isClosed() const
Returns true if the curve is closed.
QgsAbstractGeometryV2 * segmentize() const override
Returns a version of the geometry without curves.
virtual QgsPointV2 startPoint() const =0
Returns the starting point of the curve.