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