|
QGIS API Documentation 3.99.0-Master (26c88405ac0)
|
Contains the results of ray casting operations in a 3D map canvas. More...
#include <qgsraycastresult.h>
Public Member Functions | |
| QgsRayCastResult () | |
| Ctor. | |
| void | addLayerHits (QgsMapLayer *layer, const QList< QgsRayCastHit > &hits) |
| Adds all hits from layer to the result. | |
| void | addTerrainHits (const QList< QgsRayCastHit > &hits) |
| Adds all terrain hits to the result. | |
| QList< QgsRayCastHit > | allHits () const |
| Returns all the hits from both layer and terrain intersections. | |
| bool | hasLayerHits () const |
Returns true is ray hit at least one entity from a layer. | |
| bool | hasTerrainHits () const |
Returns true is the ray intersected the terrain. | |
| bool | isEmpty () const |
Returns true is ray did not intersect any layer or terrain entity. | |
| QList< QgsRayCastHit > | layerHits (QgsMapLayer *layer) const |
| Returns all hits from entities of the specific layer. | |
| QList< QgsMapLayer * > | layers () const |
| Returns pointers to the map layers of entities that were intersected by the ray. | |
| QList< QgsRayCastHit > | terrainHits () const |
| Returns all terrain intersection hits. | |
Contains the results of ray casting operations in a 3D map canvas.
Definition at line 36 of file qgsraycastresult.h.
| QgsRayCastResult::QgsRayCastResult | ( | ) |
Ctor.
Definition at line 20 of file qgsraycastresult.cpp.
| void QgsRayCastResult::addLayerHits | ( | QgsMapLayer * | layer, |
| const QList< QgsRayCastHit > & | hits ) |
Adds all hits from layer to the result.
Definition at line 78 of file qgsraycastresult.cpp.
| void QgsRayCastResult::addTerrainHits | ( | const QList< QgsRayCastHit > & | hits | ) |
Adds all terrain hits to the result.
Definition at line 87 of file qgsraycastresult.cpp.
| QList< QgsRayCastHit > QgsRayCastResult::allHits | ( | ) | const |
Returns all the hits from both layer and terrain intersections.
Definition at line 66 of file qgsraycastresult.cpp.
| bool QgsRayCastResult::hasLayerHits | ( | ) | const |
Returns true is ray hit at least one entity from a layer.
Definition at line 29 of file qgsraycastresult.cpp.
| bool QgsRayCastResult::hasTerrainHits | ( | ) | const |
Returns true is the ray intersected the terrain.
Definition at line 56 of file qgsraycastresult.cpp.
| bool QgsRayCastResult::isEmpty | ( | ) | const |
Returns true is ray did not intersect any layer or terrain entity.
Definition at line 24 of file qgsraycastresult.cpp.
| QList< QgsRayCastHit > QgsRayCastResult::layerHits | ( | QgsMapLayer * | layer | ) | const |
Returns all hits from entities of the specific layer.
Definition at line 51 of file qgsraycastresult.cpp.
| QList< QgsMapLayer * > QgsRayCastResult::layers | ( | ) | const |
Returns pointers to the map layers of entities that were intersected by the ray.
Definition at line 34 of file qgsraycastresult.cpp.
| QList< QgsRayCastHit > QgsRayCastResult::terrainHits | ( | ) | const |
Returns all terrain intersection hits.
Definition at line 61 of file qgsraycastresult.cpp.