23 #include "qgis_core.h" 58 QgsEllipse(
const QgsPoint ¢er,
const double semiMajorAxis,
const double semiMinorAxis,
const double azimuth = 90 );
114 virtual bool isEmpty()
const;
161 virtual void setSemiMajorAxis(
const double semiMajorAxis );
167 virtual void setSemiMinorAxis(
const double semiMinorAxis );
173 void setAzimuth(
const double azimuth );
181 virtual double focusDistance()
const;
189 virtual QVector<QgsPoint> foci()
const;
195 virtual double eccentricity()
const;
197 virtual double area()
const;
199 virtual double perimeter()
const;
206 virtual QVector<QgsPoint> quadrant()
const;
241 virtual QString toString(
int pointPrecision = 17,
int axisPrecision = 17,
int azimuthPrecision = 2 )
const;
245 double mSemiMajorAxis = 0.0;
246 double mSemiMinorAxis = 0.0;
247 double mAzimuth = 90.0;
251 void normalizeAxis();
254 #endif // QGSELLIPSE_H A rectangle specified with double values.
double semiMinorAxis() const
Returns the semi-minor axis.
QgsPoint & rcenter()
Returns a reference to the center point of this ellipse.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
double semiMajorAxis() const
Returns the semi-major axis.
QgsPoint center() const
Returns the center point.
void setCenter(const QgsPoint ¢er)
Sets the center point.
double azimuth() const
Returns the azimuth.
Point geometry type, with support for z-dimension and m-values.
QVector< QgsPoint > QgsPointSequence
Line string geometry type, with support for z-dimension and m-values.