Skip to content

Commit

Permalink
Metatype Qgs(Referenced)Rectangle/PointXY
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 6, 2017
1 parent 1194b5a commit 6ab7eba
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/core/geometry/qgsrectangle.sip
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ Copy constructor
};



/************************************************************************
* This file has been generated automatically from *
* *
Expand Down
6 changes: 6 additions & 0 deletions python/core/geometry/qgsreferencedgeometry.sip
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ class QgsReferencedRectangle : QgsRectangle, QgsReferencedGeometryBase
and ``crs``.
%End

QgsReferencedRectangle();

};


class QgsReferencedPointXY : QgsPointXY, QgsReferencedGeometryBase
{
%Docstring
Expand All @@ -87,8 +90,11 @@ class QgsReferencedPointXY : QgsPointXY, QgsReferencedGeometryBase
and ``crs``.
%End

QgsReferencedPointXY();

};


/************************************************************************
* This file has been generated automatically from *
* *
Expand Down
2 changes: 2 additions & 0 deletions src/core/geometry/qgsrectangle.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ class CORE_EXPORT QgsRectangle

};

Q_DECLARE_METATYPE( QgsRectangle )

#ifndef SIP_RUN

/**
Expand Down
8 changes: 8 additions & 0 deletions src/core/geometry/qgsreferencedgeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ class CORE_EXPORT QgsReferencedRectangle : public QgsRectangle, public QgsRefere
*/
QgsReferencedRectangle( const QgsRectangle &rectangle, const QgsCoordinateReferenceSystem &crs );

QgsReferencedRectangle();

};

Q_DECLARE_METATYPE( QgsReferencedRectangle )

/**
* \ingroup core
* A QgsPointXY with associated coordinate reference system.
Expand All @@ -97,6 +101,10 @@ class CORE_EXPORT QgsReferencedPointXY : public QgsPointXY, public QgsReferenced
*/
QgsReferencedPointXY( const QgsPointXY &point, const QgsCoordinateReferenceSystem &crs );

QgsReferencedPointXY();

};

Q_DECLARE_METATYPE( QgsReferencedPointXY )

#endif // QGSREFERENCEDGEOMETRY_H
1 change: 1 addition & 0 deletions src/core/qgspointxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ class CORE_EXPORT QgsPointXY

}; // class QgsPoint

Q_DECLARE_METATYPE( QgsPointXY )

inline bool operator==( const QgsPointXY &p1, const QgsPointXY &p2 ) SIP_SKIP
{
Expand Down

0 comments on commit 6ab7eba

Please sign in to comment.