Class which represents a user command, which can be "undone" and "redone".
More...
#include <UserCmdManager.hh>
Class which represents a user command, which can be "undone" and "redone".
◆ UserCmd()
UserCmd |
( |
const unsigned int |
_id, |
|
|
physics::WorldPtr |
_world, |
|
|
const std::string & |
_description, |
|
|
const msgs::UserCmd::Type & |
_type |
|
) |
| |
Constructor.
- Parameters
-
[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. |
◆ ~UserCmd()
◆ Description()
std::string Description |
( |
| ) |
const |
Return this command's description.
- Returns
- Description
◆ Id()
unsigned int Id |
( |
| ) |
const |
Return this command's unique ID.
- Returns
- Unique ID
◆ Redo()
◆ Type()
msgs::UserCmd::Type Type |
( |
| ) |
const |
Return this command's type.
- Returns
- Command type
◆ Undo()
◆ dataPtr
The documentation for this class was generated from the following file: