Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
81 additions
and 15 deletions.
- +74 −0 python/core/auto_generated/geometry/qgsray3d.sip.in
- +1 −0 python/core/core_auto.sip
- +0 −10 python/gui/auto_generated/qgsmaptoolidentify.sip.in
- +2 −2 src/3d/qgs3dmapscene.cpp
- +1 −1 src/app/3d/qgs3dmaptoolidentify.cpp
- +1 −0 src/core/geometry/qgsray3d.h
- +1 −1 src/core/pointcloud/qgspointclouddataprovider.cpp
- +1 −1 src/gui/qgsmaptoolidentify.h
@@ -0,0 +1,74 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/geometry/qgsray3d.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsRay3D | ||
{ | ||
%Docstring | ||
A representation of a ray in 3D. | ||
|
||
A ray is composed of an origin point (the start of the ray) and a direction vector. | ||
|
||
.. versionadded:: 3.18 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsray3d.h" | ||
%End | ||
public: | ||
QgsRay3D( const QVector3D &origin, const QVector3D &direction ); | ||
%Docstring | ||
Constructor | ||
%End | ||
|
||
QVector3D origin() const; | ||
%Docstring | ||
Returns the origin of the ray | ||
%End | ||
QVector3D direction() const; | ||
%Docstring | ||
Returns the direction of the ray | ||
%End | ||
|
||
void setOrigin( const QVector3D &origin ); | ||
%Docstring | ||
Sets the origin of the ray | ||
%End | ||
void setDirection( const QVector3D direction ); | ||
%Docstring | ||
Sets the direction of the ray | ||
%End | ||
|
||
QVector3D projectedPoint( const QVector3D &point ) const; | ||
%Docstring | ||
Returns the projection of the point on the ray | ||
(which is the closest point of the ray to ``point``) | ||
%End | ||
bool intersectsWith( const QgsBox3d &box ) const; | ||
%Docstring | ||
Checks whether the ray intersects with ``box`` | ||
%End | ||
bool isInFront( const QVector3D &point ) const; | ||
%Docstring | ||
Checks whether the point is in front of the ray | ||
%End | ||
double angleToPoint( const QVector3D &point ) const; | ||
%Docstring | ||
Returns the angle between the ray and the vector from the ray's origin and the point ``point`` | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/geometry/qgsray3d.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |