16#ifndef QGSRAYCASTRESULT_H
17#define QGSRAYCASTRESULT_H
49 QList<QgsMapLayer *>
layers()
const;
61 QList<QgsRayCastHit>
allHits()
const;
70 QHash<QgsMapLayer *, QList<QgsRayCastHit>> mLayerResults;
71 QHash<QgsMapLayer *, QPointer<QgsMapLayer>> mLayerPointers;
72 QList<QgsRayCastHit> mTerrainResults;
Base class for all map layer types.
QList< QgsRayCastHit > terrainHits() const
Returns all terrain intersection hits.
QList< QgsRayCastHit > layerHits(QgsMapLayer *layer) const
Returns all hits from entities of the specific layer.
bool hasTerrainHits() const
Returns true is the ray intersected the terrain.
bool hasLayerHits() const
Returns true is ray hit at least one entity from a layer.
QList< QgsMapLayer * > layers() const
Returns pointers to the map layers of entities that were intersected by the ray.
QList< QgsRayCastHit > allHits() const
Returns all the hits from both layer and terrain intersections.
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.
bool isEmpty() const
Returns true is ray did not intersect any layer or terrain entity.