55 virtual bool isClosed()
const;
59 virtual bool isRing()
const;
69 virtual void addToPainterPath(
QPainterPath& path )
const = 0;
74 virtual void drawAsPolygon(
QPainter& p )
const = 0;
82 virtual int numPoints()
const = 0;
86 virtual void sumUpArea(
double& sum )
const = 0;
111 virtual int vertexCount(
int part = 0,
int ring = 0 )
const override { Q_UNUSED( part ); Q_UNUSED( ring );
return numPoints(); }
112 virtual int ringCount(
int part = 0 )
const override { Q_UNUSED( part );
return numPoints() > 0 ? 1 : 0; }
113 virtual int partCount()
const override {
return numPoints() > 0 ? 1 : 0; }
128 #endif // QGSCURVEV2_H A rectangle specified with double values.
virtual int partCount() const override
Returns count of parts contained in the geometry.
virtual QgsCoordinateSequenceV2 coordinateSequence() const =0
Retrieves the sequence of geometries, rings and nodes.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
static QVariant pointAt(const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent)
SegmentationToleranceType
Segmentation tolerance as maximum angle or maximum difference between approximation and circle...
Abstract base class for all geometries.
virtual void clearCache() const
Clears any cached parameters associated with the geometry, eg bounding boxes.
virtual int ringCount(int part=0) const override
virtual void clearCache() const override
Clears any cached parameters associated with the geometry, eg bounding boxes.
Utility class for identifying a unique vertex within a geometry.
Line string geometry type, with support for z-dimension and m-values.
Point geometry type, with support for z-dimension and m-values.
virtual QgsAbstractGeometryV2 * segmentize(double tolerance=M_PI/180., SegmentationToleranceType toleranceType=MaximumAngle) const
Returns a version of the geometry without curves.
virtual bool nextVertex(QgsVertexId &id, QgsPointV2 &vertex) const =0
Returns next vertex id and coordinates.
virtual QgsAbstractGeometryV2 * boundary() const =0
Returns the closure of the combinatorial boundary of the geometry (ie the topological boundary of the...
virtual QgsRectangle boundingBox() const =0
Returns the minimal bounding box for the geometry.
virtual QgsAbstractGeometryV2 * clone() const =0
Clones the geometry by performing a deep copy.
Abstract base class for curved geometry type.
virtual int vertexCount(int part=0, int ring=0) const override
virtual QgsPointV2 vertexAt(QgsVertexId id) const =0
Returns the point corresponding to a specified vertex id.