QAbstract3DInputHandler

The base class for implementations of input handlers. More

Inheritance diagram of PySide6.QtDataVisualization.QAbstract3DInputHandler

Inherited by: Q3DInputHandler, QTouch3DInputHandler

Synopsis

Functions

Virtual functions

Detailed Description

QAbstract3DInputHandler is the base class that is subclassed by different input handling implementations that take input events and translate those to camera and light movements. Input handlers also translate raw input events to slicing and selection events in the scene.

class PySide6.QtDataVisualization.QAbstract3DInputHandler([parent=None])
Parameters

parentPySide6.QtCore.QObject

Constructs the base class. An optional parent parameter can be given and is then passed to QObject constructor.

PySide6.QtDataVisualization.QAbstract3DInputHandler.InputView

Predefined input views for mouse and touch based input handlers.

Constant

Description

QAbstract3DInputHandler.InputViewNone

Mouse or touch not on a view.

QAbstract3DInputHandler.InputViewOnPrimary

Mouse or touch input received on the primary view area. If secondary view is displayed when inputView becomes , secondary view is closed.

QAbstract3DInputHandler.InputViewOnSecondary

Mouse or touch input received on the secondary view area.

PySide6.QtDataVisualization.QAbstract3DInputHandler.inputPosition()
Return type

PySide6.QtCore.QPoint

PySide6.QtDataVisualization.QAbstract3DInputHandler.inputView()
Return type

InputView

See also

setInputView()

PySide6.QtDataVisualization.QAbstract3DInputHandler.inputViewChanged(view)
Parameters

viewInputView

PySide6.QtDataVisualization.QAbstract3DInputHandler.mouseDoubleClickEvent(event)
Parameters

eventPySide6.QtGui.QMouseEvent

Override this to handle mouse double click events. Mouse double click event is given in the event.

PySide6.QtDataVisualization.QAbstract3DInputHandler.mouseMoveEvent(event, mousePos)
Parameters

Override this to handle mouse move events. Mouse move event is given in the event and the mouse position in mousePos.

PySide6.QtDataVisualization.QAbstract3DInputHandler.mousePressEvent(event, mousePos)
Parameters

Override this to handle mouse press events. Mouse press event is given in the event and the mouse position in mousePos.

PySide6.QtDataVisualization.QAbstract3DInputHandler.mouseReleaseEvent(event, mousePos)
Parameters

Override this to handle mouse release events. Mouse release event is given in the event and the mouse position in mousePos.

PySide6.QtDataVisualization.QAbstract3DInputHandler.positionChanged(position)
Parameters

positionPySide6.QtCore.QPoint

PySide6.QtDataVisualization.QAbstract3DInputHandler.prevDistance()
Return type

int

Returns the manhattan length between last two input positions.

PySide6.QtDataVisualization.QAbstract3DInputHandler.previousInputPos()
Return type

PySide6.QtCore.QPoint

Returns the previous input position.

PySide6.QtDataVisualization.QAbstract3DInputHandler.scene()
Return type

PySide6.QtDataVisualization.Q3DScene

See also

setScene()

PySide6.QtDataVisualization.QAbstract3DInputHandler.sceneChanged(scene)
Parameters

scenePySide6.QtDataVisualization.Q3DScene

PySide6.QtDataVisualization.QAbstract3DInputHandler.setInputPosition(position)
Parameters

positionPySide6.QtCore.QPoint

See also

inputPosition()

PySide6.QtDataVisualization.QAbstract3DInputHandler.setInputView(inputView)
Parameters

inputViewInputView

See also

inputView()

PySide6.QtDataVisualization.QAbstract3DInputHandler.setPrevDistance(distance)
Parameters

distance – int

Sets the distance (manhattan length) between last two input positions.

See also

prevDistance()

PySide6.QtDataVisualization.QAbstract3DInputHandler.setPreviousInputPos(position)
Parameters

positionPySide6.QtCore.QPoint

Sets the previous input position to the point given by position.

PySide6.QtDataVisualization.QAbstract3DInputHandler.setScene(scene)
Parameters

scenePySide6.QtDataVisualization.Q3DScene

See also

scene()

PySide6.QtDataVisualization.QAbstract3DInputHandler.touchEvent(event)
Parameters

eventPySide6.QtGui.QTouchEvent

Override this to handle touch input events. Touch event is given in the event.

PySide6.QtDataVisualization.QAbstract3DInputHandler.wheelEvent(event)
Parameters

eventPySide6.QtGui.QWheelEvent

Override this to handle wheel events. Wheel event is given in the event.