MeshLib Documentation
Loading...
Searching...
No Matches
MRSceneOperations.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRViewerFwd.h"
4
5namespace MR
6{
7
11{
12 std::shared_ptr<Object> root;
13 std::vector<std::shared_ptr<Object>> subobjects;
14};
15
19{
20 std::shared_ptr<Object> root;
21 std::vector<std::shared_ptr<ObjectMesh>> objsMesh;
22 std::vector<std::shared_ptr<ObjectLines>> objsLines;
23 std::vector<std::shared_ptr<ObjectPoints>> objsPoints;
24
25 MRVIEWER_API static TypedFlatTree fromFlatTree( const FlatTree& tree );
26};
27
32MRVIEWER_API std::vector<FlatTree> getFlatSubtrees( const std::vector<std::shared_ptr<Object>>& objs );
33
35MRVIEWER_API void mergeSubtree( TypedFlatTree subtree );
36MRVIEWER_API void mergeSubtree( std::shared_ptr<Object> rootObj );
37
38} // namespace MR
Definition MRCameraOrientationPlugin.h:8
MRVIEWER_API std::vector< FlatTree > getFlatSubtrees(const std::vector< std::shared_ptr< Object > > &objs)
MRVIEWER_API void mergeSubtree(TypedFlatTree subtree)
merge objects of same type in the object tree
Definition MRSceneOperations.h:11
std::shared_ptr< Object > root
Definition MRSceneOperations.h:12
std::vector< std::shared_ptr< Object > > subobjects
Definition MRSceneOperations.h:13
Definition MRSceneOperations.h:19
std::vector< std::shared_ptr< ObjectMesh > > objsMesh
Definition MRSceneOperations.h:21
static MRVIEWER_API TypedFlatTree fromFlatTree(const FlatTree &tree)
std::vector< std::shared_ptr< ObjectPoints > > objsPoints
Definition MRSceneOperations.h:23
std::vector< std::shared_ptr< ObjectLines > > objsLines
Definition MRSceneOperations.h:22
std::shared_ptr< Object > root
Definition MRSceneOperations.h:20