QAbstractCameraController Class
class Qt3DExtras::QAbstractCameraControllerThe QAbstractCameraController class provides basic functionality for camera controllers. More...
Header: | #include <QAbstractCameraController> |
qmake: | QT += 3dextras |
Since: | Qt 5.10 |
Inherits: | Qt3DCore::QEntity |
Inherited By: | Qt3DExtras::QFirstPersonCameraController and Qt3DExtras::QOrbitCameraController |
This class was introduced in Qt 5.10.
Protected Functions
Qt3DInput::QKeyboardDevice * | keyboardDevice() const |
Qt3DInput::QMouseDevice * | mouseDevice() const |
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.
Member Function Documentation
[protected]
Qt3DInput::QKeyboardDevice *QAbstractCameraController::keyboardDevice() const
Provides access to the keyboard device.
[protected]
Qt3DInput::QMouseDevice *QAbstractCameraController::mouseDevice() const
Provides access to the mouse device.