DeleteGroupOperation Class Reference

A operation to delete a group. More...

#include <MemoryX/gui-plugins/SceneEditor/controller/DeleteGroupOperation.h>

+ Inheritance diagram for DeleteGroupOperation:

Public Member Functions

const OperationPtr createInverseOperation () const override
 Returns a new operation, which creates the deleted group again.
 
 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.
 
- Public Member Functions inherited from Operation
std::string getObjectId () const
 Returns the ID of the object, this Operation is working on.
 
virtual bool isExecuteable ()
 Return wehether the operation can be executed currently.
 
 Operation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene)
 A constructor.
 
 Operation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &objectId)
 A constructor.
 

Protected Member Functions

void executeOnScene () override
 Deletes the group.
 
void executeOnWorkingMemory () override
 Because the WorkingMemory does not support groups, nothing is done here.
 
- Protected Member Functions inherited from Operation
const std::shared_ptr< memoryxcontroller::MemoryXControllergetMemoryXController () const
 Returns the the MemoryXController to execute the Operation at.
 
const std::shared_ptr< scene3D::ScenegetScene () const
 Returns the the Scene to execute the Operation at.
 
void setObjectId (const std::string &objectId)
 Sets the ID, this operation is working on.
 

Detailed Description

A operation to delete a group.

See also
controller::Operation

Definition at line 41 of file DeleteGroupOperation.h.

Constructor & Destructor Documentation

◆ DeleteGroupOperation()

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.

Parameters
memoryXControllerThe MemoryXController to delete the group from. (This is currently not used.)
sceneThe scene to delete the group from.
groupNameThe name of the group to delete.
See also
controller::Operation::Operation

Definition at line 32 of file DeleteGroupOperation.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ createInverseOperation()

const controller::OperationPtr createInverseOperation ( ) const
overridevirtual

Returns a new operation, which creates the deleted group again.

Returns
The operation, which creates the deleted group.
See also
controller::Operation::createInverseOperation

Implements Operation.

Definition at line 41 of file DeleteGroupOperation.cpp.

+ Here is the call graph for this function:

◆ executeOnScene()

void executeOnScene ( )
overrideprotectedvirtual

Deletes the group.

See also
controller::Operation::executeOnScene

Implements Operation.

Definition at line 55 of file DeleteGroupOperation.cpp.

+ Here is the call graph for this function:

◆ executeOnWorkingMemory()

void executeOnWorkingMemory ( )
overrideprotectedvirtual

Because the WorkingMemory does not support groups, nothing is done here.

See also
controller::Operation::executeOnWorkingMemory

Implements Operation.

Definition at line 49 of file DeleteGroupOperation.cpp.


The documentation for this class was generated from the following files: