|
A operation to removes a object from a existing group. More...
#include <MemoryX/gui-plugins/SceneEditor/controller/RemoveFromGroupOperation.h>
Public Member Functions | |
const OperationPtr | createInverseOperation () const override |
Returns a new operation which adds the object to the group. More... | |
RemoveFromGroupOperation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &groupName, const std::string &objectId) | |
Creates a new operation, which removes a object from a group. More... | |
Public Member Functions inherited from Operation | |
std::string | getObjectId () const |
Returns the ID of the object, this Operation is working on. More... | |
virtual bool | isExecuteable () |
Return wehether the operation can be executed currently. 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 group. More... | |
void | executeOnWorkingMemory () override |
Because the WorkingMemory does not support groups, nothing is done here. 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... | |
A operation to removes a object from a existing group.
Definition at line 41 of file RemoveFromGroupOperation.h.
RemoveFromGroupOperation | ( | const std::shared_ptr< memoryxcontroller::MemoryXController > & | memoryXController, |
const std::shared_ptr< scene3D::Scene > & | scene, | ||
const std::string & | groupName, | ||
const std::string & | objectId | ||
) |
Creates a new operation, which removes a object from a group.
memoryXController | The MemoryXController to execute the operation on. (This is currently not used.) |
scene | The scene to execute the operation on. |
groupName | The group to remove the object from. |
objectId | The object ID of the object to remove. |
Definition at line 33 of file RemoveFromGroupOperation.cpp.
|
overridevirtual |
Returns a new operation which adds the object to the group.
Implements Operation.
Definition at line 40 of file RemoveFromGroupOperation.cpp.
|
overrideprotectedvirtual |
Removes the object from the group.
Implements Operation.
Definition at line 59 of file RemoveFromGroupOperation.cpp.
|
overrideprotectedvirtual |
Because the WorkingMemory does not support groups, nothing is done here.
Implements Operation.
Definition at line 54 of file RemoveFromGroupOperation.cpp.