QGIS/python/core/auto_generated/geometry/qgspolygon.sip.in

79 lines
2.2 KiB
Plaintext
Raw Normal View History

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-05-15 15:41:56 +02:00
virtual QString geometryType() const;
2017-10-29 12:08:07 +01:00
virtual QgsPolygon *clone() const /Factory/;
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
virtual QgsCurvePolygon *toCurveType() const /Factory/;
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-04-27 07:55:22 +02:00
virtual QgsAbstractGeometry *boundary() const /Factory/;
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-29 12:08:07 +01:00
virtual QgsPolygon *createEmptyWithSameType() const /Factory/;
protected:
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 *
************************************************************************/