mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
fix constructor and skip method with same python signature
This commit is contained in:
parent
1a961e8045
commit
8053b96ec0
@ -36,11 +36,6 @@ class QgsReferencedGeometryPrimitive
|
||||
Constructor for QgsReferencedGeometryPrimitive, for the specified ``primitive`` and ``crs``.
|
||||
%End
|
||||
|
||||
T primitive() const;
|
||||
%Docstring
|
||||
Returns the geometry primitive.
|
||||
:rtype: T
|
||||
%End
|
||||
|
||||
T &primitive();
|
||||
%Docstring
|
||||
@ -66,6 +61,7 @@ class QgsReferencedGeometryPrimitive
|
||||
};
|
||||
|
||||
|
||||
|
||||
typedef QgsReferencedGeometryPrimitive<QgsRectangle> QgsReferencedGeometryPrimitiveQgsRectangleBase;
|
||||
|
||||
class QgsReferencedRectangle : QgsReferencedGeometryPrimitiveQgsRectangleBase
|
||||
@ -81,7 +77,7 @@ typedef QgsReferencedGeometryPrimitive<QgsRectangle> QgsReferencedGeometryPrimit
|
||||
%End
|
||||
public:
|
||||
|
||||
QgsReferencedRectangle();
|
||||
QgsReferencedRectangle( const QgsRectangle &rect );
|
||||
%Docstring
|
||||
Construct a default optional expression.
|
||||
It will be disabled and with an empty expression.
|
||||
@ -89,16 +85,12 @@ typedef QgsReferencedGeometryPrimitive<QgsRectangle> QgsReferencedGeometryPrimit
|
||||
|
||||
QgsRectangle &rect();
|
||||
%Docstring
|
||||
Returns the rectangles
|
||||
:rtype: QgsRectangle
|
||||
%End
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/************************************************************************
|
||||
* This file has been generated automatically from *
|
||||
* *
|
||||
|
@ -53,7 +53,7 @@ class CORE_EXPORT QgsReferencedGeometryPrimitive
|
||||
/**
|
||||
* Returns the geometry primitive.
|
||||
*/
|
||||
T primitive() const { return mPrimitive; }
|
||||
T primitive() const { return mPrimitive; } SIP_SKIP
|
||||
|
||||
/**
|
||||
* Returns the geometry primitive.
|
||||
@ -81,7 +81,10 @@ class CORE_EXPORT QgsReferencedGeometryPrimitive
|
||||
|
||||
};
|
||||
|
||||
//template class QgsReferencedGeometryPrimitive< QgsRectangle > QgsReferencedRectangle;
|
||||
|
||||
/**
|
||||
* \ingroup core
|
||||
* A QgsRectangle with associated coordinate reference system.
|
||||
* \since QGIS 3.0
|
||||
*/
|
||||
@ -93,15 +96,13 @@ class CORE_EXPORT QgsReferencedRectangle : public QgsReferencedGeometryPrimitive
|
||||
* Construct a default optional expression.
|
||||
* It will be disabled and with an empty expression.
|
||||
*/
|
||||
QgsReferencedRectangle();
|
||||
QgsReferencedRectangle( const QgsRectangle &rect ) : QgsReferencedGeometryPrimitive( rect ) {}
|
||||
|
||||
/**
|
||||
* Returns the rectangles
|
||||
*/
|
||||
QgsRectangle &rect() { return primitive(); }
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // QGSREFERENCEDGEOMETRY_H
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user