21 using OpenFolder = std::function<Expected<LoadedObjects>(
const std::filesystem::path&,
const ProgressCallback& )>;
29 std::shared_ptr<SceneRootObject>
scene;
namespace AsyncObjectLoad
Definition MRIOFormatsRegistry.h:346
MRMESH_API Result fromAnySupportedFormat(const std::vector< std::filesystem::path > &files, const Settings &settings={})
std::function< void(Result)> PostLoadCallback
Definition MRSceneLoad.h:48
MRMESH_API void asyncFromAnySupportedFormat(const std::vector< std::filesystem::path > &files, const PostLoadCallback &postLoadCallback, const Settings &settings={})
Scene loading result.
Definition MRSceneLoad.h:27
bool isSceneConstructed
Marks whether the scene was loaded from a single file (false) or was built from scratch (true)
Definition MRSceneLoad.h:31
std::string errorSummary
Definition MRSceneLoad.h:36
std::vector< std::filesystem::path > loadedFiles
List of successfully loaded files.
Definition MRSceneLoad.h:33
std::string warningSummary
Definition MRSceneLoad.h:39
std::shared_ptr< SceneRootObject > scene
The loaded scene or empty object.
Definition MRSceneLoad.h:29
Definition MRSceneLoad.h:11
std::function< Expected< LoadedObjects >(const std::filesystem::path &, const ProgressCallback &)> OpenFolder
Definition MRSceneLoad.h:21
ProgressCallback progress
to report loading progress and allow the user to cancel it
Definition MRSceneLoad.h:17
OpenFolder openFolder
Definition MRSceneLoad.h:22
std::optional< LengthUnit > targetUnit
Definition MRSceneLoad.h:14