class QPickTriangleEvent

The QPickTriangleEvent class holds information when a triangle is picked. More

Inheritance diagram of PySide6.Qt3DRender.Qt3DRender.QPickTriangleEvent

Synopsis

Properties

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

When QPickingSettings::pickMode() is set to 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

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property triangleIndexᅟ: int

Specifies the triangle index of the event

Access functions:
property uvwᅟ: QVector3D
Access functions:
property vertex1Indexᅟ: int

Specifies the index of the first vertex in the triangle

Access functions:
property vertex2Indexᅟ: int

Specifies the index of the second vertex in the triangle

Access functions:
property vertex3Indexᅟ: int

Specifies the index of the third vertex in the triangle

Access functions:
__init__()

Constructs a new QPickEvent .

__init__(position, worldIntersection, localIntersection, distance, triangleIndex, vertex1Index, vertex2Index, vertex3Index)
Parameters:
  • positionQPointF

  • worldIntersectionQVector3D

  • localIntersectionQVector3D

  • distance – float

  • triangleIndex – int

  • vertex1Index – int

  • vertex2Index – int

  • vertex3Index – int

*

QPickTriangleEvent Constructs a new QPickEvent with the given parameters * position, * worldIntersection, * localIntersection, * distance, * triangleIndex, * vertex1Index, * vertex2Index and * vertex3Index

__init__(position, worldIntersection, localIntersection, distance, triangleIndex, vertex1Index, vertex2Index, vertex3Index, button, buttons, modifiers, uvw)
Parameters:
  • positionQPointF

  • worldIntersectionQVector3D

  • localIntersectionQVector3D

  • distance – float

  • triangleIndex – int

  • vertex1Index – int

  • vertex2Index – int

  • vertex3Index – int

  • buttonButtons

  • buttons – int

  • modifiers – int

  • uvwQVector3D

triangleIndex()
Return type:

int

QPickTriangleEvent::triangleIndex Returns the index of the picked triangle

Getter of property triangleIndexᅟ .

uvw()
Return type:

QVector3D

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

Getter of property uvwᅟ .

vertex1Index()
Return type:

int

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

Getter of property vertex1Indexᅟ .

vertex2Index()
Return type:

int

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

Getter of property vertex2Indexᅟ .

vertex3Index()
Return type:

int

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

Getter of property vertex3Indexᅟ .