33 const std::shared_ptr<memoryxcontroller::MemoryXController>& memoryXController,
34 const std::shared_ptr<scene3D::Scene>& scene,
35 const std::string& groupName) :
36 Operation(memoryXController, scene), groupName(groupName)
43 std::shared_ptr<controller::Operation> inverseOperation(
45 return inverseOperation;
57 std::shared_ptr<scene3D::Scene> scene =
getScene();
59 scene->getGroupManager()->removeGroup(sceneGroupToDelete);
A operation to create a new group.
const OperationPtr createInverseOperation() const override
Returns a new operation, which creates the deleted group again.
void executeOnScene() override
Deletes the group.
DeleteGroupOperation(const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &groupName)
Creates a new operation, which deletes a group.
void executeOnWorkingMemory() override
Because the WorkingMemory does not support groups, nothing is done here.
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.
Operation(const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &objectId)
A constructor.
std::shared_ptr< Operation > OperationPtr
std::shared_ptr< SceneGroup > SceneGroupPtr