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

183 lines
5.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/qgscompoundcurve.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsCompoundCurve: QgsCurve
2015-05-15 15:41:56 +02:00
{
2017-04-27 07:55:22 +02:00
%Docstring
Compound curve 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 "qgscompoundcurve.h"
%End
2015-05-15 15:41:56 +02:00
public:
2016-08-06 11:01:42 +02:00
QgsCompoundCurve();
2017-04-27 07:55:22 +02:00
QgsCompoundCurve( const QgsCompoundCurve &curve );
2016-08-06 11:01:42 +02:00
~QgsCompoundCurve();
2015-05-15 15:41:56 +02:00
virtual bool equals( const QgsCurve &other ) const;
2015-05-15 15:41:56 +02:00
virtual QString geometryType() const;
2015-05-15 15:41:56 +02:00
virtual int dimension() const;
2017-04-27 07:55:22 +02:00
virtual QgsCompoundCurve *clone() const /Factory/;
2015-05-15 15:41:56 +02:00
virtual void clear();
2017-04-27 07:55:22 +02:00
virtual bool fromWkb( QgsConstWkbPtr &wkb );
2017-04-27 07:55:22 +02:00
virtual bool fromWkt( const QString &wkt );
2017-04-27 07:55:22 +02:00
virtual QByteArray asWkb() const;
virtual QString asWkt( int precision = 17 ) const;
virtual QDomElement asGml2( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const;
2017-04-27 07:55:22 +02:00
virtual QDomElement asGml3( QDomDocument &doc, int precision = 17, const QString &ns = "gml", QgsAbstractGeometry::AxisOrder axisOrder = QgsAbstractGeometry::AxisOrder::XY ) const;
2017-04-27 07:55:22 +02:00
virtual QString asJson( int precision = 17 ) const;
2015-05-15 15:41:56 +02:00
virtual double length() const;
virtual QgsPoint startPoint() const;
virtual QgsPoint endPoint() const;
2017-04-27 07:55:22 +02:00
virtual void points( QgsPointSequence &pts /Out/ ) const;
2015-05-15 15:41:56 +02:00
virtual int numPoints() const;
2017-04-27 07:55:22 +02:00
virtual bool isEmpty() const;
2016-01-28 10:30:06 +01:00
2017-04-27 07:55:22 +02:00
virtual QgsLineString *curveToLine( double tolerance = M_PI_2 / 90, SegmentationToleranceType toleranceType = MaximumAngle ) const /Factory/;
2017-04-27 07:55:22 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns a new line string geometry corresponding to a segmentized approximation
of the curve.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param tolerance: segmentation tolerance
:param toleranceType: maximum segmentation angle or maximum difference between approximation and curve*
2017-04-27 07:55:22 +02:00
%End
virtual QgsCompoundCurve *snappedToGrid( double hSpacing, double vSpacing, double dSpacing = 0, double mSpacing = 0 ) const /Factory/;
virtual bool removeDuplicateNodes( double epsilon = 4 * DBL_EPSILON, bool useZValues = false );
2015-05-15 15:41:56 +02:00
int nCurves() const;
2017-04-27 07:55:22 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the number of curves in the geometry.
2017-04-27 07:55:22 +02:00
%End
2016-01-28 10:30:06 +01:00
2017-04-27 07:55:22 +02:00
const QgsCurve *curveAt( int i ) const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the curve at the specified index.
2017-04-27 07:55:22 +02:00
%End
2015-05-15 15:41:56 +02:00
2017-04-27 07:55:22 +02:00
void addCurve( QgsCurve *c /Transfer/ );
%Docstring
2017-12-15 10:36:55 -04:00
Adds a curve to the geometry (takes ownership)
2017-04-27 07:55:22 +02:00
%End
2016-01-28 10:30:06 +01:00
2015-05-15 15:41:56 +02:00
void removeCurve( int i );
2017-04-27 07:55:22 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Removes a curve from the geometry.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param i: index of curve to remove
2017-04-27 07:55:22 +02:00
%End
2016-01-28 10:30:06 +01:00
void addVertex( const QgsPoint &pt );
2017-04-27 07:55:22 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Adds a vertex to the end of the geometry.
2017-04-27 07:55:22 +02:00
%End
2015-05-15 15:41:56 +02:00
2017-04-27 07:55:22 +02:00
virtual void draw( QPainter &p ) const;
virtual void transform( const QgsCoordinateTransform &ct, QgsCoordinateTransform::TransformDirection d = QgsCoordinateTransform::ForwardTransform,
bool transformZ = false );
virtual void transform( const QTransform &t, double zTranslate = 0.0, double zScale = 1.0, double mTranslate = 0.0, double mScale = 1.0 );
2017-04-27 07:55:22 +02:00
virtual void addToPainterPath( QPainterPath &path ) const;
2015-05-15 15:41:56 +02:00
2017-04-27 07:55:22 +02:00
virtual void drawAsPolygon( QPainter &p ) const;
virtual bool insertVertex( QgsVertexId position, const QgsPoint &vertex );
virtual bool moveVertex( QgsVertexId position, const QgsPoint &newPos );
virtual bool deleteVertex( QgsVertexId position );
2015-05-15 15:41:56 +02:00
virtual double closestSegment( const QgsPoint &pt, QgsPoint &segmentPt /Out/, QgsVertexId &vertexAfter /Out/, int *leftOf /Out/ = 0, double epsilon = 4 * DBL_EPSILON ) const;
2017-04-27 07:55:22 +02:00
virtual bool pointAt( int node, QgsPoint &point, QgsVertexId::VertexType &type ) const;
2017-04-27 07:55:22 +02:00
virtual void sumUpArea( double &sum /Out/ ) const;
2015-05-15 15:41:56 +02:00
2015-05-29 17:59:52 +02:00
2016-01-28 10:30:06 +01:00
void close();
2017-04-27 07:55:22 +02:00
%Docstring
Appends first point if not already closed.
%End
virtual bool hasCurvedSegments() const;
virtual double vertexAngle( QgsVertexId vertex ) const;
virtual double segmentLength( QgsVertexId startVertex ) const;
2017-04-27 07:55:22 +02:00
virtual QgsCompoundCurve *reversed() const /Factory/;
virtual bool addZValue( double zValue = 0 );
virtual bool addMValue( double mValue = 0 );
virtual bool dropZValue();
virtual bool dropMValue();
virtual void swapXy();
virtual double xAt( int index ) const;
2017-04-27 07:55:22 +02:00
virtual double yAt( int index ) const;
2017-04-27 07:55:22 +02:00
virtual QgsCompoundCurve *createEmptyWithSameType() const /Factory/;
protected:
virtual QgsRectangle calculateBoundingBox() const;
2015-05-15 15:41:56 +02:00
};
2017-04-27 07:55:22 +02:00
2017-09-25 14:20:39 +10:00
2017-04-27 07:55:22 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/geometry/qgscompoundcurve.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/