QPickTriangleEvent Class

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

This class was introduced in Qt 5.7.

Properties

Public Functions

uint triangleIndex() const
QVector3D uvw() const
uint vertex1Index() const
uint vertex2Index() const
uint vertex3Index() const

Detailed Description

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