The QPickTriangleEvent class holds information when a triangle is picked. More...
| Header: | #include <QPickTriangleEvent> |
| qmake: | QT += 3drender |
| Since: | Qt 5.7 |
| Instantiated By: | PickTriangleEvent |
| Inherits: | Qt3DRender::QPickEvent |
This class was introduced in Qt 5.7.
|
|
| QPickTriangleEvent(const QPointF &position, const QVector3D &worldIntersection, const QVector3D &localIntersection, float distance, uint triangleIndex, uint vertex1Index, uint vertex2Index, uint vertex3Index) | |
| QPickTriangleEvent() | |
| uint | triangleIndex() const |
| QVector3D | uvw() const |
| uint | vertex1Index() const |
| uint | vertex2Index() const |
| uint | vertex3Index() const |
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.
Note: In the case of indexed rendering, the point indices are relative to the array of coordinates, not the array of indices.
See also QPickingSettings, QPickEvent, QObjectPicker, and QAttribute.
Specifies the triangle index of the event
Access functions:
| uint | triangleIndex() const |
Access functions:
| QVector3D | uvw() const |
Specifies the index of the first vertex in the triangle
Access functions:
| uint | vertex1Index() const |
Specifies the index of the second vertex in the triangle
Access functions:
| uint | vertex2Index() const |
Specifies the index of the third vertex in the triangle
Access functions:
| uint | vertex3Index() const |
*
QPickTriangleEvent::QPickTriangleEvent Constructs a new QPickEvent with the given parameters * position, * worldIntersection, * localIntersection, * distance, * triangleIndex, * vertex1Index, * vertex2Index and * vertex3Index
Constructs a new QPickEvent.
QPickTriangleEvent::triangleIndex Returns the index of the picked triangle
Note: Getter function for property triangleIndex.
Returns the 3D coordinates u,v, and w.
Note: Getter function for property uvw.
QPickTriangleEvent::vertex1Index Returns the index of the first point of the picked triangle
Note: Getter function for property vertex1Index.
QPickTriangleEvent::vertex2Index Returns the index of the second point of the picked triangle
Note: Getter function for property vertex2Index.
QPickTriangleEvent::vertex3Index Returns index of third point of picked triangle
Note: Getter function for property vertex3Index.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qt3drender-qpicktriangleevent.html