QPickTriangleEvent#
The QPickTriangleEvent
class holds information when a triangle is picked. More…
Synopsis#
Functions#
def
triangleIndex
()def
uvw
()def
vertex1Index
()def
vertex2Index
()def
vertex3Index
()
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
- class PySide6.Qt3DRender.Qt3DRender.QPickTriangleEvent#
PySide6.Qt3DRender.Qt3DRender.QPickTriangleEvent(position, worldIntersection, localIntersection, distance, triangleIndex, vertex1Index, vertex2Index, vertex3Index)
PySide6.Qt3DRender.Qt3DRender.QPickTriangleEvent(position, worldIntersection, localIntersection, distance, triangleIndex, vertex1Index, vertex2Index, vertex3Index, button, buttons, modifiers, uvw)
- Parameters
vertex2Index –
uint
position –
PySide6.QtCore.QPointF
uvw –
PySide6.QtGui.QVector3D
vertex1Index –
uint
triangleIndex –
uint
buttons – int
distance – float
button –
Buttons
worldIntersection –
PySide6.QtGui.QVector3D
modifiers – int
localIntersection –
PySide6.QtGui.QVector3D
vertex3Index –
uint
Constructs a new QPickEvent
.
*
QPickTriangleEvent
Constructs a new QPickEvent
with the given parameters * position
, * worldIntersection
, * localIntersection
, * distance
, * triangleIndex
, * vertex1Index
, * vertex2Index
and * vertex3Index
- PySide6.Qt3DRender.Qt3DRender.QPickTriangleEvent.triangleIndex()#
- Return type
uint
Specifies the triangle index of the event
- PySide6.Qt3DRender.Qt3DRender.QPickTriangleEvent.uvw()#
- Return type
- PySide6.Qt3DRender.Qt3DRender.QPickTriangleEvent.vertex1Index()#
- Return type
uint
Specifies the index of the first vertex in the triangle
- PySide6.Qt3DRender.Qt3DRender.QPickTriangleEvent.vertex2Index()#
- Return type
uint
Specifies the index of the second vertex in the triangle
- PySide6.Qt3DRender.Qt3DRender.QPickTriangleEvent.vertex3Index()#
- Return type
uint
Specifies the index of the third vertex in the triangle