Qt3DRender.QPickEvent¶
The
QPickEvent
class holds information when an object is picked. More…
Inherited by: Qt3DRender.QPickLineEvent, Qt3DRender.QPickPointEvent, Qt3DRender.QPickTriangleEvent
Synopsis¶
Functions¶
def
button
()def
buttons
()def
distance
()def
isAccepted
()def
localIntersection
()def
modifiers
()def
position
()def
worldIntersection
()
Slots¶
def
setAccepted
(accepted)
Signals¶
def
acceptedChanged
(accepted)
Detailed Description¶
This is received as a parameter in most of the
QObjectPicker
component signals when picking succeeds.See also
QPickingSettings
QPickTriangleEvent
QObjectPicker
-
class
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
Constructs a new
QPickEvent
.Constructs a new
QPickEvent
with the given parameters:position
,intersection
,localIntersection
anddistance
Constructs a new
QPickEvent
with the given parameters:position
,worldIntersection
,localIntersection
,distance
,button
,buttons
andmodifiers
-
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
Buttons
¶ Constant
Description
Qt3DRender.QPickEvent.LeftButton
Qt3DRender.QPickEvent.RightButton
Qt3DRender.QPickEvent.MiddleButton
Qt3DRender.QPickEvent.BackButton
Qt3DRender.QPickEvent.NoButton
-
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
Modifiers
¶ Constant
Description
Qt3DRender.QPickEvent.NoModifier
Qt3DRender.QPickEvent.ShiftModifier
Qt3DRender.QPickEvent.ControlModifier
Qt3DRender.QPickEvent.AltModifier
Qt3DRender.QPickEvent.MetaModifier
Qt3DRender.QPickEvent.KeypadModifier
-
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
acceptedChanged
(accepted)¶ - Parameters
accepted –
bool
- Return type
button
Returns mouse button that caused the event
- Return type
int
buttons
Returns bitfield to be used to check for mouse buttons that may be accompanying the pick event.
-
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
distance
()¶ - Return type
float
distance
Returns distance from camera to pick point
-
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
isAccepted
()¶ - Return type
bool
Returns true if the event has been accepted
-
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
localIntersection
()¶ - Return type
QVector3D
localIntersection
Returns coordinates of the hit in the local coordinate system of the picked entity
-
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
modifiers
()¶ - Return type
int
modifiers
Returns bitfield to be used to check for keyboard modifiers that may be accompanying the pick event.
-
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
position
()¶ - Return type
QPointF
position
Returns mouse pointer coordinate of the pick query
-
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
setAccepted
(accepted)¶ - Parameters
accepted –
bool
set if the event has been accepted to
accepted
See also
isAccepted()
-
PySide2.Qt3DRender.Qt3DRender.QPickEvent.
worldIntersection
()¶ - Return type
QVector3D
worldIntersection
Returns coordinates of the hit in world coordinate system
© 2018 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.