mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
Add missing const
This commit is contained in:
parent
e8b8867c50
commit
2a7f9c32c7
@ -1466,7 +1466,7 @@ Returns an extruded version of this geometry.
|
||||
%End
|
||||
|
||||
|
||||
SIP_PYOBJECT randomPointsInPolygon( int count, unsigned long seed = 0 ) /TypeHint="QgsPolylineXY"/;
|
||||
SIP_PYOBJECT randomPointsInPolygon( int count, unsigned long seed = 0 ) const /TypeHint="QgsPolylineXY"/;
|
||||
%Docstring
|
||||
Returns a list of ``count`` random points generated inside a (multi)polygon geometry.
|
||||
|
||||
|
||||
@ -2330,7 +2330,7 @@ QgsGeometry QgsGeometry::extrude( double x, double y )
|
||||
}
|
||||
|
||||
///@cond PRIVATE // avoid dox warning
|
||||
QVector<QgsPointXY> QgsGeometry::randomPointsInPolygon( int count, const std::function< bool( const QgsPointXY & ) > &acceptPoint, unsigned long seed, QgsFeedback *feedback )
|
||||
QVector<QgsPointXY> QgsGeometry::randomPointsInPolygon( int count, const std::function< bool( const QgsPointXY & ) > &acceptPoint, unsigned long seed, QgsFeedback *feedback ) const
|
||||
{
|
||||
if ( type() != QgsWkbTypes::PolygonGeometry )
|
||||
return QVector< QgsPointXY >();
|
||||
@ -2338,7 +2338,7 @@ QVector<QgsPointXY> QgsGeometry::randomPointsInPolygon( int count, const std::fu
|
||||
return QgsInternalGeometryEngine::randomPointsInPolygon( *this, count, acceptPoint, seed, feedback );
|
||||
}
|
||||
|
||||
QVector<QgsPointXY> QgsGeometry::randomPointsInPolygon( int count, unsigned long seed, QgsFeedback *feedback )
|
||||
QVector<QgsPointXY> QgsGeometry::randomPointsInPolygon( int count, unsigned long seed, QgsFeedback *feedback ) const
|
||||
{
|
||||
if ( type() != QgsWkbTypes::PolygonGeometry )
|
||||
return QVector< QgsPointXY >();
|
||||
|
||||
@ -1466,7 +1466,7 @@ class CORE_EXPORT QgsGeometry
|
||||
*
|
||||
* \since QGIS 3.10
|
||||
*/
|
||||
QVector< QgsPointXY > randomPointsInPolygon( int count, const std::function< bool( const QgsPointXY & ) > &acceptPoint, unsigned long seed = 0, QgsFeedback *feedback = nullptr );
|
||||
QVector< QgsPointXY > randomPointsInPolygon( int count, const std::function< bool( const QgsPointXY & ) > &acceptPoint, unsigned long seed = 0, QgsFeedback *feedback = nullptr ) const;
|
||||
|
||||
/**
|
||||
* Returns a list of \a count random points generated inside a (multi)polygon geometry.
|
||||
@ -1481,7 +1481,7 @@ class CORE_EXPORT QgsGeometry
|
||||
*
|
||||
* \since QGIS 3.10
|
||||
*/
|
||||
QVector< QgsPointXY > randomPointsInPolygon( int count, unsigned long seed = 0, QgsFeedback *feedback = nullptr );
|
||||
QVector< QgsPointXY > randomPointsInPolygon( int count, unsigned long seed = 0, QgsFeedback *feedback = nullptr ) const;
|
||||
///@cond PRIVATE
|
||||
#else
|
||||
|
||||
@ -1497,7 +1497,7 @@ class CORE_EXPORT QgsGeometry
|
||||
*
|
||||
* \since QGIS 3.10
|
||||
*/
|
||||
SIP_PYOBJECT randomPointsInPolygon( int count, unsigned long seed = 0 ) SIP_TYPEHINT( QgsPolylineXY );
|
||||
SIP_PYOBJECT randomPointsInPolygon( int count, unsigned long seed = 0 ) const SIP_TYPEHINT( QgsPolylineXY );
|
||||
% MethodCode
|
||||
const QgsWkbTypes::GeometryType type = sipCpp->type();
|
||||
if ( sipCpp->isNull() )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user