MeshLib C++ Docs
Loading...
Searching...
No Matches
MRFileLoadOptions.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
MRViewerFwd.h
"
4
5
namespace
MR
6
{
7
8
using
FilesLoadedCallback = std::function<void(
const
std::vector<std::shared_ptr<Object>>& objs,
const
std::string& errors,
const
std::string& warnings )>;
9
10
struct
FileLoadOptions
11
{
13
const
char
*
undoPrefix
=
"Open "
;
14
15
enum class
ReplaceMode
16
{
17
ContructionBased
,
18
ForceReplace
,
19
ForceAdd
20
};
21
23
ReplaceMode
replaceMode
=
ReplaceMode::ContructionBased
;
24
27
FilesLoadedCallback
loadedCallback
;
28
};
29
30
}
// namespace MR
MRViewerFwd.h
MR
Definition
MRCameraOrientationPlugin.h:8
MR::FileLoadOptions
Definition
MRFileLoadOptions.h:11
MR::FileLoadOptions::loadedCallback
FilesLoadedCallback loadedCallback
Definition
MRFileLoadOptions.h:27
MR::FileLoadOptions::ReplaceMode
ReplaceMode
Definition
MRFileLoadOptions.h:16
MR::FileLoadOptions::ReplaceMode::ContructionBased
@ ContructionBased
replace current scene if new one was loaded from single scene file
MR::FileLoadOptions::ReplaceMode::ForceReplace
@ ForceReplace
MR::FileLoadOptions::ReplaceMode::ForceAdd
@ ForceAdd
MR::FileLoadOptions::replaceMode
ReplaceMode replaceMode
Determines how to deal with current scene after loading new one.
Definition
MRFileLoadOptions.h:23
MR::FileLoadOptions::undoPrefix
const char * undoPrefix
first part of undo name
Definition
MRFileLoadOptions.h:13
MeshLib
source
MRViewer
MRFileLoadOptions.h
Generated by
1.11.0