|
| QgsRegularPolygon () SIP_HOLDGIL=default |
| Constructor for QgsRegularPolygon. More...
|
|
| QgsRegularPolygon (const QgsPoint ¢er, const QgsPoint &pt1, unsigned int numberSides, ConstructionOption circle) SIP_HOLDGIL |
| Constructs a regular polygon by center and another point. More...
|
|
| QgsRegularPolygon (const QgsPoint ¢er, double radius, double azimuth, unsigned int numberSides, ConstructionOption circle) SIP_HOLDGIL |
| Constructs a regular polygon by center and parameters for the first vertex. More...
|
|
| QgsRegularPolygon (const QgsPoint &pt1, const QgsPoint &pt2, unsigned int numberSides) SIP_HOLDGIL |
| Constructs a regular polygon by two points of the first side. More...
|
|
double | apothem () const SIP_HOLDGIL |
| Returns the apothem of the regular polygon. More...
|
|
double | area () const SIP_HOLDGIL |
| Returns the area. More...
|
|
QgsPoint | center () const SIP_HOLDGIL |
| Returns the center point of the regular polygon. More...
|
|
double | centralAngle () const SIP_HOLDGIL |
| Returns the measure of the central angle (the angle subtended at the center of the polygon by one of its sides) in degrees. More...
|
|
QgsCircle | circumscribedCircle () const SIP_HOLDGIL |
| Returns the circumscribed circle. More...
|
|
QgsPoint | firstVertex () const SIP_HOLDGIL |
| Returns the first vertex (corner) of the regular polygon. More...
|
|
QgsCircle | inscribedCircle () const SIP_HOLDGIL |
| Returns the inscribed circle. More...
|
|
double | interiorAngle () const SIP_HOLDGIL |
| Returns the measure of the interior angles in degrees. More...
|
|
bool | isEmpty () const SIP_HOLDGIL |
| A regular polygon is empty if radius equal to 0 or number of sides < 3. More...
|
|
double | length () const SIP_HOLDGIL |
| Returns the length of a side. More...
|
|
unsigned int | numberSides () const SIP_HOLDGIL |
| Returns the number of sides of the regular polygon. More...
|
|
bool | operator!= (const QgsRegularPolygon &rp) const SIP_HOLDGIL |
|
bool | operator== (const QgsRegularPolygon &rp) const SIP_HOLDGIL |
|
double | perimeter () const SIP_HOLDGIL |
| Returns the perimeter. More...
|
|
QgsPointSequence | points () const |
| Returns a list including the vertices of the regular polygon. More...
|
|
double | radius () const SIP_HOLDGIL |
| Returns the radius. More...
|
|
void | setCenter (const QgsPoint ¢er) SIP_HOLDGIL |
| Sets the center point. More...
|
|
void | setFirstVertex (const QgsPoint &firstVertex) SIP_HOLDGIL |
| Sets the first vertex. More...
|
|
void | setNumberSides (unsigned int numberSides) SIP_HOLDGIL |
| Sets the number of sides. More...
|
|
void | setRadius (double radius) SIP_HOLDGIL |
| Sets the radius. More...
|
|
QgsLineString * | toLineString () const |
| Returns as a linestring. More...
|
|
QgsPolygon * | toPolygon () const |
| Returns as a polygon. More...
|
|
QString | toString (int pointPrecision=17, int radiusPrecision=17, int anglePrecision=2) const |
| Returns a string representation of the regular polygon. More...
|
|
QgsTriangle | toTriangle () const |
| Returns as a triangle. More...
|
|
QVector< QgsTriangle > | triangulate () const |
| Returns a triangulation (vertices from sides to the center) of the regular polygon. More...
|
|