ufe  1.0
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
selectionUndoableCommands.h
Go to the documentation of this file.
1 #line 1 "E:/jenkins/workspace/ufe-full-windows/ufe/include/selectionUndoableCommands.h"
2 #ifndef _selectionUndoableCommands
3 #define _selectionUndoableCommands
4 // ===========================================================================
5 // Copyright 2018 Autodesk, Inc. All rights reserved.
6 //
7 // Use of this software is subject to the terms of the Autodesk license
8 // agreement provided at the time of installation or download, or which
9 // otherwise accompanies this software in either electronic or hard copy form.
10 // ===========================================================================
11 
12 #include "undoableCommand.h"
13 #include "globalSelection.h"
14 #include "sceneItem.h"
15 
16 UFE_NS_DEF {
17 
19 
25 {
26 public:
27 
30  static Ptr createAndExecute(
31  const GlobalSelection::Ptr& sn,
32  const SceneItem::Ptr& item
33  );
34 
37  const GlobalSelection::Ptr& sn,
38  const SceneItem::Ptr& item
39  );
40 
42  void undo() override;
44  void redo() override;
45 
46 private:
47 
50 };
51 
53 
59 {
60 public:
61 
64  static Ptr createAndExecute(
65  const GlobalSelection::Ptr& sn,
66  const SceneItem::Ptr& item
67  );
68 
71  const GlobalSelection::Ptr& sn,
72  const SceneItem::Ptr& item
73  );
74 
76  void undo() override;
78  void redo() override;
79 
80 private:
81 
84 };
85 
86 }
87 
88 #endif /* _selectionUndoableCommands */
virtual void redo()=0
std::shared_ptr< UndoableCommand > Ptr
std::shared_ptr< ObservableSelection > Ptr
Append an item to the argument selection.
Remove an item from the argument selection.
#define UFE_NS_DEF
Definition: ufe.h:35
Abstract base class for undoable commands.
std::shared_ptr< SceneItem > Ptr
Definition: sceneItem.h:39
const GlobalSelection::Ptr fSn
const GlobalSelection::Ptr fSn
virtual void undo()=0
#define UFE_SDK_DECL
Definition: ufeExport.h:36