QAbstractCameraController Class

class Qt3DExtras::QAbstractCameraController

QAbstractCameraController クラスは、カメラコントローラの基本機能を提供します。詳細...

ヘッダ #include <QAbstractCameraController>
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

詳細説明

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

マウスデバイスへのアクセスを提供する。

© 2025 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.