Meshroom/meshroom/ui/qml/Viewer3D/MediaLoaderEntity.qml
Yann Lanthony 109b980ae5 [ui] Viewer3D: introduce new 3D media loading backend
This commit adds several components to centralize and extend 3D media loading. They are not yet integrated into Viewer3D. The entry point to this system is the MediaLibrary component that:
    * can load N medias based on a filepath or load-and-watch node attributes
    * provides a cache mechanism to instant-reload medias that were unloaded under certain conditions
    * gives access to statistics (vertex/face/camera/textureCount) through a unified interface
2018-12-07 15:57:57 +01:00

20 lines
439 B
QML

import QtQuick 2.9
import Qt3D.Core 2.1
/**
* MediaLoaderEntity provides a unified interface for accessing statistics
* of a 3D media independently from the way it was loaded.
*/
Entity {
property url source
/// Number of vertices
property int vertexCount
/// Number of faces
property int faceCount
/// Number of cameras
property int cameraCount
/// Number of textures
property int textureCount
}