QAnimationClipLoader Class

class Qt3DAnimation::QAnimationClipLoader

파일에서 키 프레임 애니메이션 데이터를 로드할 수 있습니다. 더 보기...

헤더: #include <QAnimationClipLoader>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
상속합니다: Qt3DAnimation::QAbstractAnimationClip
상태: Deprecated

공용 유형

enum Status { NotReady, Ready, Error }

속성

공용 기능

QUrl source() const
Qt3DAnimation::QAnimationClipLoader::Status status() const

공용 슬롯

void setSource(const QUrl &source)

신호

void sourceChanged(const QUrl &source)
void statusChanged(Qt3DAnimation::QAnimationClipLoader::Status status)

상세 설명

멤버 유형 문서

enum QAnimationClipLoader::Status

이 열거형은 애니메이션 클립의 상태를 식별합니다.

Constant설명
Qt3DAnimation::QAnimationClipLoader::NotReady0클립이 아직 로드되지 않았습니다.
Qt3DAnimation::QAnimationClipLoader::Ready1클립이 성공적으로 로드되었습니다.
Qt3DAnimation::QAnimationClipLoader::Error2클립을 로드하는 동안 오류가 발생했습니다.

속성 문서

source : QUrl

애니메이션 클립을 로드할 소스 URL을 보유합니다. 현재 glTF2 및 기본 Qt 3D json 애니메이션 파일 형식이 지원됩니다.

파일에 여러 애니메이션이 포함된 경우 소스 URL의 쿼리 매개변수를 통해 어떤 애니메이션을 로드할지 선택할 수 있습니다. 허용되는 쿼리 매개변수는 animationIndex와 animationName입니다. 둘 다 지정하면 animationName은 무시됩니다.

파일에 애니메이션이 하나만 포함된 경우에는 animationIndex 또는 animationName을 지정할 필요가 없습니다. 사용 가능한 애니메이션 하나를 사용하기만 하면 됩니다.

함수 액세스

QUrl source() const
void setSource(const QUrl &source)

알림 신호:

void sourceChanged(const QUrl &source)

[read-only] status : const Status

이 속성에는 애니메이션 클립의 상태가 포함됩니다.

기능에 액세스합니다:

Qt3DAnimation::QAnimationClipLoader::Status status() const

알림 신호:

void statusChanged(Qt3DAnimation::QAnimationClipLoader::Status status)

멤버 함수 문서

Qt3DAnimation::QAnimationClipLoader::Status QAnimationClipLoader::status() 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.