QPickTriangleEventclass holds information when a triangle is picked. 更多 …
def
triangleIndex
()
def
uvw
()
def
vertex1Index
()
def
vertex2Index
()
def
vertex3Index
()
When QPickingSettings::pickMode() is set to
TrianglePicking, the signals onQObjectPickerwill carry an instance ofQPickTriangleEvent.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.
另请参阅
QPickingSettingsQPickEventQObjectPickerQAttribute
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
构造新
QPickEvent
.
*
QPickTriangleEvent
构造新
QPickEvent
with the given parameters *
position
, *
worldIntersection
, *
localIntersection
, *
distance
, *
triangleIndex
, *
vertex1Index
, *
vertex2Index
and *
vertex3Index
PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent.
triangleIndex
(
)
¶
uint
Returns the index of the picked triangle
PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent.
uvw
(
)
¶
QVector3D
Returns the 3D coordinates u,v, and w.
PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent.
vertex1Index
(
)
¶
uint
Returns the index of the first point of the picked triangle
PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent.
vertex2Index
(
)
¶
uint
Returns the index of the second point of the picked triangle
PySide2.Qt3DRender.Qt3DRender.QPickTriangleEvent.
vertex3Index
(
)
¶
uint
Returns index of third point of picked triangle