PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController

class QAbstractCameraController

The QAbstractCameraController class provides basic functionality for camera controllers. More

Inheritance diagram of PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController

Inherited by: QOrbitCameraController, QFirstPersonCameraController

Synopsis

Properties

Methods

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

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.

Note

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

property accelerationᅟ: float

Holds the current acceleration of the camera controller.

Access functions:
property cameraᅟ: QCamera

Holds the currently controlled camera.

Access functions:
property decelerationᅟ: float

Holds the current deceleration of the camera controller.

Access functions:
property linearSpeedᅟ: float

Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.

The default is 10.0.

Access functions:
property lookSpeedᅟ: float

Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.

The default is 180.0.

Access functions:
__init__([parent=None])
Parameters:

parentQNode

acceleration()
Return type:

float

See also

setAcceleration()

Getter of property accelerationᅟ .

accelerationChanged(acceleration)
Parameters:

acceleration – float

Notification signal of property accelerationᅟ .

camera()
Return type:

QCamera

See also

setCamera()

Getter of property cameraᅟ .

cameraChanged()

Notification signal of property cameraᅟ .

deceleration()
Return type:

float

See also

setDeceleration()

Getter of property decelerationᅟ .

decelerationChanged(deceleration)
Parameters:

deceleration – float

Notification signal of property decelerationᅟ .

keyboardDevice()
Return type:

QKeyboardDevice

Provides access to the keyboard device.

linearSpeed()
Return type:

float

See also

setLinearSpeed()

Getter of property linearSpeedᅟ .

linearSpeedChanged()

Notification signal of property linearSpeedᅟ .

lookSpeed()
Return type:

float

See also

setLookSpeed()

Getter of property lookSpeedᅟ .

lookSpeedChanged()

Notification signal of property lookSpeedᅟ .

mouseDevice()
Return type:

QMouseDevice

Provides access to the mouse device.

setAcceleration(acceleration)
Parameters:

acceleration – float

See also

acceleration()

Setter of property accelerationᅟ .

setCamera(camera)
Parameters:

cameraQCamera

See also

camera()

Setter of property cameraᅟ .

setDeceleration(deceleration)
Parameters:

deceleration – float

See also

deceleration()

Setter of property decelerationᅟ .

setLinearSpeed(linearSpeed)
Parameters:

linearSpeed – float

See also

linearSpeed()

Setter of property linearSpeedᅟ .

setLookSpeed(lookSpeed)
Parameters:

lookSpeed – float

See also

lookSpeed()

Setter of property lookSpeedᅟ .