QAbstractCameraController

The QAbstractCameraController class provides basic functionality for camera controllers. More

Inheritance diagram of PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController

Inherited by: QOrbitCameraController, QFirstPersonCameraController

New in version 5.10.

Synopsis

Functions

Detailed Description

QAbstractCameraController sets up and handles input from keyboard, mouse, and other devices. QAbstractCameraController is an abstract class and cannot itself be instantiated. It provides a standard interface for camera controllers.

Derived classes need only implement the frameActionTriggered() method to move the camera.

class PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController([parent=None])
Parameters

parentPySide6.Qt3DCore.Qt3DCore.QNode

PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.acceleration()
Return type

float

PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.accelerationChanged(acceleration)
Parameters

acceleration – float

PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.camera()
Return type

PySide6.Qt3DRender.Qt3DRender.QCamera

See also

setCamera()

PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.cameraChanged()
PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.deceleration()
Return type

float

PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.decelerationChanged(deceleration)
Parameters

deceleration – float

PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.keyboardDevice()
Return type

PySide6.Qt3DInput.Qt3DInput.QKeyboardDevice

Provides access to the keyboard device.

PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.linearSpeed()
Return type

float

See also

setLinearSpeed()

PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.linearSpeedChanged()
PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.lookSpeed()
Return type

float

See also

setLookSpeed()

PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.lookSpeedChanged()
PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.mouseDevice()
Return type

PySide6.Qt3DInput.Qt3DInput.QMouseDevice

Provides access to the mouse device.

PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.setAcceleration(acceleration)
Parameters

acceleration – float

See also

acceleration()

PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.setCamera(camera)
Parameters

cameraPySide6.Qt3DRender.Qt3DRender.QCamera

See also

camera()

PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.setDeceleration(deceleration)
Parameters

deceleration – float

See also

deceleration()

PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.setLinearSpeed(linearSpeed)
Parameters

linearSpeed – float

See also

linearSpeed()

PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.setLookSpeed(lookSpeed)
Parameters

lookSpeed – float

See also

lookSpeed()