1#line 1 "D:/Jenkins/workspace/EMS/ECG/ufe/full/ufe-full-python3.13-windows/ufe/include/baseUndoableCommands.h"
2#ifndef UFE_BASEUNDOABLECOMMANDS_H
3#define UFE_BASEUNDOABLECOMMANDS_H
41 inline const Path &
path()
const {
return fPath; }
51 template <
typename VALUE_TYPE>
55 typedef std::shared_ptr<SetValueUndoableCommand>
Ptr;
69 virtual bool set(VALUE_TYPE v) = 0;
73 template <
typename VALUE_TYPE>
77 typedef std::shared_ptr<SetValue2UndoableCommand>
Ptr;
92 virtual bool set(VALUE_TYPE x, VALUE_TYPE y) = 0;
96 template <
typename VALUE_TYPE>
100 typedef std::shared_ptr<SetValue3UndoableCommand>
Ptr;
116 virtual bool set(VALUE_TYPE x, VALUE_TYPE y, VALUE_TYPE z) = 0;
120 template <
typename VALUE_TYPE>
124 typedef std::shared_ptr<SetValue4UndoableCommand>
Ptr;
141 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.
std::string commandString() const override
Get a user friendly string representation of the command.
~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::string commandString() const override
Get a user friendly string representation of the command.
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::string commandString() const override
Get a user friendly string representation of the command.
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
std::string commandString() const override
Get a user friendly string representation of the command.
~SetValueUndoableCommand() override
Destructor.
SetValueUndoableCommand(const Path &path)
Constructor.
Abstract base class for undoable commands.
std::string string(const Path &path)
Path path(const std::string &pathString)
Definition of macros for symbol visibility.