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

#include <MRViewer.h>

Public Types

enum class  ReplaceMode { ContructionBased , ForceReplace , ForceAdd }
 

Public Attributes

const char * undoPrefix = "Open "
 first part of undo name
 
ReplaceMode replaceMode = ReplaceMode::ContructionBased
 Determines how to deal with current scene after loading new one.
 
FilesLoadedCallback loadedCallback
 

Member Enumeration Documentation

◆ ReplaceMode

Enumerator
ContructionBased 

replace current scene if new one was loaded from single scene file

ForceReplace 
ForceAdd 

Member Data Documentation

◆ loadedCallback

FilesLoadedCallback MR::FileLoadOptions::loadedCallback

if this callback is set - it is called once when all objects are added to scene top level objects only are present here

◆ replaceMode

ReplaceMode MR::FileLoadOptions::replaceMode = ReplaceMode::ContructionBased

Determines how to deal with current scene after loading new one.

◆ undoPrefix

const char* MR::FileLoadOptions::undoPrefix = "Open "

first part of undo name


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