QSkeletonLoader Class
class Qt3DCore::QSkeletonLoader파일에서 조인트의 스켈레톤을 로드하는 데 사용됩니다. 더 보기...
헤더: | #include <QSkeletonLoader> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
qmake: | QT += 3dcore |
QML에서: | SkeletonLoader |
상속합니다: | Qt3DCore::QAbstractSkeleton |
상태: | Deprecated |
공용 유형
enum | Status { NotReady, Ready, Error } |
속성
- createJointsEnabled : bool
- source : QUrl
- status : const Status
공용 기능
QSkeletonLoader(Qt3DCore::QNode *parent = nullptr) | |
QSkeletonLoader(const QUrl &source, Qt3DCore::QNode *parent = nullptr) | |
bool | isCreateJointsEnabled() const |
Qt3DCore::QJoint * | rootJoint() const |
QUrl | source() const |
Qt3DCore::QSkeletonLoader::Status | status() const |
공용 슬롯
void | setCreateJointsEnabled(bool enabled) |
void | setSource(const QUrl &source) |
신호
void | createJointsEnabledChanged(bool createJointsEnabled) |
void | rootJointChanged(Qt3DCore::QJoint *rootJoint) |
void | sourceChanged(const QUrl &source) |
void | statusChanged(Qt3DCore::QSkeletonLoader::Status status) |
상세 설명
스켈레톤 및 조인트를 사용하여 조인트를 직접 생성하지 않고 파일에서 전체 스켈레톤을 로드하려면 SkeletonLoader 을 사용하세요. 스켈레톤을 만들고 메시의 버텍스를 스켈레톤에 바인딩하는 작업은 Blender와 같은 3D 디지털 콘텐츠 제작 도구에서 가장 쉽게 수행할 수 있습니다. 그런 다음 결과물인 스켈레톤과 메시를 glTF 2와 같은 적절한 형식으로 내보내 Qt 3D 에서 사용할 수 있습니다.
멤버 유형 문서
enum QSkeletonLoader::Status
이 열거형은 스켈레톤의 상태를 식별합니다.
Constant | 값 | 설명 |
---|---|---|
Qt3DCore::QSkeletonLoader::NotReady | 0 | 스켈레톤이 아직 로드되지 않았습니다. |
Qt3DCore::QSkeletonLoader::Ready | 1 | 스켈레톤이 성공적으로 로드되었습니다. |
Qt3DCore::QSkeletonLoader::Error | 2 | 스켈레톤을 로드하는 동안 오류가 발생했습니다. |
프로퍼티 문서
createJointsEnabled : bool
이 속성은 createJoints가 활성화되었는지 여부를 나타내는 부울을 보유합니다.
함수에 액세스합니다:
bool | isCreateJointsEnabled() const |
void | setCreateJointsEnabled(bool enabled) |
알림 신호:
void | createJointsEnabledChanged(bool createJointsEnabled) |
source : QUrl
스켈레톤을 로드할 소스 URL을 보유합니다.
함수에 액세스합니다:
QUrl | source() const |
void | setSource(const QUrl &source) |
알림 신호:
void | sourceChanged(const QUrl &source) |
[read-only]
status : const Status
스켈레톤 로딩의 현재 상태를 유지합니다.
기능에 액세스합니다:
Qt3DCore::QSkeletonLoader::Status | status() const |
알림 신호:
void | statusChanged(Qt3DCore::QSkeletonLoader::Status status) |
멤버 함수 문서
[explicit]
QSkeletonLoader::QSkeletonLoader(Qt3DCore::QNode *parent = nullptr)
parent 를 사용하여 새 QSkeletonLoader를 구축합니다.
[explicit]
QSkeletonLoader::QSkeletonLoader(const QUrl &source, Qt3DCore::QNode *parent = nullptr)
parent 로 새 QSkeletonLoader를 빌드하고 source 을 설정합니다.
bool QSkeletonLoader::isCreateJointsEnabled() const
CreateJoints가 활성화되었는지 여부를 나타내는 부울을 반환합니다. 기본값은 false
입니다.
참고: 속성에 대한 게터 함수 createJointsEnabled.
Qt3DCore::QJoint *QSkeletonLoader::rootJoint() 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.