Skip to content

Commit 5984b21

Browse files
committed
Add missing /Factory/ annotations to geometry classes
1 parent bef0309 commit 5984b21

13 files changed

+19
-19
lines changed

python/core/geometry/qgsabstractgeometry.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class QgsAbstractGeometry
8585

8686
/** Clones the geometry by performing a deep copy
8787
*/
88-
virtual QgsAbstractGeometry* clone() const = 0;
88+
virtual QgsAbstractGeometry* clone() const = 0 /Factory/;
8989

9090
/** Clears the geometry, ie reset it to a null geometry
9191
*/

python/core/geometry/qgscircularstring.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class QgsCircularString: public QgsCurve
1313

1414
virtual QString geometryType() const;
1515
virtual int dimension() const;
16-
virtual QgsCircularString* clone() const;
16+
virtual QgsCircularString* clone() const /Factory/;
1717
virtual void clear();
1818

1919
virtual bool fromWkb( QgsConstWkbPtr wkb );
@@ -58,7 +58,7 @@ class QgsCircularString: public QgsCurve
5858
* of the curve.
5959
* @param tolerance segmentation tolerance
6060
* @param toleranceType maximum segmentation angle or maximum difference between approximation and curve*/
61-
virtual QgsLineString* curveToLine( double tolerance = M_PI_2 / 90, SegmentationToleranceType toleranceType = MaximumAngle ) const;
61+
virtual QgsLineString* curveToLine( double tolerance = M_PI_2 / 90, SegmentationToleranceType toleranceType = MaximumAngle ) const /Factory/;
6262

6363
void draw( QPainter& p ) const;
6464
void transform( const QgsCoordinateTransform& ct, QgsCoordinateTransform::TransformDirection d = QgsCoordinateTransform::ForwardTransform,

python/core/geometry/qgscompoundcurve.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class QgsCompoundCurve: public QgsCurve
1515

1616
virtual QString geometryType() const;
1717
virtual int dimension() const;
18-
virtual QgsCompoundCurve* clone() const;
18+
virtual QgsCompoundCurve* clone() const /Factory/;
1919
virtual void clear();
2020

2121
virtual bool fromWkb( QgsConstWkbPtr wkb );
@@ -38,7 +38,7 @@ class QgsCompoundCurve: public QgsCurve
3838
* of the curve.
3939
* @param tolerance segmentation tolerance
4040
* @param toleranceType maximum segmentation angle or maximum difference between approximation and curve*/
41-
virtual QgsLineString* curveToLine( double tolerance = M_PI_2 / 90, SegmentationToleranceType toleranceType = MaximumAngle ) const;
41+
virtual QgsLineString* curveToLine( double tolerance = M_PI_2 / 90, SegmentationToleranceType toleranceType = MaximumAngle ) const /Factory/;
4242

4343
/** Returns the number of curves in the geometry.
4444
*/

python/core/geometry/qgscurve.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class QgsCurve: public QgsAbstractGeometry
1010
virtual bool operator==( const QgsCurve& other ) const = 0;
1111
virtual bool operator!=( const QgsCurve& other ) const = 0;
1212

13-
virtual QgsCurve* clone() const = 0;
13+
virtual QgsCurve* clone() const = 0 /Factory/;
1414

1515
/** Returns the starting point of the curve.
1616
* @see endPoint
@@ -35,7 +35,7 @@ class QgsCurve: public QgsAbstractGeometry
3535
* @param tolerance segmentation tolerance
3636
* @param toleranceType maximum segmentation angle or maximum difference between approximation and curve
3737
*/
38-
virtual QgsLineString* curveToLine( double tolerance = M_PI_2 / 90, SegmentationToleranceType toleranceType = MaximumAngle ) const = 0;
38+
virtual QgsLineString* curveToLine( double tolerance = M_PI_2 / 90, SegmentationToleranceType toleranceType = MaximumAngle ) const = 0 /Factory/;
3939

4040
/** Adds a curve to a painter path.
4141
*/

python/core/geometry/qgscurvepolygon.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class QgsCurvePolygon: public QgsSurface
1212

1313
virtual QString geometryType() const;
1414
virtual int dimension() const;
15-
virtual QgsCurvePolygon* clone() const;
15+
virtual QgsCurvePolygon* clone() const /Factory/;
1616
void clear();
1717

1818
virtual bool fromWkb( QgsConstWkbPtr wkb );
@@ -28,7 +28,7 @@ class QgsCurvePolygon: public QgsSurface
2828
//surface interface
2929
virtual double area() const;
3030
virtual double perimeter() const;
31-
QgsPolygonV2* surfaceToPolygon() const;
31+
QgsPolygonV2* surfaceToPolygon() const /Factory/;
3232
virtual QgsAbstractGeometry* boundary() const /Factory/;
3333

3434

python/core/geometry/qgsgeometrycollection.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class QgsGeometryCollection: public QgsAbstractGeometry
1010
//QgsGeometryCollection& operator=( const QgsGeometryCollection& c );
1111
virtual ~QgsGeometryCollection();
1212

13-
virtual QgsGeometryCollection* clone() const;
13+
virtual QgsGeometryCollection* clone() const /Factory/;
1414

1515
/** Returns the number of geometries within the collection.
1616
*/
@@ -85,7 +85,7 @@ class QgsGeometryCollection: public QgsAbstractGeometry
8585
/** Returns a geometry without curves. Caller takes ownership
8686
* @param tolerance segmentation tolerance
8787
* @param toleranceType maximum segmentation angle or maximum difference between approximation and curve*/
88-
QgsAbstractGeometry* segmentize( double tolerance = M_PI_2 / 90, SegmentationToleranceType toleranceType = MaximumAngle ) const;
88+
QgsAbstractGeometry* segmentize( double tolerance = M_PI_2 / 90, SegmentationToleranceType toleranceType = MaximumAngle ) const /Factory/;
8989

9090
/** Returns approximate rotation angle for a vertex. Usually average angle between adjacent segments.
9191
* @param vertex the vertex id

python/core/geometry/qgsmulticurve.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class QgsMultiCurve: public QgsGeometryCollection
66

77
public:
88
virtual QString geometryType() const;
9-
virtual QgsMultiCurve* clone() const;
9+
virtual QgsMultiCurve* clone() const /Factory/;
1010

1111
bool fromWkt( const QString& wkt );
1212

python/core/geometry/qgsmultilinestring.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class QgsMultiLineString: public QgsMultiCurve
66

77
public:
88
virtual QString geometryType() const;
9-
virtual QgsMultiLineString* clone() const;
9+
virtual QgsMultiLineString* clone() const /Factory/;
1010

1111
bool fromWkt( const QString& wkt );
1212

python/core/geometry/qgsmultipoint.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class QgsMultiPointV2: public QgsGeometryCollection
55
%End
66
public:
77
virtual QString geometryType() const;
8-
virtual QgsMultiPointV2* clone() const;
8+
virtual QgsMultiPointV2* clone() const /Factory/;
99

1010
bool fromWkt( const QString& wkt );
1111

python/core/geometry/qgsmultipolygon.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class QgsMultiPolygonV2: public QgsMultiSurface
55
%End
66
public:
77
virtual QString geometryType() const;
8-
virtual QgsMultiPolygonV2* clone() const;
8+
virtual QgsMultiPolygonV2* clone() const /Factory/;
99

1010
bool fromWkt( const QString& wkt );
1111

0 commit comments

Comments
 (0)