QAbstract3DInputHandler#

The base class for implementations of input handlers. More

Inheritance diagram of PySide6.QtDataVisualization.QAbstract3DInputHandler

Inherited by: Q3DInputHandler, QTouch3DInputHandler

Synopsis#

Properties#

  • inputPosition - Last input position based on the processed input events

  • inputView - Current enumerated input view based on the view of the processed input events

  • scene - 3D scene this abstract input handler is controlling

Functions#

Virtual functions#

Signals#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

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.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.QtDataVisualization.QAbstract3DInputHandler.inputPosition: PySide6.QtCore.QPoint#

This property holds The last input position based on the processed input events..

Access functions:
property PᅟySide6.QtDataVisualization.QAbstract3DInputHandler.inputView: InputView#

This property holds The current enumerated input view based on the view of the processed input events..

One of the InputView enum values.

When the view changes, the inputViewChanged signal is emitted.

See also

InputView

Access functions:
property PᅟySide6.QtDataVisualization.QAbstract3DInputHandler.scene: PySide6.QtDataVisualization.Q3DScene#

This property holds The 3D scene this abstract input handler is controlling..

One input handler can control one scene. Setting a scene to an input handler does not transfer the ownership of the scene.

Access functions:
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 InputViewOnPrimary, 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

Getter of property inputPosition .

PySide6.QtDataVisualization.QAbstract3DInputHandler.inputView()#
Return type:

InputView

See also

setInputView()

Getter of property inputView .

PySide6.QtDataVisualization.QAbstract3DInputHandler.inputViewChanged(view)#
Parameters:

viewInputView

Notification signal of property inputView .

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

Notification signal of property inputPosition .

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()

Getter of property scene .

PySide6.QtDataVisualization.QAbstract3DInputHandler.sceneChanged(scene)#
Parameters:

scenePySide6.QtDataVisualization.Q3DScene

Notification signal of property scene .

PySide6.QtDataVisualization.QAbstract3DInputHandler.setInputPosition(position)#
Parameters:

positionPySide6.QtCore.QPoint

See also

inputPosition()

Setter of property inputPosition .

PySide6.QtDataVisualization.QAbstract3DInputHandler.setInputView(inputView)#
Parameters:

inputViewInputView

See also

inputView()

Setter of property 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()

Setter of property 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.