QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Helper struct to store ray casting results. More...
#include <qgsraycastingutils.h>
Public Member Functions | |
RayHit (const float distance, const QVector3D pos, const QgsFeatureId fid=FID_NULL, const QVariantMap attributes=QVariantMap()) | |
Creates a new hit. | |
Public Attributes | |
QVariantMap | attributes |
Point cloud point attributes, empty map if no point cloud points hit. | |
float | distance |
Distance from ray's origin. | |
QgsFeatureId | fid |
Fid of feature hit closest to ray origin, FID_NULL if no features hit. | |
QVector3D | pos |
Hit position in world coordinates. | |
Helper struct to store ray casting results.
Definition at line 32 of file qgsraycastingutils.h.
|
inline |
Creates a new hit.
Definition at line 35 of file qgsraycastingutils.h.
QVariantMap QgsRayCastingUtils::RayHit::attributes |
Point cloud point attributes, empty map if no point cloud points hit.
Definition at line 45 of file qgsraycastingutils.h.
float QgsRayCastingUtils::RayHit::distance |
Distance from ray's origin.
Definition at line 42 of file qgsraycastingutils.h.
QgsFeatureId QgsRayCastingUtils::RayHit::fid |
Fid of feature hit closest to ray origin, FID_NULL if no features hit.
Definition at line 44 of file qgsraycastingutils.h.
QVector3D QgsRayCastingUtils::RayHit::pos |
Hit position in world coordinates.
Definition at line 43 of file qgsraycastingutils.h.