29using namespace Qt::StringLiterals;
111 virtual
bool operator ==( const
QgsEllipse &elp ) const;
112 virtual
bool operator !=( const
QgsEllipse &elp ) const;
162 virtual void setSemiMajorAxis(
double semiMajorAxis )
SIP_HOLDGIL;
168 virtual void setSemiMinorAxis(
double semiMinorAxis )
SIP_HOLDGIL;
190 virtual QVector<
QgsPoint> foci() const;
207 virtual QVector<
QgsPoint> quadrant() const;
242 virtual QString toString(
int pointPrecision = 17,
int axisPrecision = 17,
int azimuthPrecision = 2 ) const;
245 SIP_PYOBJECT __repr__();
247 QString str = u
"<QgsEllipse: %1>"_s.arg( sipCpp->toString() );
248 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
260 void normalizeAxis();
262 void pointsInternal(
unsigned int segments, QVector< double> &x, QVector< double> &y, QVector<double> &z, QVector< double> &m )
const;
QgsPoint & rcenter()
Returns a reference to the center point of this ellipse.
QgsPoint center() const
Returns the center point.
double semiMajorAxis() const
Returns the semi-major axis.
static QgsEllipse fromCenterPoint(const QgsPoint &ptc, const QgsPoint &pt1)
Constructs an ellipse by a center point and a another point.
void setCenter(const QgsPoint ¢er)
Sets the center point.
double azimuth() const
Returns the azimuth.
QgsEllipse()=default
Constructor for QgsEllipse.
static QgsEllipse fromExtent(const QgsPoint &pt1, const QgsPoint &pt2)
Constructs an ellipse by an extent (aka bounding box / QgsRectangle).
virtual bool isEmpty() const
An ellipse is empty if axes are equal to 0.
static QgsEllipse fromFoci(const QgsPoint &pt1, const QgsPoint &pt2, const QgsPoint &pt3)
Constructs an ellipse by foci (pt1 and pt2) and a point pt3.
double semiMinorAxis() const
Returns the semi-minor axis.
static QgsEllipse fromCenter2Points(const QgsPoint &ptc, const QgsPoint &pt1, const QgsPoint &pt2)
Constructs an ellipse by a central point and two other points.
Line string geometry type, with support for z-dimension and m-values.
Point geometry type, with support for z-dimension and m-values.
A rectangle specified with double values.
QVector< QgsPoint > QgsPointSequence