DeselectOperation Class Reference

A operation to deselect a object. More...

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

+ Inheritance diagram for DeselectOperation:

Public Member Functions

const OperationPtr createInverseOperation () const override
 Returns a new operation, which selects the object again. More...
 
 DeselectOperation (const std::shared_ptr< memoryxcontroller::MemoryXController > &memoryXController, const std::shared_ptr< scene3D::Scene > &scene, const std::string &objectId)
 Creates a new operation, which deselects a object. 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
 Deselects the object. More...
 
void executeOnWorkingMemory () override
 Because the WorkingMemory does not support selection, nothing is done on the WorkingMemory. 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 deselect a object.

See also
controller::Operation

Definition at line 41 of file DeselectOperation.h.

Constructor & Destructor Documentation

◆ DeselectOperation()

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

Creates a new operation, which deselects a object.

Parameters
memoryXControllerThe MemoryXController to deselect the object at. (This is currently not used.)
sceneThe scene to deselect the object at.
objectIdThe ID of the object to deselect.
See also
controller::Operation::Operation

Definition at line 33 of file DeselectOperation.cpp.

Member Function Documentation

◆ createInverseOperation()

const controller::OperationPtr createInverseOperation ( ) const
overridevirtual

Returns a new operation, which selects the object again.

Returns
The operation, which selects the object again.
See also
controller::Operation::createInverseOperation

Implements Operation.

Definition at line 39 of file DeselectOperation.cpp.

◆ executeOnScene()

void executeOnScene ( )
overrideprotectedvirtual

Deselects the object.

See also
controller::Operation::executeOnScene

Implements Operation.

Definition at line 58 of file DeselectOperation.cpp.

◆ executeOnWorkingMemory()

void executeOnWorkingMemory ( )
overrideprotectedvirtual

Because the WorkingMemory does not support selection, nothing is done on the WorkingMemory.

See also
controller::Operation::executeOnWorkingMemory

Implements Operation.

Definition at line 53 of file DeselectOperation.cpp.


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