QFirstPersonCameraController Class

( Qt3DExtras::QFirstPersonCameraController )

The QFirstPersonCameraController class allows controlling the scene camera from the first person perspective. 更多...

頭: #include <QFirstPersonCameraController>
qmake: QT += 3dextras
Since: Qt 5.7
繼承: Qt3DExtras::QAbstractCameraController

公共函數

QFirstPersonCameraController (Qt3DCore::QNode * parent = nullptr)
virtual ~QFirstPersonCameraController ()

靜態公共成員

const QMetaObject staticMetaObject

額外繼承成員

詳細描述

The QFirstPersonCameraController class allows controlling the scene camera from the first person perspective.

The controls are:

輸入 動作
Left mouse button While the left mouse button is pressed, mouse movement along x-axis pans the camera and movement along y-axis tilts it.
Mouse scroll wheel Zooms the camera in and out without changing the view center.
Shift key Turns the fine motion control active while pressed. Makes mouse pan and tilt less sensitive.
方嚮鍵 Move the camera horizontally relative to camera viewport.
Page up and page down keys Move the camera vertically relative to camera viewport.
Escape Moves the camera so that entire scene is visible in the camera viewport.

成員函數文檔編製

QFirstPersonCameraController:: QFirstPersonCameraController ( Qt3DCore::QNode * parent = nullptr)

Default constructs an instance of QFirstPersonCameraController.

[虛擬] QFirstPersonCameraController:: ~QFirstPersonCameraController ()

Destroys the instance of QFirstPersonCameraController. The destructor is virtual.