Qt3DRender.QPickTriangleEvent

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

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent

Synopsis

Functions

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 QAttribute

class PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent

PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent(position, worldIntersection, localIntersection, distance, triangleIndex, vertex1Index, vertex2Index, vertex3Index)

PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent(position, worldIntersection, localIntersection, distance, triangleIndex, vertex1Index, vertex2Index, vertex3Index, button, buttons, modifiers, uvw)

param worldIntersection

QVector3D

param vertex2Index

uint

param uvw

QVector3D

param modifiers

int

param localIntersection

QVector3D

param vertex1Index

uint

param buttons

int

param distance

float

param position

QPointF

param button

Buttons

param vertex3Index

uint

param triangleIndex

uint

Constructs a new QPickEvent .

*

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

PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent.triangleIndex()
Return type

uint

triangleIndex Returns the index of the picked triangle

PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent.uvw()
Return type

QVector3D

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

PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent.vertex1Index()
Return type

uint

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

PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent.vertex2Index()
Return type

uint

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

PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent.vertex3Index()
Return type

uint

vertex3Index Returns index of third point of picked triangle