QAbstractCameraController#
The QAbstractCameraController class provides basic functionality for camera controllers. More…
Inherited by: QOrbitCameraController, QFirstPersonCameraController
Synopsis#
Properties#
Functions#
def
acceleration()def
camera()def
deceleration()def
keyboardDevice()def
linearSpeed()def
lookSpeed()def
mouseDevice()def
setAcceleration(acceleration)def
setCamera(camera)def
setDeceleration(deceleration)def
setLinearSpeed(linearSpeed)def
setLookSpeed(lookSpeed)
Signals#
def
accelerationChanged(acceleration)def
cameraChanged()def
decelerationChanged(deceleration)def
linearSpeedChanged()def
lookSpeedChanged()
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.
Derived classes need only implement the frameActionTriggered() method to move the camera.
- class PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Note
Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.acceleration: float#
Holds the current acceleration of the camera controller.
- Access functions:
acceleration()setAcceleration(acceleration)Signal
accelerationChanged(acceleration)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.camera: PySide6.Qt3DRender.Qt3DRender.QCamera#
Holds the currently controlled camera.
- Access functions:
camera()setCamera(camera)Signal
cameraChanged()
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.deceleration: float#
Holds the current deceleration of the camera controller.
- Access functions:
deceleration()setDeceleration(deceleration)Signal
decelerationChanged(deceleration)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.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:
linearSpeed()setLinearSpeed(linearSpeed)Signal
linearSpeedChanged()
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.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:
lookSpeed()setLookSpeed(lookSpeed)Signal
lookSpeedChanged()
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.acceleration()#
- Return type:
float
See also
Getter of property acceleration .
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.accelerationChanged(acceleration)#
- Parameters:
acceleration – float
Notification signal of property acceleration .
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.camera()#
- Return type:
See also
Getter of property camera .
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.cameraChanged()#
Notification signal of property camera .
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.deceleration()#
- Return type:
float
See also
Getter of property deceleration .
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.decelerationChanged(deceleration)#
- Parameters:
deceleration – float
Notification signal of property deceleration .
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.keyboardDevice()#
- Return type:
Provides access to the keyboard device.
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.linearSpeed()#
- Return type:
float
See also
Getter of property linearSpeed .
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.linearSpeedChanged()#
Notification signal of property linearSpeed .
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.lookSpeed()#
- Return type:
float
See also
Getter of property lookSpeed .
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.lookSpeedChanged()#
Notification signal of property lookSpeed .
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.mouseDevice()#
- Return type:
Provides access to the mouse device.
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.setAcceleration(acceleration)#
- Parameters:
acceleration – float
See also
Setter of property acceleration .
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.setCamera(camera)#
- Parameters:
See also
Setter of property camera .
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.setDeceleration(deceleration)#
- Parameters:
deceleration – float
See also
Setter of property deceleration .
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.setLinearSpeed(linearSpeed)#
- Parameters:
linearSpeed – float
See also
Setter of property linearSpeed .
- PySide6.Qt3DExtras.Qt3DExtras.QAbstractCameraController.setLookSpeed(lookSpeed)#
- Parameters:
lookSpeed – float
See also
Setter of property lookSpeed .