2017-04-27 07:55:22 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/geometry/qgspolygon.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-29 12:49:09 +01:00
|
|
|
class QgsPolygon: QgsCurvePolygon
|
2015-05-15 15:41:56 +02:00
|
|
|
{
|
2017-04-27 07:55:22 +02:00
|
|
|
%Docstring
|
|
|
|
Polygon geometry type.
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-04-27 07:55:22 +02:00
|
|
|
.. versionadded:: 2.10
|
2015-05-15 15:41:56 +02:00
|
|
|
%End
|
|
|
|
|
2017-04-27 07:55:22 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgspolygon.h"
|
|
|
|
%End
|
2015-05-15 15:41:56 +02:00
|
|
|
public:
|
2017-10-29 12:08:07 +01:00
|
|
|
QgsPolygon();
|
2015-12-11 18:37:52 +11:00
|
|
|
|
2015-05-15 15:41:56 +02:00
|
|
|
virtual QString geometryType() const;
|
2017-10-27 14:29:31 +10:00
|
|
|
|
2017-10-29 12:08:07 +01:00
|
|
|
virtual QgsPolygon *clone() const /Factory/;
|
2017-09-19 13:53:56 +10:00
|
|
|
|
2017-04-27 07:55:22 +02:00
|
|
|
virtual void clear();
|
|
|
|
|
|
|
|
virtual bool fromWkb( QgsConstWkbPtr &wkb );
|
2016-01-28 10:30:06 +01:00
|
|
|
|
2017-04-27 07:55:22 +02:00
|
|
|
virtual QByteArray asWkb() const;
|
2015-05-15 15:41:56 +02:00
|
|
|
|
2017-10-29 12:08:07 +01:00
|
|
|
virtual QgsPolygon *surfaceToPolygon() const /Factory/;
|
2017-04-27 07:55:22 +02:00
|
|
|
|
|
|
|
|
2017-09-18 13:33:25 +10:00
|
|
|
virtual QgsCurvePolygon *toCurveType() const /Factory/;
|
2015-12-11 18:37:52 +11:00
|
|
|
|
2017-04-27 07:55:22 +02:00
|
|
|
%Docstring
|
2017-12-19 11:43:52 -04:00
|
|
|
Returns the geometry converted to the more generic curve type :py:class:`QgsCurvePolygon`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-04-27 07:55:22 +02:00
|
|
|
:return: the converted geometry. Caller takes ownership*
|
|
|
|
%End
|
|
|
|
|
|
|
|
virtual void addInteriorRing( QgsCurve *ring /Transfer/ );
|
2016-04-29 11:53:34 +02:00
|
|
|
|
2017-04-27 07:55:22 +02:00
|
|
|
virtual void setExteriorRing( QgsCurve *ring /Transfer/ );
|
2016-01-28 10:30:06 +01:00
|
|
|
|
2017-09-19 13:53:56 +10:00
|
|
|
|
2017-04-27 07:55:22 +02:00
|
|
|
virtual QgsAbstractGeometry *boundary() const /Factory/;
|
2016-11-10 15:58:18 +10:00
|
|
|
|
2017-09-19 13:53:56 +10:00
|
|
|
|
2016-11-10 15:58:18 +10:00
|
|
|
double pointDistanceToBoundary( double x, double y ) const;
|
2017-04-27 07:55:22 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the distance from a point to the boundary of the polygon (either the
|
|
|
|
exterior ring or any closer interior rings). The returned distance will be
|
|
|
|
negative if the point lies outside the polygon.
|
|
|
|
|
2017-04-27 07:55:22 +02:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
2017-10-27 14:29:31 +10:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2017-10-29 12:08:07 +01:00
|
|
|
virtual QgsPolygon *createEmptyWithSameType() const /Factory/;
|
2017-10-27 14:29:31 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
2015-05-15 15:41:56 +02:00
|
|
|
};
|
2017-04-27 07:55:22 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/geometry/qgspolygon.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|