21 #include "qgis_core.h" 60 explicit QgsTriangle( QPointF p1, QPointF p2, QPointF p3 );
67 void clear()
override;
71 bool fromWkt(
const QString &wkt )
override;
75 QDomElement
asGml3( QDomDocument &doc,
int precision = 17,
const QString &ns =
"gml",
QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY )
const override;
121 QVector<double> lengths()
const;
136 QVector<double> angles()
const;
175 bool isIsocele(
double lengthTolerance = 0.0001 )
const;
193 bool isEquilateral(
double lengthTolerance = 0.0001 )
const;
211 bool isRight(
double angleTolerance = 0.0001 )
const;
229 bool isScalene(
double lengthTolerance = 0.0001 )
const;
244 QVector<QgsLineString> altitudes()
const;
259 QVector<QgsLineString> medians()
const;
275 QVector<QgsLineString> bisectors(
double lengthTolerance = 0.0001 )
const;
306 QgsPoint orthocenter(
double lengthTolerance = 0.0001 )
const;
321 QgsPoint circumscribedCenter()
const;
336 double circumscribedRadius()
const;
382 double inscribedRadius()
const;
420 #endif // QGSTRIANGLE_H
bool operator==(const QgsAbstractGeometry &other) const override
QgsPolygon * surfaceToPolygon() const override
Gets a polygon representation of this surface.
A class to represent a 2D point.
Curve polygon geometry type.
QgsAbstractGeometry * boundary() const override
Returns the closure of the combinatorial boundary of the geometry (ie the topological boundary of the...
void addInteriorRing(QgsCurve *ring) override
Adds an interior ring to the geometry (takes ownership)
void clear() override
Clears the geometry, ie reset it to a null geometry.
Utility class for identifying a unique vertex within a geometry.
bool insertVertex(QgsVertexId position, const QgsPoint &vertex) override
Inserts a vertex into the geometry.
QgsPoint vertexAt(QgsVertexId id) const override
Returns the point corresponding to a specified vertex id.
bool fromWkb(QgsConstWkbPtr &wkb) override
Sets the geometry from a WKB string.
QgsCurvePolygon * toCurveType() const override
Returns the geometry converted to the more generic curve type QgsCurvePolygon.
bool fromWkt(const QString &wkt) override
Sets the geometry from a WKT string.
Abstract base class for curved geometry type.
QString geometryType() const override
Returns a unique string representing the geometry type.
Abstract base class for all geometries.
QgsPolygon * createEmptyWithSameType() const override
Creates a new geometry with the same class and same WKB type as the original and transfers ownership...
QgsWkbTypes::Type wkbType() const
Returns the WKB type of the geometry.
Point geometry type, with support for z-dimension and m-values.
AxisOrder
Axis order for GML generation.
bool operator!=(const QgsAbstractGeometry &other) const override
const QgsTriangle * cast(const QgsAbstractGeometry *geom) const
Cast the geom to a QgsTriangle.
void setExteriorRing(QgsCurve *ring) override
Sets the exterior ring of the polygon.
bool moveVertex(QgsVertexId position, const QgsPoint &newPos) override
Moves a vertex within the geometry.
bool deleteVertex(QgsVertexId position) override
Deletes a vertex within the geometry.
QgsPolygon * clone() const override
Clones the geometry by performing a deep copy.
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.
void setInteriorRings(const QVector< QgsCurve *> &rings)
Sets all interior rings (takes ownership)
static Type flatType(Type type)
Returns the flat type for a WKB type.