Qt3DCore::QSkeletonLoader Class
class Qt3DCore::QSkeletonLoaderSe utiliza para cargar un esqueleto de articulaciones desde un archivo. Más...
| Cabecera: | #include <QSkeletonLoader> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore)target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| En QML: | SkeletonLoader |
| Hereda: | Qt3DCore::QAbstractSkeleton |
| Status: | Obsoleto |
Tipos públicos
| enum | Status { NotReady, Ready, Error } |
Propiedades
- createJointsEnabled : bool
- rootJoint : Qt3DCore::QJoint*
- source : QUrl
- status : Status
Funciones públicas
| 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 |
Ranuras públicas
| void | setCreateJointsEnabled(bool enabled) |
| void | setSource(const QUrl &source) |
Señales
| void | createJointsEnabledChanged(bool createJointsEnabled) |
| void | rootJointChanged(Qt3DCore::QJoint *rootJoint) |
| void | sourceChanged(const QUrl &source) |
| void | statusChanged(Qt3DCore::QSkeletonLoader::Status status) |
Descripción Detallada
Utilice SkeletonLoader si desea cargar un esqueleto completo desde un archivo en lugar de crear las uniones usted mismo utilizando Esqueleto y Uniones. La creación de un esqueleto y la unión de los vértices de una malla al esqueleto se realiza más fácilmente en una herramienta de creación de contenido digital 3D como Blender. El esqueleto y la malla resultantes pueden exportarse a un formato adecuado, como glTF 2, para su uso en Qt 3D.
Documentación de tipos de miembros
enum QSkeletonLoader::Status
Este enum identifica el estado del esqueleto.
| Constante | Valor | Descripción |
|---|---|---|
Qt3DCore::QSkeletonLoader::NotReady | 0 | El esqueleto aún no se ha cargado |
Qt3DCore::QSkeletonLoader::Ready | 1 | El esqueleto se ha cargado correctamente |
Qt3DCore::QSkeletonLoader::Error | 2 | Se ha producido un error al cargar el esqueleto |
Documentación de propiedades
createJointsEnabled : bool
Esta propiedad contiene un booleano que indica si createJoints está activado o no.
Funciones de acceso:
| bool | isCreateJointsEnabled() const |
| void | setCreateJointsEnabled(bool enabled) |
Señal del notificador:
| void | createJointsEnabledChanged(bool createJointsEnabled) |
[read-only] rootJoint : Qt3DCore::QJoint*
Esta propiedad contiene la articulación raíz de la jerarquía de articulaciones que forman el esqueleto.
Contiene la articulación raíz de la jerarquía del esqueleto cargada desde el origen.
Funciones de acceso:
| Qt3DCore::QJoint * | rootJoint() const |
Señal notificadora:
| void | rootJointChanged(Qt3DCore::QJoint *rootJoint) |
source : QUrl
Contiene la url de origen desde la que cargar el esqueleto.
Funciones de acceso:
| QUrl | source() const |
| void | setSource(const QUrl &source) |
Señal del notificador:
| void | sourceChanged(const QUrl &source) |
[read-only] status : Status
Indica el estado actual de la carga del esqueleto.
Funciones de acceso:
| Qt3DCore::QSkeletonLoader::Status | status() const |
Señal del notificador:
| void | statusChanged(Qt3DCore::QSkeletonLoader::Status status) |
Documentación de la función miembro
[explicit] QSkeletonLoader::QSkeletonLoader(Qt3DCore::QNode *parent = nullptr)
Construye un nuevo QSkeletonLoader con parent.
[explicit] QSkeletonLoader::QSkeletonLoader(const QUrl &source, Qt3DCore::QNode *parent = nullptr)
Construye un nuevo QSkeletonLoader con parent y establece el source.
bool QSkeletonLoader::isCreateJointsEnabled() const
Devuelve un booleano que indica si CreateJoints está activado o no. El valor por defecto es false.
Nota: Función Getter para la propiedad createJointsEnabled.
Qt3DCore::QJoint *QSkeletonLoader::rootJoint() const
Devuelve la articulación raíz de la jerarquía de articulaciones que forman el esqueleto.
Nota: Función Getter para la propiedad rootJoint.
© 2026 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.