RenameGroupOperation Class Reference

A operation to rename a group. More...

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

+ Inheritance diagram for RenameGroupOperation:

Public Member Functions

const OperationPtr createInverseOperation () const override
 Returns a new operation, which reverts the renameing of the group. More...
 
 RenameGroupOperation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &oldGroupName, const std::string &newGroupName)
 Creates a new operation, which renames 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
 Renames 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::MemoryXControllergetMemoryXController () const
 Returns the the MemoryXController to execute the Operation at. More...
 
const std::shared_ptr< scene3D::ScenegetScene () 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...
 

Detailed Description

A operation to rename a group.

See also
controller::Operation

Definition at line 41 of file RenameGroupOperation.h.

Constructor & Destructor Documentation

◆ RenameGroupOperation()

RenameGroupOperation ( const std::shared_ptr< memoryxcontroller::MemoryXController > &  memoryXController,
const std::shared_ptr< scene3D::Scene > &  scene,
const std::string &  oldGroupName,
const std::string &  newGroupName 
)

Creates a new operation, which renames a group.

Parameters
memoryXControllerThe MemoryXController to rename the group on. (This is currently not used.)
sceneThe scene to rename the group on.
oldGroupNameThe old name of the group.
newGroupNameThe new name of the group.
See also
controller::Operation::Operation

Definition at line 32 of file RenameGroupOperation.cpp.

Member Function Documentation

◆ createInverseOperation()

const controller::OperationPtr createInverseOperation ( ) const
overridevirtual

Returns a new operation, which reverts the renameing of the group.

Returns
The operation, which reverts the renameing of the group.
See also
controller::Operation::createInverseOperation

Implements Operation.

Definition at line 44 of file RenameGroupOperation.cpp.

◆ executeOnScene()

void executeOnScene ( )
overrideprotectedvirtual

Renames the group.

See also
controller::Operation::executeOnScene

Implements Operation.

Definition at line 55 of file RenameGroupOperation.cpp.

◆ 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 50 of file RenameGroupOperation.cpp.


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