|
@@ -125,24 +125,24 @@ class CORE_EXPORT QgsPointCloudDataProvider: public QgsDataProvider |
|
|
#ifndef SIP_RUN |
|
|
|
|
|
/** |
|
|
* Returns the Points that are on a ray |
|
|
* Returns the points that are on a ray |
|
|
* |
|
|
* \param rayOrigin : The origin of the ray in layer coordinates |
|
|
* \param rayDirection : The direction of the ray in layer coordinates |
|
|
* \param maxScreenError : Maximum screen error (as taken from the 3D point cloud layer renderer) |
|
|
* \param cameraFov : The field of view of the camera in degrees |
|
|
* \param screenSizePx : The size of the screen's viewport in pixels |
|
|
* \param pointAngle : the maximum accepted angle between the point and it's projected point on the ray in degrees |
|
|
* \param pointsLimit : the maximum number of points returned |
|
|
* \return a list of the identified points |
|
|
* \param pointAngle : The maximum accepted angle between the point and it's projected point on the ray in degrees |
|
|
* \param pointsLimit : The maximum number of points returned |
|
|
* \return a vector of the identified points |
|
|
* |
|
|
* \since QGIS 3.18 |
|
|
*/ |
|
|
QVector<QVariantMap> getPointsOnRay( const QVector3D &rayOrigin, const QVector3D &rayDirection, double maxScreenError, double cameraFov, int screenSizePx, double pointAngle, int pointsLimit = 1000 ); |
|
|
#else |
|
|
|
|
|
/** |
|
|
* Returns the Points that are on a ray |
|
|
* Returns the points that are on a ray |
|
|
* |
|
|
* \param rayOrigin : The origin of the ray in layer coordinates |
|
|
* \param rayDirection : The direction of the ray in layer coordinates |
|
@@ -151,14 +151,14 @@ class CORE_EXPORT QgsPointCloudDataProvider: public QgsDataProvider |
|
|
* \param screenSizePx : The size of the screen's viewport in pixels |
|
|
* \param pointAngle : the maximum accepted angle between the point and it's projected point on the ray in degrees |
|
|
* \param pointsLimit : the maximum number of points returned |
|
|
* \return a vector of the identified points |
|
|
* \return a list of the identified points |
|
|
* |
|
|
* \since QGIS 3.18 |
|
|
*/ |
|
|
SIP_PYLIST getPointsOnRay( const QVector3D &rayOrigin, const QVector3D &rayDirection, double maxScreenError, double cameraFov, int screenSizePx, double pointAngle, int pointsLimit = 1000 ); |
|
|
% MethodCode |
|
|
{ |
|
|
QVector<QMap<QString, QVariant>> res = sipCpp->identify( *a0, *a1, a2, a3, a4, a5, a6 ); |
|
|
QVector<QMap<QString, QVariant>> res = sipCpp->getPointsOnRay( *a0, *a1, a2, a3, a4, a5, a6 ); |
|
|
sipRes = PyList_New( res.size() ); |
|
|
for ( int i = 0; i < res.size(); ++i ) |
|
|
{ |
|
|