QPickTriangleEvent¶
The
QPickTriangleEventclass 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 onQObjectPickerwill carry an instance ofQPickTriangleEvent.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
QPickingSettingsQPickEventQObjectPickerQAttribute
- 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:
- param vertex2Index:
uint- param uvw:
- param modifiers:
int
- param localIntersection:
- param vertex1Index:
uint- param buttons:
int
- param distance:
float
- param position:
- param button:
- param vertex3Index:
uint- param triangleIndex:
uint
Constructs a new
QPickEvent.*
QPickTriangleEventConstructs a newQPickEventwith the given parameters *position, *worldIntersection, *localIntersection, *distance, *triangleIndex, *vertex1Index, *vertex2Indexand *vertex3Index
- PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent.triangleIndex()¶
- Return type:
uint
Specifies the triangle index of the event
- PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent.uvw()¶
- Return type:
- PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent.vertex1Index()¶
- Return type:
uint
Specifies the index of the first vertex in the triangle
- PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent.vertex2Index()¶
- Return type:
uint
Specifies the index of the second vertex in the triangle
- PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent.vertex3Index()¶
- Return type:
uint
Specifies the index of the third vertex in the triangle
© 2022 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.