MeshLib C++ Docs
Loading...
Searching...
No Matches
MRLoadedObjects.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRUnitInfo.h"
5#include <memory>
6#include <optional>
7
8namespace MR
9{
10
11class ObjectVoxels;
12using ObjectPtr = std::shared_ptr<Object>;
13
15template<typename ObjectT = Object>
16struct LoadedObjectT
17{
18 std::shared_ptr<ObjectT> obj;
19 std::string warnings; //either empty or ends with '\n'
20
22 std::optional<LengthUnit> lengthUnit;
23};
24
25using LoadedObject = LoadedObjectT<Object>;
26using LoadedObjectMesh = LoadedObjectT<ObjectMesh>;
27using LoadedObjectPoints = LoadedObjectT<ObjectPoints>;
28using LoadedObjectLines = LoadedObjectT<ObjectLines>;
29using LoadedObjectVoxels = LoadedObjectT<ObjectVoxels>;
30
32struct LoadedObjects
33{
34 std::vector<ObjectPtr> objs;
35 std::string warnings; //either empty or ends with '\n'
36
38 std::optional<LengthUnit> lengthUnit;
39};
40
41} //namespace MR
new unsafe MR.Std.Optional_MRLengthUnit lengthUnit
new unsafe MR.Std.Optional_MRLengthUnit lengthUnit
Definition MRCameraOrientationPlugin.h:8