MeshLib C++ Docs
Loading...
Searching...
No Matches
MRSceneReorder.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRViewerFwd.h"
4#include <vector>
5
6namespace MR
7{
8
10{
12 std::vector<Object*> who;
13
15 Object* to{ nullptr };
16
19 bool before{ false };
20
22 std::string historyName{ "Reorder Scene" };
23};
24
27MRVIEWER_API bool sceneReorderWithUndo( const SceneReorder & task );
28
31MRVIEWER_API bool moveAllChildrenWithUndo( Object& oldParent, Object& newParent, const std::string& historyName = "Move Children" );
32
33} //namespace MR
named object in the data model
Definition MRObject.h:62
Definition MRCameraOrientationPlugin.h:8
MRVIEWER_API bool moveAllChildrenWithUndo(Object &oldParent, Object &newParent, const std::string &historyName="Move Children")
MRVIEWER_API bool sceneReorderWithUndo(const SceneReorder &task)
Definition MRSceneReorder.h:10
std::string historyName
the name of added undo history scope
Definition MRSceneReorder.h:22
bool before
Definition MRSceneReorder.h:19
Object * to
target object
Definition MRSceneReorder.h:15
std::vector< Object * > who
objects that will be moved
Definition MRSceneReorder.h:12