QAbstractCameraController Class

class Qt3DExtras::QAbstractCameraController

QAbstractCameraController 클래스는 카메라 컨트롤러를 위한 기본 기능을 제공합니다. 더 보기...

Header: #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

Status: Deprecated

속성

공공 기능

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.