34 const std::shared_ptr<memoryxcontroller::MemoryXController>& memoryXController,
35 const std::shared_ptr<scene3D::Scene>& scene,
36 const std::string& groupName) :
37 Operation(memoryXController, scene), groupName(groupName), failed(false)
39 if (groupName.empty() || groupName ==
"")
48 std::shared_ptr<controller::Operation> inverseOperation(
53 inverseOperation.reset(
57 return inverseOperation;
71 std::shared_ptr<scene3D::Scene> scene =
getScene();
73 scene->getGroupManager()->addGroup(newSceneGroup);
const OperationPtr createInverseOperation() const override
Returns a new operation, which deletes the created group.
void executeOnScene() override
Creates the group.
CreateGroupOperation(const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &groupName)
Creates a new operation, which creates a new group.
void executeOnWorkingMemory() override
Because the WorkingMemory does not support groups, nothing is done here.
A operation to delete a group.
A operation which does nothing.
std::string getObjectId() const
Returns the ID of the object, this Operation is working on.
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