| 
    QGIS API Documentation
    3.26.3-Buenos Aires (65e4edfdad)
    
   | 
 
 
 
 
Go to the documentation of this file.
   21 #include "qgis_core.h" 
   71     void clear() 
override;
 
   75     bool fromWkt( 
const QString &wkt ) 
override;
 
  107 #pragma clang diagnostic push 
  108 #pragma clang diagnostic ignored "-Woverloaded-virtual" 
  118 #pragma clang diagnostic pop 
  196     bool isIsocele( 
double lengthTolerance = 0.0001 ) 
const SIP_HOLDGIL;
 
  216     bool isEquilateral( 
double lengthTolerance = 0.0001 ) 
const SIP_HOLDGIL;
 
  236     bool isRight( 
double angleTolerance = 0.0001 ) 
const SIP_HOLDGIL;
 
  256     bool isScalene( 
double lengthTolerance = 0.0001 ) 
const SIP_HOLDGIL;
 
  273     QVector<QgsLineString> altitudes() 
const SIP_HOLDGIL;
 
  290     QVector<QgsLineString> medians() 
const SIP_HOLDGIL;
 
  308     QVector<QgsLineString> bisectors( 
double lengthTolerance = 0.0001 ) 
const SIP_HOLDGIL;
 
  469 #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.
 
void setInteriorRings(const QVector< QgsCurve * > &rings)
Sets all interior rings (takes ownership)
 
static const QgsTriangle * cast(const QgsAbstractGeometry *geom)
Cast the geom to a QgsTriangle.
 
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.
 
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.
 
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.
 
QgsPoint vertexAt(QgsVertexId id) const override
Returns the point corresponding to a specified vertex id.