QPickTriangleEvent Class
(Qt3DRender::QPickTriangleEvent)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 |
Properties
|
|
- 8 properties inherited from Qt3DRender::QPickEvent
- 1 property inherited from QObject
Public Functions
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 |
- 8 public functions inherited from Qt3DRender::QPickEvent
- 31 public functions inherited from QObject
Static Public Members
const QMetaObject | staticMetaObject |
- 9 static public members inherited from QObject
Additional Inherited Members
- 1 public slot inherited from Qt3DRender::QPickEvent
- 1 public slot inherited from QObject
- 1 signal inherited from Qt3DRender::QPickEvent
- 2 signals inherited from QObject
- 9 protected functions inherited from QObject
Detailed Description
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.
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.
Property Documentation
triangleIndex : const uint
Specifies the triangle index of the event
Access functions:
uint | triangleIndex() const |
uvw : const QVector3D
Access functions:
QVector3D | uvw() const |
vertex1Index : const uint
Specifies the index of the first vertex in the triangle
Access functions:
uint | vertex1Index() const |
vertex2Index : const uint
Specifies the index of the second vertex in the triangle
Access functions:
uint | vertex2Index() const |
vertex3Index : const uint
Specifies the index of the third vertex in the triangle
Access functions:
uint | vertex3Index() const |
Member Function Documentation
QPickTriangleEvent::QPickTriangleEvent()
Constructs a new QPickEvent.
QPickTriangleEvent::QPickTriangleEvent(const QPointF &position, const QVector3D &worldIntersection, const QVector3D &localIntersection, float distance, uint triangleIndex, uint vertex1Index, uint vertex2Index, uint vertex3Index)
*
QPickTriangleEvent::QPickTriangleEvent Constructs a new QPickEvent with the given parameters * position, * worldIntersection, * localIntersection, * distance, * triangleIndex, * vertex1Index, * vertex2Index and * vertex3Index
QPickTriangleEvent::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)
Default constructs an instance of QPickTriangleEvent.
uint QPickTriangleEvent::triangleIndex() const
QPickTriangleEvent::triangleIndex Returns the index of the picked triangle
Note: Getter function for property triangleIndex.
QVector3D QPickTriangleEvent::uvw() const
Returns the 3D coordinates u,v, and w.
Note: Getter function for property uvw.
uint QPickTriangleEvent::vertex1Index() const
QPickTriangleEvent::vertex1Index Returns the index of the first point of the picked triangle
Note: Getter function for property vertex1Index.
uint QPickTriangleEvent::vertex2Index() const
QPickTriangleEvent::vertex2Index Returns the index of the second point of the picked triangle
Note: Getter function for property vertex2Index.
uint QPickTriangleEvent::vertex3Index() const
QPickTriangleEvent::vertex3Index Returns index of third point of picked triangle
Note: Getter function for property vertex3Index.
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.