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

Helper struct to store ray casting parameters. More...

#include <qgsraycastingutils.h>

Public Member Functions

 RayCastContext (bool singleResult=true, QSize screenSize=QSize(), float maxDistance=0.f)
 

Public Attributes

float maxDistance
 The maximum distance from ray origin to look for hits when casting a ray.
 
QSize screenSize
 QSize of the 3d engine window.
 
bool singleResult
 If set to true, only the closest point cloud hit will be returned (other entities always return only closest hit)
 

Detailed Description

Helper struct to store ray casting parameters.

Definition at line 51 of file qgsraycastingutils.h.

Constructor & Destructor Documentation

◆ RayCastContext()

QgsRayCastingUtils::RayCastContext::RayCastContext ( bool  singleResult = true,
QSize  screenSize = QSize(),
float  maxDistance = 0.f 
)
inline

Definition at line 53 of file qgsraycastingutils.h.

Member Data Documentation

◆ maxDistance

float QgsRayCastingUtils::RayCastContext::maxDistance

The maximum distance from ray origin to look for hits when casting a ray.

Should be normally set to far plane, to ignore data that will not get displayed in the 3D view

Definition at line 65 of file qgsraycastingutils.h.

◆ screenSize

QSize QgsRayCastingUtils::RayCastContext::screenSize

QSize of the 3d engine window.

Definition at line 59 of file qgsraycastingutils.h.

◆ singleResult

bool QgsRayCastingUtils::RayCastContext::singleResult

If set to true, only the closest point cloud hit will be returned (other entities always return only closest hit)

Definition at line 58 of file qgsraycastingutils.h.


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