Q3DInputHandler¶
Basic wheel mouse based input handler. More…
Inherited by: QTouch3DInputHandler
Synopsis¶
Functions¶
def
isRotationEnabled
()def
isSelectionEnabled
()def
isZoomAtTargetEnabled
()def
isZoomEnabled
()def
setRotationEnabled
(enable)def
setSelectionEnabled
(enable)def
setZoomAtTargetEnabled
(enable)def
setZoomEnabled
(enable)
Signals¶
def
rotationEnabledChanged
(enable)def
selectionEnabledChanged
(enable)def
zoomAtTargetEnabledChanged
(enable)def
zoomEnabledChanged
(enable)
Detailed Description¶
Q3DInputHandler
is the basic input handler for wheel mouse type of input devices.
Default input handler has the following functionalty:
Mouse action
Action
Drag with right button pressed
Rotate graph within limits set for
Q3DCamera
.Left click
Select item under cursor or remove selection if none. May open the secondary view depending on the
selection mode
.Mouse wheel
Zoom in/out within the allowable zoom range set for
Q3DCamera
.Left click on the primary view when the secondary view is visible
Closes the secondary view.
Note
Secondary view is available only for
Q3DBars
andQ3DSurface
graphs.
Rotation, zoom, and selection can each be individually disabled using corresponding properties of this class.
- class PySide6.QtDataVisualization.Q3DInputHandler([parent=None])¶
- Parameters
parent –
PySide6.QtCore.QObject
Constructs the basic mouse input handler. An optional parent
parameter can be given and is then passed to QObject
constructor.
- PySide6.QtDataVisualization.Q3DInputHandler.isRotationEnabled()¶
- Return type
bool
This property holds Whether this input handler allows graph rotation..
Defaults to true
.
- PySide6.QtDataVisualization.Q3DInputHandler.isSelectionEnabled()¶
- Return type
bool
This property holds Whether this input handler allows selection from the graph..
Defaults to true
.
- PySide6.QtDataVisualization.Q3DInputHandler.isZoomAtTargetEnabled()¶
- Return type
bool
This property holds Whether zooming should change the camera target so that the zoomed point of the graph stays at the same location after the zoom..
Defaults to true
.
- PySide6.QtDataVisualization.Q3DInputHandler.isZoomEnabled()¶
- Return type
bool
This property holds Whether this input handler allows graph zooming..
Defaults to true
.
- PySide6.QtDataVisualization.Q3DInputHandler.rotationEnabledChanged(enable)¶
- Parameters
enable – bool
- PySide6.QtDataVisualization.Q3DInputHandler.selectionEnabledChanged(enable)¶
- Parameters
enable – bool
- PySide6.QtDataVisualization.Q3DInputHandler.setRotationEnabled(enable)¶
- Parameters
enable – bool
This property holds Whether this input handler allows graph rotation..
Defaults to true
.
- PySide6.QtDataVisualization.Q3DInputHandler.setSelectionEnabled(enable)¶
- Parameters
enable – bool
This property holds Whether this input handler allows selection from the graph..
Defaults to true
.
- PySide6.QtDataVisualization.Q3DInputHandler.setZoomAtTargetEnabled(enable)¶
- Parameters
enable – bool
This property holds Whether zooming should change the camera target so that the zoomed point of the graph stays at the same location after the zoom..
Defaults to true
.
- PySide6.QtDataVisualization.Q3DInputHandler.setZoomEnabled(enable)¶
- Parameters
enable – bool
This property holds Whether this input handler allows graph zooming..
Defaults to true
.
- PySide6.QtDataVisualization.Q3DInputHandler.zoomAtTargetEnabledChanged(enable)¶
- Parameters
enable – bool
- PySide6.QtDataVisualization.Q3DInputHandler.zoomEnabledChanged(enable)¶
- Parameters
enable – bool
© 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.