The QPickTriangleEvent class holds information when a triangle is picked. 更多...
头: | #include <QPickTriangleEvent> |
qmake: | QT += 3drender |
Since: | Qt 5.7 |
实例化: | PickTriangleEvent |
继承: | Qt3DRender::QPickEvent |
|
|
QPickTriangleEvent () | |
QPickTriangleEvent (const QPointF & position , const QVector3D & worldIntersection , const QVector3D & localIntersection , float distance , uint triangleIndex , uint vertex1Index , uint vertex2Index , uint vertex3Index ) | |
QPickTriangleEvent (const QPointF & position , const QVector3D & worldIntersection , const QVector3D & localIntersection , float distance , uint triangleIndex , uint vertex1Index , uint vertex2Index , uint vertex3Index , Qt3DRender::QPickEvent::Buttons button , int buttons , int modifiers , const QVector3D & uvw ) | |
uint | triangleIndex () const |
QVector3D | uvw () const |
uint | vertex1Index () const |
uint | vertex2Index () const |
uint | vertex3Index () const |
const QMetaObject | staticMetaObject |
The QPickTriangleEvent class holds information when a triangle is picked.
When QPickingSettings::pickMode() is set to QPickingSettings::TrianglePicking , the signals on QObjectPicker will carry an instance of QPickTriangleEvent .
This contains the details of the triangle that was picked.
注意: In the case of indexed rendering, the point indices are relative to the array of coordinates, not the array of indices.
另请参阅 QPickingSettings , QPickEvent , QObjectPicker ,和 QAttribute .
Specifies the triangle index of the event
访问函数:
uint | triangleIndex () const |
访问函数:
QVector3D | uvw () const |
Specifies the index of the first vertex in the triangle
访问函数:
uint | vertex1Index () const |
Specifies the index of the second vertex in the triangle
访问函数:
uint | vertex2Index () const |
Specifies the index of the third vertex in the triangle
访问函数:
uint | vertex3Index () const |
构造新的 QPickEvent .
*
QPickTriangleEvent::QPickTriangleEvent 构造新的 QPickEvent with the given parameters * position , * worldIntersection , * localIntersection , * distance , * triangleIndex , * vertex1Index , * vertex2Index 和 * vertex3Index
Default constructs an instance of QPickTriangleEvent.
QPickTriangleEvent::triangleIndex Returns the index of the picked triangle
注意: getter 函数对于特性 triangleIndex .
Returns the 3D coordinates u,v, and w.
注意: getter 函数对于特性 uvw .
QPickTriangleEvent::vertex1Index Returns the index of the first point of the picked triangle
注意: getter 函数对于特性 vertex1Index .
QPickTriangleEvent::vertex2Index Returns the index of the second point of the picked triangle
注意: getter 函数对于特性 vertex2Index .
QPickTriangleEvent::vertex3Index Returns index of third point of picked triangle
注意: getter 函数对于特性 vertex3Index .