Command to deregister a drawable object from drawing. More...
#include <DrawDeregistrationCommand.h>
Public Member Functions | |
DrawDeregistrationCommand (Drawable *dr) | |
Constructor for DrawDeregistrationCommand. | |
DrawDeregistrationCommand (const DrawDeregistrationCommand &)=delete | |
DrawDeregistrationCommand & | operator= (const DrawDeregistrationCommand &)=delete |
void | Execute () override |
Executes the deregistration command. This method deregisters the drawable object from the DrawableManager. | |
![]() | |
virtual | ~CommandBase ()=default |
Destructor for CommandBase. | |
Public Attributes | |
Drawable * | ptrDr = nullptr |
Pointer to the drawable object to be deregistered. | |
Command to deregister a drawable object from drawing.
The DrawDeregistrationCommand class is responsible for deregistering a drawable object from the DrawableManager. It inherits from CommandBase and overrides the Execute method to perform the deregistration.
DrawDeregistrationCommand::DrawDeregistrationCommand | ( | Drawable * | dr | ) |
Constructor for DrawDeregistrationCommand.
dr | Pointer to the drawable object to be deregistered. |
|
overridevirtual |
Executes the deregistration command. This method deregisters the drawable object from the DrawableManager.
Implements CommandBase.