MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::SceneLoad::Settings Struct Reference

#include <MRSceneLoad.h>

Public Types

using OpenFolder = std::function<Expected<LoadedObjects>( const std::filesystem::path&, const ProgressCallback& )>
 

Public Attributes

std::optional< LengthUnittargetUnit
 
ProgressCallback progress
 to report loading progress and allow the user to cancel it
 
OpenFolder openFolder
 

Member Typedef Documentation

◆ OpenFolder

using MR::SceneLoad::Settings::OpenFolder = std::function<Expected<LoadedObjects>( const std::filesystem::path&, const ProgressCallback& )>

if provided then folders will be open using this functions and added to scene, otherwise folders will be skipped

Member Data Documentation

◆ openFolder

OpenFolder MR::SceneLoad::Settings::openFolder

◆ progress

ProgressCallback MR::SceneLoad::Settings::progress

to report loading progress and allow the user to cancel it

◆ targetUnit

std::optional<LengthUnit> MR::SceneLoad::Settings::targetUnit

if both targetUnit and loadedObject.lengthUnit are not nullopt, then adjusts transformations of the loaded objects to match target units


The documentation for this struct was generated from the following file: