QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
3d
qgsraycasthit.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsraycasthit.cpp
3
---------------------
4
begin : September 2025
5
copyright : (C) 2025 by Stefanos Natsis
6
email : uclaros at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#include "
qgsraycasthit.h
"
17
18
double
QgsRayCastHit::distance
()
const
19
{
20
return
mDistance;
21
}
22
23
QgsVector3D
QgsRayCastHit::mapCoordinates
()
const
24
{
25
return
mPos;
26
}
27
28
QVariantMap
QgsRayCastHit::properties
()
const
29
{
30
return
mAttributes;
31
}
32
33
void
QgsRayCastHit::setDistance
(
double
distance
)
34
{
35
mDistance =
distance
;
36
}
37
38
void
QgsRayCastHit::setMapCoordinates
(
const
QgsVector3D
&point )
39
{
40
mPos = point;
41
}
42
43
void
QgsRayCastHit::setProperties
(
const
QVariantMap &attributes )
44
{
45
mAttributes = attributes;
46
}
QgsRayCastHit::setProperties
void setProperties(const QVariantMap &attributes)
Sets the point cloud point attributes, empty map if hit was not on a point cloud point.
Definition
qgsraycasthit.cpp:43
QgsRayCastHit::setMapCoordinates
void setMapCoordinates(const QgsVector3D &point)
Sets the hit point position in 3d map coordinates.
Definition
qgsraycasthit.cpp:38
QgsRayCastHit::setDistance
void setDistance(double distance)
Sets the hit's distance from the ray's origin.
Definition
qgsraycasthit.cpp:33
QgsRayCastHit::properties
QVariantMap properties() const
Returns a map with the properties of the intersected entity.
Definition
qgsraycasthit.cpp:28
QgsRayCastHit::distance
double distance() const
Returns the hit's distance from the ray's origin.
Definition
qgsraycasthit.cpp:18
QgsRayCastHit::mapCoordinates
QgsVector3D mapCoordinates() const
Returns the hit position in 3d map coordinates.
Definition
qgsraycasthit.cpp:23
QgsVector3D
A 3D vector (similar to QVector3D) with the difference that it uses double precision instead of singl...
Definition
qgsvector3d.h:33
qgsraycasthit.h
Generated on
for QGIS API Documentation by
1.17.0