An abstract class, which offers methods to run operations on the WorkingMemory and the Scene.
More...
#include <MemoryX/gui-plugins/SceneEditor/controller/Operation.h>
An abstract class, which offers methods to run operations on the WorkingMemory and the Scene.
- See also
- scene3D::Scene
-
memoryxcontroller::WorkingMemoryController
◆ Operation() [1/2]
◆ Operation() [2/2]
◆ createInverseOperation()
Returns a Operation, which reverts the changes done in this instance of the Operation.
- Returns
- the inverse Operation
Implemented in AddOperation, AddToGroupOperation, CreateGroupOperation, DeleteGroupOperation, DeselectOperation, EmptyOperation, RemoveFromGroupOperation, RemoveOperation, RenameGroupOperation, RotateTranslateOperation, and SelectOperation.
◆ executeOnScene()
| virtual void executeOnScene |
( |
| ) |
|
|
protectedpure virtual |
Executes the Operation on the given Scene.
- See also
- scene3D::Scene
Implemented in AddOperation, AddToGroupOperation, CreateGroupOperation, DeleteGroupOperation, DeselectOperation, EmptyOperation, RemoveFromGroupOperation, RemoveOperation, RenameGroupOperation, RotateTranslateOperation, and SelectOperation.
◆ executeOnWorkingMemory()
| virtual void executeOnWorkingMemory |
( |
| ) |
|
|
protectedpure virtual |
Executes the Operation on the given WorkingMemory.
- See also
- memoryxcontroller::WorkingMemoryController
Implemented in AddOperation, AddToGroupOperation, CreateGroupOperation, DeleteGroupOperation, DeselectOperation, EmptyOperation, RemoveFromGroupOperation, RemoveOperation, RenameGroupOperation, RotateTranslateOperation, and SelectOperation.
◆ getMemoryXController()
◆ getObjectId()
| std::string getObjectId |
( |
| ) |
const |
Returns the ID of the object, this Operation is working on.
- Returns
- the ID
◆ getScene()
◆ isExecuteable()
Return wehether the operation can be executed currently.
If the Operation is never executeable this method return true.
- Returns
- true, if the operation can be executed; false otherwise
Reimplemented in RemoveOperation, and RotateTranslateOperation.
◆ setObjectId()
| void setObjectId |
( |
const std::string & | objectId | ) |
|
|
protected |
Sets the ID, this operation is working on.
- Parameters
-
◆ Controller
◆ UndoRedoStack
The documentation for this class was generated from the following files: