IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QPickTriangleEvent Class

The QPickTriangleEvent class holds information when a triangle is picked.

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QPickTriangleEvent Class

  • Header: QPickTriangleEvent

  • Since: Qt 5.7

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3drender)

    target_link_libraries(mytarget PRIVATE Qt6::3drender)

  • qmake: QT += 3drender

  • Inherited By:

  • Instantiated By: qml-qt3d-render-picktriangleevent.xml

  • Inherits: Qt3DRender::QPickEvent

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.

In the case of indexed rendering, the point indices are relative to the array of coordinates, not the array of indices.

See Also

Property Documentation

 

[read-only] triangleIndex : const uint

Specifies the triangle index of the event

Access functions:

[read-only] uvw : const QVector3D

Access functions:

[read-only] vertex1Index : const uint

Specifies the index of the first vertex in the triangle

Access functions:

[read-only] vertex2Index : const uint

Specifies the index of the second vertex in the triangle

Access functions:

[read-only] vertex3Index : const uint

Specifies the index of the third vertex in the triangle

Access functions:

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

uint QPickTriangleEvent::triangleIndex() const

QPickTriangleEvent::triangleIndex Returns the index of the picked triangle

Getter function for property triangleIndex.

QVector3D QPickTriangleEvent::uvw() const

Returns the 3D coordinates u,v, and w.

Getter function for property uvw.

uint QPickTriangleEvent::vertex1Index() const

QPickTriangleEvent::vertex1Index Returns the index of the first point of the picked triangle

Getter function for property vertex1Index.

uint QPickTriangleEvent::vertex2Index() const

QPickTriangleEvent::vertex2Index Returns the index of the second point of the picked triangle

Getter function for property vertex2Index.

uint QPickTriangleEvent::vertex3Index() const

QPickTriangleEvent::vertex3Index Returns index of third point of picked triangle

Getter function for property vertex3Index.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+