QOrbitCameraController Class
class Qt3DExtras::QOrbitCameraControllerQOrbitCameraControllerクラスは、軌道に沿ってシーンカメラを制御することができます。詳細...
ヘッダー | #include <QOrbitCameraController> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
qmake: | QT += 3dextras |
を継承する: | Qt3DExtras::QAbstractCameraController |
ステータス | 非推奨 |
プロパティ
- zoomInLimit : float
パブリック機能
bool | inversePan() const |
bool | inverseTilt() const |
bool | inverseXTranslate() const |
bool | inverseYTranslate() const |
QVector3D | upVector() const |
float | zoomInLimit() const |
bool | zoomTranslateViewCenter() const |
パブリックスロット
void | setInversePan(bool isInverse) |
void | setInverseTilt(bool isInverse) |
void | setInverseXTranslate(bool isInverse) |
void | setInverseYTranslate(bool isInverse) |
void | setUpVector(const QVector3D &upVector) |
void | setZoomInLimit(float zoomInLimit) |
void | setZoomTranslateViewCenter(bool isTranslate) |
シグナル
void | inversePanChanged(bool isInverse) |
void | inverseTiltChanged(bool isInverse) |
void | inverseXTranslateChanged(bool isInverse) |
void | inverseYTranslateChanged(bool isInverse) |
void | upVectorChanged(const QVector3D &upVector) |
void | zoomInLimitChanged() |
void | zoomTranslateViewCenterChanged(bool isTranslate) |
詳細説明
コントロール
入力 | アクション |
---|---|
マウスの左ボタン | マウスの左ボタンが押されている間、X軸に沿ってマウスを動かすとカメラが左右に動き、Y軸に沿って動かすとカメラが上下に動きます。 |
マウスの右ボタン | マウスの右ボタンが押されている間、x軸に沿ったマウスの移動はカメラビューセンターを中心にカメラをパンさせ、y軸に沿った移動はカメラビューセンターを中心にカメラをチルトさせます。 |
左右両方のマウスボタン | マウスの左ボタンと右ボタンの両方を押している間、y 軸に沿ってマウスを動かすと、ビューの中心を変えずにカメラをズームインまたはズームアウトします。 |
マウススクロールホイール | ビューの中心を変えずにカメラをズームイン、ズームアウトします。 |
矢印キー | カメラのビューポートに対してカメラを垂直方向および水平方向に移動します。 |
ページアップ・ページダウンキー | カメラを前後に移動します。 |
シフトキー | 上下の矢印キーの動作を変更し、ビューセンターを変更せずにカメラをズームイン/ズームアウトします。他の移動キーは無効になります。 |
Alt キー | 矢印キーの動作を変更し、ビューセンターを中心にカメラをパンおよびチルトします。ページアップ・ページダウンキーを無効にします。 |
エスケープ | シーン全体がカメラのビューポートに表示されるようにカメラを移動します。 |
© 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.