QOrbitCameraController Class

class Qt3DExtras::QOrbitCameraController

QOrbitCameraController 클래스를 사용하면 궤도 경로를 따라 씬 카메라를 제어할 수 있습니다. 더 보기...

Header: #include <QOrbitCameraController>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
상속합니다: Qt3DExtras::QAbstractCameraController
상태: Deprecated

속성

공용 기능

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축을 따라 마우스를 움직이면 보기 중심을 변경하지 않고 카메라를 확대/축소할 수 있습니다.
마우스 스크롤 휠보기 중심을 변경하지 않고 카메라를 확대 및 축소합니다.
화살표 키카메라 뷰포트를 기준으로 카메라를 수직 및 수평으로 이동합니다.
페이지 업 및 페이지 다운 키카메라를 앞뒤로 이동합니다.
Shift 키위쪽 및 아래쪽 화살표 키의 동작을 변경하여 뷰 중심을 변경하지 않고 카메라를 확대 및 축소합니다. 다른 이동 키는 비활성화됩니다.
Alt 키화살표 키의 동작을 변경하여 보기 중심을 중심으로 카메라를 이동 및 기울입니다. 페이지 위로 및 페이지 아래로 키를 비활성화합니다.
Escape카메라 뷰포트에서 전체 장면을 볼 수 있도록 카메라를 이동합니다.

속성 문서

zoomInLimit : float

현재 줌인 제한을 유지합니다. 줌인 제한은 카메라를 뷰 중앙에 얼마나 가까이 확대할 수 있는지를 결정합니다.

기능에 액세스합니다:

float zoomInLimit() const
void setZoomInLimit(float zoomInLimit)

알림 신호:

void zoomInLimitChanged()

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