|
|
A Operation to remove a object in the scene and the WorkingMemory. More...
#include <MemoryX/gui-plugins/SceneEditor/controller/RemoveOperation.h>
Inheritance diagram for RemoveOperation:Public Member Functions | |
| const OperationPtr | createInverseOperation () const override |
| Returns a new operation which adds the object again. More... | |
| bool | isExecuteable () override |
| Returns true, if the SceneObject is mutable. More... | |
| RemoveOperation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &objectId) | |
| Creates a new operation, which removes a object. More... | |
Public Member Functions inherited from Operation | |
| std::string | getObjectId () const |
| Returns the ID of the object, this Operation is working on. More... | |
| Operation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene) | |
| A constructor. More... | |
| Operation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &objectId) | |
| A constructor. More... | |
Protected Member Functions | |
| void | executeOnScene () override |
| Removes the object from the local Scene. More... | |
| void | executeOnWorkingMemory () override |
| Removes the object from the WorkingMemory. More... | |
Protected Member Functions inherited from Operation | |
| const std::shared_ptr< memoryxcontroller::MemoryXController > | getMemoryXController () const |
| Returns the the MemoryXController to execute the Operation at. More... | |
| const std::shared_ptr< scene3D::Scene > | getScene () const |
| Returns the the Scene to execute the Operation at. More... | |
| void | setObjectId (const std::string &objectId) |
| Sets the ID, this operation is working on. More... | |
Friends | |
| class | AddOperation |
A Operation to remove a object in the scene and the WorkingMemory.
Definition at line 47 of file RemoveOperation.h.
| RemoveOperation | ( | const std::shared_ptr< memoryxcontroller::MemoryXController > & | memoryXController, |
| const std::shared_ptr< scene3D::Scene > & | scene, | ||
| const std::string & | objectId | ||
| ) |
Creates a new operation, which removes a object.
| memoryXController | The MemoryXController to remove the object at. |
| scene | The scene to remove the object at. |
| objectId | The ID of the object to remove. |
Definition at line 53 of file RemoveOperation.cpp.
|
overridevirtual |
Returns a new operation which adds the object again.
Implements Operation.
Definition at line 66 of file RemoveOperation.cpp.
|
overrideprotectedvirtual |
Removes the object from the local Scene.
Implements Operation.
Definition at line 103 of file RemoveOperation.cpp.
|
overrideprotectedvirtual |
Removes the object from the WorkingMemory.
Implements Operation.
Definition at line 87 of file RemoveOperation.cpp.
|
overridevirtual |
Returns true, if the SceneObject is mutable.
Reimplemented from Operation.
Definition at line 121 of file RemoveOperation.cpp.
|
friend |
Definition at line 49 of file RemoveOperation.h.