1#line 1 "D:/Jenkins/workspace/EMS/ECG/ufe/full/ufe-full-python3.11-windows/ufe/include/baseUndoableCommands.h"
2#ifndef _baseUndoableCommands
3#define _baseUndoableCommands
40 inline const Path &
path()
const {
return fPath; }
50 template <
typename VALUE_TYPE>
54 typedef std::shared_ptr<SetValueUndoableCommand>
Ptr;
66 virtual bool set(VALUE_TYPE v) = 0;
70 template <
typename VALUE_TYPE>
74 typedef std::shared_ptr<SetValue2UndoableCommand>
Ptr;
87 virtual bool set(VALUE_TYPE x, VALUE_TYPE y) = 0;
91 template <
typename VALUE_TYPE>
95 typedef std::shared_ptr<SetValue3UndoableCommand>
Ptr;
109 virtual bool set(VALUE_TYPE x, VALUE_TYPE y, VALUE_TYPE z) = 0;
113 template <
typename VALUE_TYPE>
117 typedef std::shared_ptr<SetValue4UndoableCommand>
Ptr;
132 virtual bool set(VALUE_TYPE x, VALUE_TYPE y, VALUE_TYPE z, VALUE_TYPE w) = 0;
Base class for undoable set operation commands.
void setPath(const Path &path)
Set the path of the object onto which the command is applied.
Ufe::SceneItem::Ptr sceneItem() const
const Path & path() const
BaseUndoableCommand(const Path &path)
~BaseUndoableCommand() override
static SceneItem::Ptr createItem(const Path &path)
Identify an object or 3D path in the scene.
std::shared_ptr< SceneItem > Ptr
Abstract class for set Value2 command.
SetValue2UndoableCommand(const Path &path)
Constructor.
~SetValue2UndoableCommand() override
Destructor.
std::shared_ptr< SetValue2UndoableCommand > Ptr
virtual bool set(VALUE_TYPE x, VALUE_TYPE y)=0
Abstract class for set Value3 command.
SetValue3UndoableCommand(const Path &path)
Constructor.
~SetValue3UndoableCommand() override
Destructor.
virtual bool set(VALUE_TYPE x, VALUE_TYPE y, VALUE_TYPE z)=0
std::shared_ptr< SetValue3UndoableCommand > Ptr
Abstract class for set Value4 command.
SetValue4UndoableCommand(const Path &path)
Constructor.
virtual bool set(VALUE_TYPE x, VALUE_TYPE y, VALUE_TYPE z, VALUE_TYPE w)=0
std::shared_ptr< SetValue4UndoableCommand > Ptr
~SetValue4UndoableCommand() override
Destructor.
Abstract class for set value command.
virtual bool set(VALUE_TYPE v)=0
std::shared_ptr< SetValueUndoableCommand > Ptr
~SetValueUndoableCommand() override
Destructor.
SetValueUndoableCommand(const Path &path)
Constructor.
Abstract base class for undoable commands.
Path path(const std::string &pathString)
Definition of macros for symbol visibility.