Class which represents a user command, which can be "undone" and "redone". More...
#include <UserCmdManager.hh>
Public Member Functions | |
| UserCmd (const unsigned int _id, physics::WorldPtr _world, const std::string &_description, const msgs::UserCmd::Type &_type) | |
| Constructor. | |
| virtual | ~UserCmd () |
| Destructor. | |
| std::string | Description () const |
| Return this command's description. | |
| unsigned int | Id () const |
| Return this command's unique ID. | |
| virtual void | Redo () |
| Redo this command. | |
| msgs::UserCmd::Type | Type () const |
| Return this command's type. | |
| virtual void | Undo () |
| Undo this command. | |
Protected Attributes | |
| UserCmdPrivate * | dataPtr |
Class which represents a user command, which can be "undone" and "redone".
| UserCmd | ( | const unsigned int | _id, |
| physics::WorldPtr | _world, | ||
| const std::string & | _description, | ||
| const msgs::UserCmd::Type & | _type ) |
Constructor.
| [in] | _id | Unique ID for this command |
| [in] | _world | Pointer to the world |
| [in] | _description | Description for the command, such as "Rotate box", "Delete sphere", etc. |
| [in] | _type | Type of command, such as MOVING, DELETING, etc. |
|
virtual |
Destructor.
| std::string Description | ( | ) | const |
Return this command's description.
| unsigned int Id | ( | ) | const |
Return this command's unique ID.
|
virtual |
Redo this command.
| msgs::UserCmd::Type Type | ( | ) | const |
Return this command's type.
|
virtual |
Undo this command.
|
protected |