1#line 1 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.11-windows/ufe/include/selectionUndoableCommands.h"
2#ifndef _selectionUndoableCommands
3#define _selectionUndoableCommands
Identify an object or 3D path in the scene.
std::shared_ptr< SceneItem > Ptr
Append an item to the argument selection.
void redo() override
Redo the append.
void undo() override
Undo the append (i.e. remove).
const GlobalSelection::Ptr fSn
SelectionAppendItem(const GlobalSelection::Ptr &sn, const SceneItem::Ptr &item)
Constructor.
static Ptr createAndExecute(const GlobalSelection::Ptr &sn, const SceneItem::Ptr &item)
Clear the argument selection.
const std::list< Path > fPaths
void undo() override
Undo the clear.
static Ptr createAndExecute(const GlobalSelection::Ptr &sn)
SelectionClear(const GlobalSelection::Ptr &sn)
Constructor.
void redo() override
Redo the clear.
const GlobalSelection::Ptr fSn
Selection list for objects in the scene.
Remove an item from the argument selection.
void undo() override
Undo the remove (i.e. append).
static Ptr createAndExecute(const GlobalSelection::Ptr &sn, const SceneItem::Ptr &item)
SelectionRemoveItem(const GlobalSelection::Ptr &sn, const SceneItem::Ptr &item)
Constructor.
const GlobalSelection::Ptr fSn
void redo() override
Redo the remove.
Replace the argument selection.
void undo() override
Undo the replace.
const GlobalSelection::Ptr fSn
static Ptr createAndExecute(const GlobalSelection::Ptr &sn, const Selection &replacementSn)
const std::list< Path > fSnPaths
const std::list< Path > fReplacementSnPaths
void redo() override
Redo the replace.
SelectionReplaceWith(const GlobalSelection::Ptr &sn, const Selection &replacementSn)
Constructor.
Abstract base class for undoable commands.
std::shared_ptr< UndoableCommand > Ptr
std::shared_ptr< ObservableSelection > Ptr