A custom mesh loader. 更多...
头: | #include <Qt3DRender/QMesh> |
qmake: | QT += 3drender |
实例化: | Mesh |
继承: | Qt3DRender::QGeometryRenderer |
QMesh (Qt3DCore::QNode * parent = nullptr) | |
QString | meshName () const |
QUrl | source () const |
void | setMeshName (const QString & meshName ) |
void | setSource (const QUrl & source ) |
void | meshNameChanged (const QString & meshName ) |
void | sourceChanged (const QUrl & source ) |
QMesh (QMeshPrivate & dd , Qt3DCore::QNode * parent = nullptr) |
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:
QMesh will also support the following format 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 代替。
另请参阅 Qt3DRender::QSceneLoader .
Holds the name of the mesh.
访问函数:
QString | meshName () const |
void | setMeshName (const QString & meshName ) |
通知程序信号:
void | meshNameChanged (const QString & meshName ) |
保持 source url to the file containing the custom mesh.
访问函数:
QUrl | source () const |
void | setSource (const QUrl & source ) |
通知程序信号:
void | sourceChanged (const QUrl & source ) |
Default constructs an instance of QMesh.
[protected]
QMesh::
QMesh
(
QMeshPrivate
&
dd
,
Qt3DCore::QNode
*
parent
= nullptr)
Copy constructor.