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>
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
30
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
Definition MRCameraOrientationPlugin.h:8
std::shared_ptr< Object > ObjectPtr
Definition MRLoadedObjects.h:12
result of loading (e.g. from a file) as one object (with possible subobjects)
Definition MRLoadedObjects.h:17
std::optional< LengthUnit > lengthUnit
units of object coordinates and transformations (if known)
Definition MRLoadedObjects.h:22
std::shared_ptr< ObjectT > obj
Definition MRLoadedObjects.h:18
std::string warnings
Definition MRLoadedObjects.h:19
result of loading (e.g. from a file) as a number of objects
Definition MRLoadedObjects.h:33
std::string warnings
Definition MRLoadedObjects.h:35
std::optional< LengthUnit > lengthUnit
units of object coordinates and transformations (if known)
Definition MRLoadedObjects.h:38
std::vector< ObjectPtr > objs
Definition MRLoadedObjects.h:34