Qt3DCore::QSkeletonLoader Class
class Qt3DCore::QSkeletonLoaderSe utiliza para cargar un esqueleto de articulaciones desde un archivo. Más información...
| Encabezado: | #include <QSkeletonLoader> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| En QML: | SkeletonLoader |
| Heredado de: | Qt3DCore::QAbstractSkeleton |
| Estado: | Obsoleto |
Esta clase está obsoleta. Se desaconseja encarecidamente su uso en código nuevo.
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
Utiliza ` SkeletonLoader ` si deseas cargar un esqueleto completo desde un archivo en lugar de crear las articulaciones tú mismo utilizando `Skeleton` y `Joints`. La forma más sencilla de crear un esqueleto y vincular los vértices de una malla a dicho esqueleto es utilizar una herramienta de creación de contenido digital en 3D, como Blender. A continuación, el esqueleto y la malla resultantes pueden exportarse en un formato adecuado, como glTF 2, para su uso en Qt 3D.
Documentación sobre tipos de miembros
enum QSkeletonLoader::Status
Esta enumeración 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 valor booleano que indica si la función «createJoints» está activada 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 la fuente.
Funciones de acceso:
| Qt3DCore::QJoint * | rootJoint() const |
Señal de notificación:
| void | rootJointChanged(Qt3DCore::QJoint *rootJoint) |
source : QUrl
Contiene la URL de origen desde la que se carga el esqueleto.
Funciones de acceso:
| QUrl | source() const |
| void | setSource(const QUrl &source) |
Señal de notificación:
| void | sourceChanged(const QUrl &source) |
[read-only] status : Status
Contiene el estado actual de la carga del esqueleto.
Funciones de acceso:
| Qt3DCore::QSkeletonLoader::Status | status() const |
Señal de notificación:
| void | statusChanged(Qt3DCore::QSkeletonLoader::Status status) |
Documentación de las funciones de miembro
[explicit] QSkeletonLoader::QSkeletonLoader(Qt3DCore::QNode *parent = nullptr)
Crea un nuevo objeto QSkeletonLoader con parent.
[explicit] QSkeletonLoader::QSkeletonLoader(const QUrl &source, Qt3DCore::QNode *parent = nullptr)
Crea un nuevo objeto `QSkeletonLoader` con ` parent ` y establece el valor de ` source`.
bool QSkeletonLoader::isCreateJointsEnabled() const
Devuelve un valor booleano que indica si la función CreateJoints está habilitada o no. El valor por defecto es « false ».
Nota: Funcióngetter 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óngetter 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.