QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
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) | |
Helper struct to store ray casting parameters.
Definition at line 51 of file qgsraycastingutils.h.
|
inline |
Definition at line 53 of file qgsraycastingutils.h.
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.
QSize QgsRayCastingUtils::RayCastContext::screenSize |
QSize of the 3d engine window.
Definition at line 59 of file qgsraycastingutils.h.
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.