QGIS/python/core/geometry/qgspolygon.sip

76 lines
2.3 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 *
************************************************************************/
class QgsPolygonV2: QgsCurvePolygon
2015-05-15 15:41:56 +02:00
{
2017-04-27 07:55:22 +02:00
%Docstring
Polygon geometry type.
.. 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:
QgsPolygonV2();
2017-04-27 07:55:22 +02:00
bool operator==( const QgsPolygonV2 &other ) const;
bool operator!=( const QgsPolygonV2 &other ) const;
%Docstring
:rtype: bool
%End
2015-05-15 15:41:56 +02:00
virtual QString geometryType() const;
2017-04-27 07:55:22 +02:00
virtual QgsPolygonV2 *clone() const /Factory/;
virtual void clear();
2015-05-15 15:41:56 +02:00
2017-04-27 07:55:22 +02:00
virtual bool fromWkb( QgsConstWkbPtr &wkb );
2016-01-28 10:30:06 +01:00
2015-05-15 15:41:56 +02:00
2017-04-27 07:55:22 +02:00
virtual QByteArray asWkb() const;
2015-05-15 15:41:56 +02:00
2017-04-27 07:55:22 +02:00
virtual QgsPolygonV2 *surfaceToPolygon() const /Factory/;
virtual QgsAbstractGeometry *toCurveType() const /Factory/;
2017-04-27 07:55:22 +02:00
%Docstring
Returns the geometry converted to the more generic curve type QgsCurvePolygon
:return: the converted geometry. Caller takes ownership*
:rtype: QgsAbstractGeometry
%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
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.
.. versionadded:: 3.0
:rtype: float
%End
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 *
************************************************************************/