Qt3DRender::QMesh Class
class Qt3DRender::QMeshUn cargador de mallas personalizado. Más...
| Cabecera: | #include <Qt3DRender/QMesh> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender)target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| En QML: | Mesh |
| Hereda: | Qt3DRender::QGeometryRenderer |
| Status: | Obsoleto |
Tipos públicos
| enum | Status { None, Loading, Ready, Error } |
Propiedades
Funciones públicas
| QMesh(Qt3DCore::QNode *parent = nullptr) | |
| QString | meshName() const |
| QUrl | source() const |
| Qt3DRender::QMesh::Status | status() const |
Ranuras públicas
| void | setMeshName(const QString &meshName) |
| void | setSource(const QUrl &source) |
Señales
| void | meshNameChanged(const QString &meshName) |
| void | sourceChanged(const QUrl &source) |
| void | statusChanged(Qt3DRender::QMesh::Status status) |
Descripción detallada
Carga datos de malla desde archivos externos en una variedad de formatos. Qt3DRender::QMesh carga datos en una única malla.
En Qt3D 5.9, QMesh soporta los siguientes formatos:
- Wavefront OBJ
- Stanford Triangle Format PLY
- STL (STereoLithography)
QMesh también soportará el siguiente formato si el SDK está instalado y el plugin cargador de geometría fbx está construido y encontrado:
- Autodesk FBX
Si desea cargar una escena completa formada por varios objetos, deberá utilizar en su lugar Qt3DRender::QSceneLoader.
Véase también Qt3DRender::QSceneLoader.
Documentación de tipos de miembros
enum QMesh::Status
Este enum identifica el estado del shader utilizado.
| Constante | Valor | Descripción |
|---|---|---|
Qt3DRender::QMesh::None | 0 | A la malla fuente aún no se le ha asignado una fuente |
Qt3DRender::QMesh::Loading | 1 | La geometría de la malla se está cargando |
Qt3DRender::QMesh::Ready | 2 | La geometría de la malla se ha cargado correctamente |
Qt3DRender::QMesh::Error | 3 | Se ha producido un error al cargar la malla |
Documentación de propiedades
meshName : QString
Contiene el nombre de la malla.
Funciones de acceso:
| QString | meshName() const |
| void | setMeshName(const QString &meshName) |
Señal del notificador:
| void | meshNameChanged(const QString &meshName) |
source : QUrl
Contiene la url source al archivo que contiene la malla personalizada.
Funciones de acceso:
| QUrl | source() const |
| void | setSource(const QUrl &source) |
Señal del notificador:
| void | sourceChanged(const QUrl &source) |
[read-only] status : Status
Mantiene el estado de la carga de la malla.
Funciones de acceso:
| Qt3DRender::QMesh::Status | status() const |
Señal del notificador:
| void | statusChanged(Qt3DRender::QMesh::Status status) |
Véase también Qt3DRender::QMesh::Status.
Documentación de las funciones miembro
[explicit] QMesh::QMesh(Qt3DCore::QNode *parent = nullptr)
Construye un nuevo QMesh con parent.
© 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.