QPickTriangleEvent Class
(Qt3DRender::QPickTriangleEvent)The QPickTriangleEvent class holds information when a triangle is picked 更多...
头文件: | #include <QPickTriangleEvent> |
qmake: | QT += 3drender |
开始支持版本: | Qt 5.7 |
Instantiated By: | PickTriangleEvent |
基类: | Qt3DRender::QPickEvent |
属性
|
|
- 8 个属性继承自 Qt3DRender::QPickEvent
- 1 个属性继承自 QObject
公有函数
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, 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 个公有函数继承自 Qt3DRender::QPickEvent
- 32 个公有函数继承自 QObject
其他继承的成员
- 1 个公有槽函数继承自 Qt3DRender::QPickEvent
- 1 个公有槽函数继承自 QObject
- 1 个信号继承自 Qt3DRender::QPickEvent
- 2 个信号继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
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.
参见 QPickingSettings, QPickEvent, QObjectPicker, and QAttribute.
属性
triangleIndex : const uint
Specifies the triangle index of the event
访问函数:
uint | triangleIndex() const |
uvw : const QVector3D
访问函数:
QVector3D | uvw() const |
vertex1Index : const uint
Specifies the index of the first vertex in the triangle
访问函数:
uint | vertex1Index() const |
vertex2Index : const uint
Specifies the index of the second vertex in the triangle
访问函数:
uint | vertex2Index() const |
vertex3Index : const uint
Specifies the index of the third vertex in the triangle
访问函数:
uint | vertex3Index() const |
成员函数
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, 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.
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.