QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
21 #include "qgis_core.h"
71 void clear()
override;
75 bool fromWkt(
const QString &wkt )
override;
187 bool isIsocele(
double lengthTolerance = 0.0001 ) const
SIP_HOLDGIL;
207 bool isEquilateral(
double lengthTolerance = 0.0001 ) const
SIP_HOLDGIL;
227 bool isRight(
double angleTolerance = 0.0001 ) const
SIP_HOLDGIL;
247 bool isScalene(
double lengthTolerance = 0.0001 ) const
SIP_HOLDGIL;
460 #endif // QGSTRIANGLE_H
Abstract base class for curved geometry type.
void clear() override
Clears the geometry, ie reset it to a null geometry.
bool fromWkb(QgsConstWkbPtr &wkb) override
Sets the geometry from a WKB string.
Point geometry type, with support for z-dimension and m-values.
QgsPolygon * clone() const override
Clones the geometry by performing a deep copy.
static Type flatType(Type type) SIP_HOLDGIL
Returns the flat type for a WKB type.
Curve polygon geometry type.
void setExteriorRing(QgsCurve *ring) override
Sets the exterior ring of the polygon.
QgsCurvePolygon * toCurveType() const override
Returns the geometry converted to the more generic curve type QgsCurvePolygon.
bool deleteVertex(QgsVertexId position) override
Deletes a vertex within the geometry.
Line string geometry type, with support for z-dimension and m-values.
bool insertVertex(QgsVertexId position, const QgsPoint &vertex) override
Inserts a vertex into the geometry.
QgsWkbTypes::Type wkbType() const SIP_HOLDGIL
Returns the WKB type of the geometry.
AxisOrder
Axis order for GML generation.
bool operator!=(const QgsAbstractGeometry &other) const override
bool operator==(const QgsAbstractGeometry &other) const override
bool moveVertex(QgsVertexId position, const QgsPoint &newPos) override
Moves a vertex within the geometry.
Abstract base class for all geometries.
A class to represent a 2D point.
bool fromWkt(const QString &wkt) override
Sets the geometry from a WKT string.
const QgsTriangle * cast(const QgsAbstractGeometry *geom) const
Cast the geom to a QgsTriangle.
QDomElement asGml3(QDomDocument &doc, int precision=17, const QString &ns="gml", QgsAbstractGeometry::AxisOrder axisOrder=QgsAbstractGeometry::AxisOrder::XY) const override
Returns a GML3 representation of the geometry.
QgsPolygon * surfaceToPolygon() const override
Gets a polygon representation of this surface.
Utility class for identifying a unique vertex within a geometry.
void setInteriorRings(const QVector< QgsCurve * > &rings)=delete
Inherited method not used.
QgsPolygon * createEmptyWithSameType() const override
Creates a new geometry with the same class and same WKB type as the original and transfers ownership.
void addInteriorRing(QgsCurve *ring) override
Adds an interior ring to the geometry (takes ownership)
QgsAbstractGeometry * boundary() const override
Returns the closure of the combinatorial boundary of the geometry (ie the topological boundary of the...
QString geometryType() const override SIP_HOLDGIL
Returns a unique string representing the geometry type.