Qt3DExtras::QAbstractCameraController Class
class Qt3DExtras::QAbstractCameraControllerQAbstractCameraController クラスは、カメラコントローラのための基本的な機能を提供します。詳細...
| ヘッダー: | #include <qabstractcameracontroller.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| 継承元: | Qt3DCore::QEntity |
| 継承元: | Qt3DExtras::QFirstPersonCameraController およびQt3DExtras::QOrbitCameraController |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨しません。
プロパティ
|
|
パブリック関数
| float | acceleration() const |
| Qt3DRender::QCamera * | camera() const |
| float | deceleration() const |
| float | linearSpeed() const |
| float | lookSpeed() const |
| void | setAcceleration(float acceleration) |
| void | setCamera(Qt3DRender::QCamera *camera) |
| void | setDeceleration(float deceleration) |
| void | setLinearSpeed(float linearSpeed) |
| void | setLookSpeed(float lookSpeed) |
シグナル
| void | accelerationChanged(float acceleration) |
| void | cameraChanged() |
| void | decelerationChanged(float deceleration) |
| void | linearSpeedChanged() |
| void | lookSpeedChanged() |
保護関数
| Qt3DInput::QKeyboardDevice * | keyboardDevice() const |
| Qt3DInput::QMouseDevice * | mouseDevice() const |
プライベート関数
| virtual void | moveCamera(const Qt3DExtras::QAbstractCameraController::InputState &state, float dt) = 0 |
詳細な説明
QAbstractCameraController は、キーボード、マウス、およびその他のデバイスからの入力を設定および処理します。QAbstractCameraController は抽象クラスであるため、それ自体をインスタンス化することはできません。これは、カメラコントローラ向けの標準インターフェースを提供します。
プロパティのドキュメント
acceleration : float
カメラコントローラの現在の加速度を保持します。
アクセス関数:
| float | acceleration() const |
| void | setAcceleration(float acceleration) |
通知信号:
| void | accelerationChanged(float acceleration) |
camera : Qt3DRender::QCamera*
現在制御中のカメラを保持します。
アクセス機能:
| Qt3DRender::QCamera * | camera() const |
| void | setCamera(Qt3DRender::QCamera *camera) |
通知信号:
| void | cameraChanged() |
deceleration : float
カメラコントローラの現在の減速率を保持します。
アクセス関数:
| float | deceleration() const |
| void | setDeceleration(float deceleration) |
通知シグナル:
| void | decelerationChanged(float deceleration) |
linearSpeed : float
カメラコントローラーの現在の直線速度を保持します。直線速度は、カメラの移動速度を決定します。
デフォルト値は10.0 です。
アクセス関数:
| float | linearSpeed() const |
| void | setLinearSpeed(float linearSpeed) |
通知シグナル:
| void | linearSpeedChanged() |
lookSpeed : float
カメラコントローラーの現在の視線速度を保持します。視線速度は、カメラのパンおよびチルトの回転速度を決定します。
デフォルト値は180.0 です。
アクセス関数:
| float | lookSpeed() const |
| void | setLookSpeed(float lookSpeed) |
通知シグナル:
| void | lookSpeedChanged() |
メンバ関数のドキュメント
[protected] Qt3DInput::QKeyboardDevice *QAbstractCameraController::keyboardDevice() const
キーボードデバイスへのアクセスを提供します。
[protected] Qt3DInput::QMouseDevice *QAbstractCameraController::mouseDevice() const
マウスデバイスへのアクセスを提供します。
[pure virtual private] void QAbstractCameraController::moveCamera(const Qt3DExtras::QAbstractCameraController::InputState &state, float dt)
サブクラスは、コントローラー固有のカメラ移動を実装するために、このメソッドをオーバーライドする必要があります。state は入力状態を表し、dt はタイムステップを表します。
この関数は、フレームアクションがトリガーされるたびに呼び出されます。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.