|
|
An abstract class, which offers methods to run operations on the WorkingMemory and the Scene. More...
#include <MemoryX/gui-plugins/SceneEditor/controller/Operation.h>
Inheritance diagram for Operation:Public Member Functions | |
| virtual const OperationPtr | createInverseOperation () const =0 |
| Returns a Operation, which reverts the changes done in this instance of the Operation. | |
| std::string | getObjectId () const |
| Returns the ID of the object, this Operation is working on. | |
| virtual bool | isExecuteable () |
| Return wehether the operation can be executed currently. | |
| Operation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene) | |
| A constructor. | |
| Operation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &objectId) | |
| A constructor. | |
Protected Member Functions | |
| virtual void | executeOnScene ()=0 |
| Executes the Operation on the given Scene. | |
| virtual void | executeOnWorkingMemory ()=0 |
| Executes the Operation on the given WorkingMemory. | |
| const std::shared_ptr< memoryxcontroller::MemoryXController > | getMemoryXController () const |
| Returns the the MemoryXController to execute the Operation at. | |
| const std::shared_ptr< scene3D::Scene > | getScene () const |
| Returns the the Scene to execute the Operation at. | |
| void | setObjectId (const std::string &objectId) |
| Sets the ID, this operation is working on. | |
Friends | |
| class | Controller |
| class | UndoRedoStack |
An abstract class, which offers methods to run operations on the WorkingMemory and the Scene.
Definition at line 44 of file Operation.h.
| Operation | ( | const std::shared_ptr< memoryxcontroller::MemoryXController > & | memoryXController, |
| const std::shared_ptr< scene3D::Scene > & | scene, | ||
| const std::string & | objectId ) |
A constructor.
Sets the Scene and WorkingMemory to execute the scene at.
| memoryXController | the Controller for the WorkingMemory instance to run the Operation at |
| scene | the Scene to run the Operation at |
| the | ID of the object, which is affected by this operation |
Definition at line 26 of file Operation.cpp.
Here is the caller graph for this function:| Operation | ( | const std::shared_ptr< memoryxcontroller::MemoryXController > & | memoryXController, |
| const std::shared_ptr< scene3D::Scene > & | scene ) |
A constructor.
Sets the Scene and WorkingMemory to execute the scene at.
| memoryXController | the Controller for the WorkingMemory instance to run the Operation at |
| scene | the Scene to run the Operation at |
Definition at line 34 of file Operation.cpp.
|
pure virtual |
Returns a Operation, which reverts the changes done in this instance of the Operation.
Implemented in AddOperation, AddToGroupOperation, CreateGroupOperation, DeleteGroupOperation, DeselectOperation, EmptyOperation, RemoveFromGroupOperation, RemoveOperation, RenameGroupOperation, RotateTranslateOperation, and SelectOperation.
|
protectedpure virtual |
Executes the Operation on the given Scene.
Implemented in AddOperation, AddToGroupOperation, CreateGroupOperation, DeleteGroupOperation, DeselectOperation, EmptyOperation, RemoveFromGroupOperation, RemoveOperation, RenameGroupOperation, RotateTranslateOperation, and SelectOperation.
|
protectedpure virtual |
Executes the Operation on the given WorkingMemory.
Implemented in AddOperation, AddToGroupOperation, CreateGroupOperation, DeleteGroupOperation, DeselectOperation, EmptyOperation, RemoveFromGroupOperation, RemoveOperation, RenameGroupOperation, RotateTranslateOperation, and SelectOperation.
|
protected |
Returns the the MemoryXController to execute the Operation at.
Definition at line 48 of file Operation.cpp.
Here is the caller graph for this function:| std::string getObjectId | ( | ) | const |
Returns the ID of the object, this Operation is working on.
Definition at line 54 of file Operation.cpp.
Here is the caller graph for this function:
|
protected |
Returns the the Scene to execute the Operation at.
Definition at line 42 of file Operation.cpp.
Here is the caller graph for this function:
|
virtual |
Return wehether the operation can be executed currently.
If the Operation is never executeable this method return true.
Reimplemented in RemoveOperation, and RotateTranslateOperation.
Definition at line 66 of file Operation.cpp.
|
protected |
Sets the ID, this operation is working on.
| the | new ID |
Definition at line 60 of file Operation.cpp.
Here is the caller graph for this function:
|
friend |
Definition at line 46 of file Operation.h.
|
friend |
Definition at line 47 of file Operation.h.