QMesh Class
(Qt3DRender::QMesh)A custom mesh loader. 更多...
头文件: | #include <Qt3DRender/QMesh> |
qmake: | QT += 3drender |
Instantiated By: | Mesh |
基类: | Qt3DRender::QGeometryRenderer |
属性
- 10 个属性继承自 Qt3DRender::QGeometryRenderer
- 1 个属性继承自 Qt3DCore::QComponent
- 3 个属性继承自 Qt3DCore::QNode
- 1 个属性继承自 QObject
公有函数
- 12 个公有函数继承自 Qt3DRender::QGeometryRenderer
- 2 个公有函数继承自 Qt3DCore::QComponent
- 11 个公有函数继承自 Qt3DCore::QNode
- 32 个公有函数继承自 QObject
公有槽函数
void | setMeshName(const QString &meshName) |
void | setSource(const QUrl &source) |
- 10 个公有槽函数继承自 Qt3DRender::QGeometryRenderer
- 1 个公有槽函数继承自 Qt3DCore::QComponent
- 3 个公有槽函数继承自 Qt3DCore::QNode
- 1 个公有槽函数继承自 QObject
信号
void | meshNameChanged(const QString &meshName) |
void | sourceChanged(const QUrl &source) |
- 10 个信号继承自 Qt3DRender::QGeometryRenderer
- 3 个信号继承自 Qt3DCore::QComponent
- 4 个信号继承自 Qt3DCore::QNode
- 2 个信号继承自 QObject
受保护的函数
QMesh(QMeshPrivate &dd, Qt3DCore::QNode *parent = nullptr) |
- 2 个受保护的函数继承自 Qt3DCore::QNode
- 9 个受保护的函数继承自 QObject
其他继承的成员
详细描述
A custom mesh loader.
Loads mesh data from external files in a variety of formats. Qt3DRender::QMesh loads data into a single mesh.
In Qt3D 5.9, QMesh supports the following formats: Wavefront OBJ, Stanford Triangle Format PLY, STL (STereoLithography). QMesh will also support Autodesk FBX files if the SDK is installed and the fbx geometry loader plugin is built and found.
If you wish to load an entire scene made of several objects, you should rather use the Qt3DRender::QSceneLoader instead.
属性
meshName : QString
Holds the name of the mesh.
访问函数:
QString | meshName() const |
void | setMeshName(const QString &meshName) |
Notifier signal:
void | meshNameChanged(const QString &meshName) |
source : QUrl
Holds the source url to the file containing the custom mesh.
访问函数:
QUrl | source() const |
void | setSource(const QUrl &source) |
Notifier signal:
void | sourceChanged(const QUrl &source) |