![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qquick3dpickresult_p.h>
Public Member Functions | |
QQuick3DPickResult () | |
\qmlvaluetype pickResult \inqmlmodule QtQuick3D | |
QQuick3DPickResult (QQuick3DModel *hitObject, float distanceFromCamera, const QVector2D &uvPosition, const QVector3D &scenePosition, const QVector3D &position, const QVector3D &normal, int instanceIndex) | |
QQuick3DPickResult (QQuickItem *itemHit, float distanceFromCamera, const QVector2D &uvPosition, const QVector3D &scenePosition, const QVector3D &position, const QVector3D &sceneNormal) | |
QQuick3DModel * | objectHit () const |
\qmlproperty Model pickResult::objectHit \readonly | |
float | distance () const |
\qmlproperty real pickResult::distance \readonly | |
QVector2D | uvPosition () const |
\qmlproperty vector2d pickResult::uvPosition \readonly | |
QVector3D | scenePosition () const |
\qmlproperty vector3d pickResult::scenePosition \readonly | |
QVector3D | position () const |
\qmlproperty vector3d pickResult::position \readonly | |
QVector3D | normal () const |
\qmlproperty vector3d pickResult::normal \readonly | |
QVector3D | sceneNormal () const |
\qmlproperty vector3d pickResult::sceneNormal \readonly | |
int | instanceIndex () const |
\qmlproperty int pickResult::instanceIndex \readonly | |
Q_REVISION (6, 8) QQuickItem *itemHit() const | |
Properties | |
QQuick3DModel * | objectHit |
float | distance |
QVector2D | uvPosition |
QVector3D | scenePosition |
QVector3D | position |
QVector3D | normal |
QVector3D | sceneNormal |
int | instanceIndex |
QQuickItem * | itemHit |
\qmlproperty Item pickResult::itemHit \readonly | |
QQuick3DPickResultEnums::HitType | hitType |
\qmlproperty enumeration pickResult::hitType \readonly | |
Definition at line 44 of file qquick3dpickresult_p.h.
QT_BEGIN_NAMESPACE QQuick3DPickResult::QQuick3DPickResult | ( | ) |
\qmlvaluetype pickResult \inqmlmodule QtQuick3D
Contains the results of a pick.
Created as a return object to View3D::pick.
Definition at line 17 of file qquick3dpickresult.cpp.
|
explicit |
Definition at line 27 of file qquick3dpickresult.cpp.
|
explicit |
Definition at line 49 of file qquick3dpickresult.cpp.
float QQuick3DPickResult::distance | ( | ) | const |
\qmlproperty real pickResult::distance \readonly
This property holds the distance between the pick origin and the hit position i.e. the length of the ray. In the case of using viewport coordinates for picking the pick origin will be the active camera's position.
Definition at line 90 of file qquick3dpickresult.cpp.
int QQuick3DPickResult::instanceIndex | ( | ) | const |
\qmlproperty int pickResult::instanceIndex \readonly
This property holds the index in the instance table for the case where the pick hit an instance of an instanced model.
Definition at line 176 of file qquick3dpickresult.cpp.
QVector3D QQuick3DPickResult::normal | ( | ) | const |
\qmlproperty vector3d pickResult::normal \readonly
This property holds the normal of the face that was hit in local coordinate space.
Definition at line 143 of file qquick3dpickresult.cpp.
QQuick3DModel * QQuick3DPickResult::objectHit | ( | ) | const |
\qmlproperty Model pickResult::objectHit \readonly
This property holds the model object hit by the pick. This value will be null if \l{pickResult::hitType} {hitType} is not pickResult.Model
.
Definition at line 77 of file qquick3dpickresult.cpp.
QVector3D QQuick3DPickResult::position | ( | ) | const |
\qmlproperty vector3d pickResult::position \readonly
This property holds the scene position of the hit in local coordinate space.
Definition at line 129 of file qquick3dpickresult.cpp.
QQuick3DPickResult::Q_REVISION | ( | 6 | , |
8 | ) const |
QVector3D QQuick3DPickResult::sceneNormal | ( | ) | const |
\qmlproperty vector3d pickResult::sceneNormal \readonly
This property holds the normal of the face that was hit in scene coordinate space.
Definition at line 159 of file qquick3dpickresult.cpp.
QVector3D QQuick3DPickResult::scenePosition | ( | ) | const |
\qmlproperty vector3d pickResult::scenePosition \readonly
This property holds the scene position of the hit.
Definition at line 117 of file qquick3dpickresult.cpp.
QVector2D QQuick3DPickResult::uvPosition | ( | ) | const |
\qmlproperty vector2d pickResult::uvPosition \readonly
This property holds the UV position of the hit. The UV position is calculated as the normalized local x and y coordinates of the hit point relative to the bounding volume. Useful for further picking against an offscreen-rendered object.
When \l{pickResult::}{hitType} is pickResult.Item
this value will represent the position of the hit in the coordinate space of \l{pickResult::}{itemHit}.
Definition at line 106 of file qquick3dpickresult.cpp.
|
read |
Definition at line 48 of file qquick3dpickresult_p.h.
|
read |
\qmlproperty enumeration pickResult::hitType \readonly
This property holds the hit type of the pick result.
\value PickResult.Null The pick did not hit anything. \value PickResult.Model The pick hit a Model. \value PickResult.Item The pick hit a QQuickItem.
Definition at line 56 of file qquick3dpickresult_p.h.
|
read |
Definition at line 54 of file qquick3dpickresult_p.h.
|
read |
|
read |
Definition at line 52 of file qquick3dpickresult_p.h.
|
read |
Definition at line 47 of file qquick3dpickresult_p.h.
|
read |
Definition at line 51 of file qquick3dpickresult_p.h.
|
read |
Definition at line 53 of file qquick3dpickresult_p.h.
|
read |
Definition at line 50 of file qquick3dpickresult_p.h.
|
read |
Definition at line 49 of file qquick3dpickresult_p.h.