mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-04 20:56:50 +02:00
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
20 lines
439 B
QML
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
|
|
}
|