EmptyOperation Class Reference

A operation which does nothing. More...

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

+ Inheritance diagram for EmptyOperation:

Public Member Functions

const OperationPtr createInverseOperation () const override
 Returns a new operation, which does nothing.
 
 EmptyOperation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &objectId)
 Creates a new instance.
 
- 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
 Do nothing.
 
void executeOnWorkingMemory () override
 Do nothing.
 
- 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 which does nothing.

See also
controller::Operation

Definition at line 40 of file EmptyOperation.h.

Constructor & Destructor Documentation

◆ EmptyOperation()

EmptyOperation ( const std::shared_ptr< memoryxcontroller::MemoryXController > & memoryXController,
const std::shared_ptr< scene3D::Scene > & scene,
const std::string & objectId )

Creates a new instance.

Parameters
memoryXControllerA MemoryXController. (not used)
sceneA scene. (not used)
objectIdA ID. (not used)
See also
controller::Operation::Operation

Definition at line 31 of file EmptyOperation.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ createInverseOperation()

const controller::OperationPtr createInverseOperation ( ) const
overridevirtual

Returns a new operation, which does nothing.

Returns
The operation, which does nothing.
See also
controller::Operation::createInverseOperation

Implements Operation.

Definition at line 40 of file EmptyOperation.cpp.

+ Here is the call graph for this function:

◆ executeOnScene()

void executeOnScene ( )
overrideprotectedvirtual

Do nothing.

See also
controller::Operation::executeOnWorkingMemory

Implements Operation.

Definition at line 54 of file EmptyOperation.cpp.

◆ executeOnWorkingMemory()

void executeOnWorkingMemory ( )
overrideprotectedvirtual

Do nothing.

See also
controller::Operation::executeOnWorkingMemory

Implements Operation.

Definition at line 48 of file EmptyOperation.cpp.


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