MeshLib C++ Docs
Loading...
Searching...
No Matches
MRObjectSave.h
Go to the documentation of this file.
1#pragma once
2
4#include "MRExpected.h"
5#include "MRIOFilters.h"
7#include <filesystem>
8
9namespace MR
10{
11
12namespace ObjectSave
13{
14
17MRMESH_API Expected<void> toAnySupportedSceneFormat( const Object& object, const std::filesystem::path& file,
18 const Settings& settings = {} );
19
23MRMESH_API Expected<void> toAnySupportedFormat( const Object& object, const std::filesystem::path& file,
24 const Settings& settings = {} );
25
26} // namespace ObjectSave
27
37MRMESH_API Expected<void> serializeObjectTree( const Object& object, const std::filesystem::path& path,
38 FolderCallback preCompress, const ObjectSave::Settings& settings = {} );
39MRMESH_API Expected<void> serializeObjectTree( const Object& object, const std::filesystem::path& path,
40 const ObjectSave::Settings& settings = {} );
41
42} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:80
named object in the data model
Definition MRObject.h:62
MRMESH_API Expected< void > toAnySupportedSceneFormat(const Object &object, const std::filesystem::path &file, const Settings &settings={})
MRMESH_API Expected< void > toAnySupportedFormat(const Object &object, const std::filesystem::path &file, const Settings &settings={})
Definition MRCameraOrientationPlugin.h:8
std::function< void(const std::filesystem::path &tempFolderName)> FolderCallback
this callback will be called before compression on serialization and after decompression on deseriali...
Definition MRUniqueTemporaryFolder.h:11
tl::expected< T, E > Expected
Definition MRExpected.h:28
MRMESH_API Expected< void > serializeObjectTree(const Object &object, const std::filesystem::path &path, FolderCallback preCompress, const ObjectSave::Settings &settings={})
saves object subtree in given scene file (zip/mru)
Definition MRObjectSaveSettings.h:11