Provides a generic way of loading various 3D assets format into a Qt3D scene. 更多...
头: | #include <AssimpImporter> |
qmake: | QT += 3drender |
Since: | Qt 5.5 |
AssimpImporter () | |
~AssimpImporter () | |
bool | isFileTypeSupported (const QUrl & source ) const |
Qt3DCore::QEntity * | node (const QString & id ) |
Qt3DCore::QEntity * | scene (const QString & id = QString()) |
void | setSource (const QUrl & source ) |
Provides a generic way of loading various 3D assets format into a Qt3D scene.
It should be noted that Assimp aiString is explicitly defined to be UTF-8.
Constructor. Initializes a new instance of AssimpImporter .
Destructor. Cleans the parser properly before destroying it.
返回
true
if the extension of
source
is supported by the assimp parser.
Returns a Node from the scene identified by
id
。返回
nullptr
if the node was not found.
Returns a Entity node which is the root node of the scene node specified by id 。若 id is empty, the scene is assumed to be the root node of the scene.
返回
nullptr
if
id
was specified but no node matching it was found.
设置 source used by the parser to load the asset file. If the file is valid, this will trigger parsing of the file.