QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
QgsRayCastingUtils::RayHit Struct Reference

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.
 

Detailed Description

Helper struct to store ray casting results.

Definition at line 32 of file qgsraycastingutils.h.

Constructor & Destructor Documentation

◆ RayHit()

QgsRayCastingUtils::RayHit::RayHit ( const float  distance,
const QVector3D  pos,
const QgsFeatureId  fid = FID_NULL,
const QVariantMap  attributes = QVariantMap() 
)
inline

Creates a new hit.

Definition at line 35 of file qgsraycastingutils.h.

Member Data Documentation

◆ attributes

QVariantMap QgsRayCastingUtils::RayHit::attributes

Point cloud point attributes, empty map if no point cloud points hit.

Definition at line 45 of file qgsraycastingutils.h.

◆ distance

float QgsRayCastingUtils::RayHit::distance

Distance from ray's origin.

Definition at line 42 of file qgsraycastingutils.h.

◆ fid

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.

◆ pos

QVector3D QgsRayCastingUtils::RayHit::pos

Hit position in world coordinates.

Definition at line 43 of file qgsraycastingutils.h.


The documentation for this struct was generated from the following file: