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

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, Buttons button, int buttons, int modifiers)
uint triangleIndex() const
uint vertex1Index() const
uint vertex2Index() const
uint vertex3Index() const

Additional Inherited Members

Detailed Description

The QPickTriangleEvent class holds information when a triangle is picked

See also QPickEvent.

Property Documentation

triangleIndex : const uint

Specifies the triangle index of the event

Access functions:

uint triangleIndex() const

vertex1Index : const uint

Specifies the vertex 1 index of the event

Access functions:

uint vertex1Index() const

vertex2Index : const uint

Specifies the vertex 2 index of the event

Access functions:

uint vertex2Index() const

vertex3Index : const uint

Specifies the vertex 3 index of the event

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, intersection, 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)

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.

© 2017 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.