Qt3DExtras.QAbstractCameraController

The QAbstractCameraController class provides basic functionality for camera controllers. More

Inheritance diagram of PySide2.Qt3DExtras.Qt3DExtras.QAbstractCameraController

Inherited by: Qt3DExtras.QFirstPersonCameraController, Qt3DExtras.QOrbitCameraController

New in version 5.10.

Synopsis

Functions

Signals

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 PySide2.Qt3DExtras.Qt3DExtras.QAbstractCameraController([parent=None])
Parameters

parentQNode

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

float

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

accelerationfloat

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

QCamera

See also

setCamera()

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

float

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

decelerationfloat

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

QKeyboardDevice

Provides access to the keyboard device.

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

float

See also

setLinearSpeed()

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

float

See also

setLookSpeed()

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

QMouseDevice

Provides access to the mouse device.

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

accelerationfloat

See also

acceleration()

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

cameraQCamera

See also

camera()

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

decelerationfloat

See also

deceleration()

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

linearSpeedfloat

See also

linearSpeed()

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

lookSpeedfloat

See also

lookSpeed()