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{
12
13
14class ObjectVoxels;
15using ObjectPtr = std::shared_ptr<Object>;
16
18template<typename ObjectT = Object>
20{
21 std::shared_ptr<ObjectT> obj;
22 std::string warnings;
23
25 std::optional<LengthUnit> lengthUnit;
26};
27
33
36{
37 std::vector<ObjectPtr> objs;
38 std::string warnings;
39
41 std::optional<LengthUnit> lengthUnit;
42};
43
44}
Definition MRObjectVoxels.h:20
LoadedObjectT< ObjectLines > LoadedObjectLines
Definition MRLoadedObjects.h:31
std::string warnings
Definition MRLoadedObjects.h:38
LoadedObjectT< ObjectMesh > LoadedObjectMesh
Definition MRLoadedObjects.h:29
LoadedObjectT< ObjectVoxels > LoadedObjectVoxels
Definition MRLoadedObjects.h:32
LoadedObjectT< Object > LoadedObject
Definition MRLoadedObjects.h:28
std::optional< LengthUnit > lengthUnit
Definition MRLoadedObjects.h:25
std::optional< LengthUnit > lengthUnit
either empty or ends with ' '
Definition MRLoadedObjects.h:41
std::shared_ptr< Object > ObjectPtr
Definition MRLoadedObjects.h:15
std::shared_ptr< Object > obj
Definition MRLoadedObjects.h:21
std::string warnings
Definition MRLoadedObjects.h:22
std::vector< ObjectPtr > objs
Definition MRLoadedObjects.h:37
LoadedObjectT< ObjectPoints > LoadedObjectPoints
Definition MRLoadedObjects.h:30
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
result of loading (e.g. from a file) as one object (with possible subobjects)
Definition MRLoadedObjects.h:20
result of loading (e.g. from a file) as a number of objects
Definition MRLoadedObjects.h:36