QPickEventclass holds information when an object is picked. 更多 …
继承者: Qt3DRender.QPickLineEvent , Qt3DRender.QPickPointEvent , Qt3DRender.QPickTriangleEvent
def
button
()
def
buttons
()
def
distance
()
def
entity
()
def
isAccepted
()
def
localIntersection
()
def
modifiers
()
def
position
()
def
视口
()
def
worldIntersection
()
def
setAccepted
(accepted)
def
acceptedChanged
(accepted)
This is received as a parameter in most of the
QObjectPickercomponent signals when picking succeeds.另请参阅
QPickingSettingsQPickTriangleEventQObjectPicker
PySide2.Qt3DRender.Qt3DRender.
QPickEvent
¶
PySide2.Qt3DRender.Qt3DRender.QPickEvent(position, worldIntersection, localIntersection, distance)
PySide2.Qt3DRender.Qt3DRender.QPickEvent(position, worldIntersection, localIntersection, distance, button, buttons, modifiers)
- param worldIntersection
QVector3D- param modifiers
int- param localIntersection
QVector3D- param buttons
int- param distance
float- param position
QPointF- param button
构造新
QPickEvent
.
构造新
QPickEvent
with the given parameters:
position
,
intersection
,
localIntersection
and
distance
构造新
QPickEvent
with the given parameters:
position
,
worldIntersection
,
localIntersection
,
distance
,
button
,
buttons
and
modifiers
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
Buttons
¶
|
常量 |
描述 |
|---|---|
|
Qt3DRender.QPickEvent.LeftButton |
|
|
Qt3DRender.QPickEvent.RightButton |
|
|
Qt3DRender.QPickEvent.MiddleButton |
|
|
Qt3DRender.QPickEvent.BackButton |
|
|
Qt3DRender.QPickEvent.NoButton |
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
Modifiers
¶
|
常量 |
描述 |
|---|---|
|
Qt3DRender.QPickEvent.NoModifier |
|
|
Qt3DRender.QPickEvent.ShiftModifier |
|
|
Qt3DRender.QPickEvent.ControlModifier |
|
|
Qt3DRender.QPickEvent.AltModifier |
|
|
Qt3DRender.QPickEvent.MetaModifier |
|
|
Qt3DRender.QPickEvent.KeypadModifier |
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
acceptedChanged
(
accepted
)
¶
accepted
–
bool
Returns mouse button that caused the event
int
Returns bitfield to be used to check for mouse buttons that may be accompanying the pick event.
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
distance
(
)
¶
float
Returns distance from camera to pick point
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
entity
(
)
¶
QEntity
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
isAccepted
(
)
¶
bool
Returns true if the event has been accepted
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
localIntersection
(
)
¶
QVector3D
Returns coordinates of the hit in the local coordinate system of the picked entity
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
modifiers
(
)
¶
int
Returns bitfield to be used to check for keyboard modifiers that may be accompanying the pick event.
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
position
(
)
¶
QPointF
Returns mouse pointer coordinate of the pick query
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
setAccepted
(
accepted
)
¶
accepted
–
bool
set if the event has been accepted to
accepted
另请参阅
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
视口
(
)
¶
QViewport
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
worldIntersection
(
)
¶
QVector3D
Returns coordinates of the hit in world coordinate system