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".
gazebo::physics::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. |
virtual gazebo::physics::UserCmd::~UserCmd |
( |
| ) |
|
|
virtual |
std::string gazebo::physics::UserCmd::Description |
( |
| ) |
const |
Return this command's description.
- Returns
- Description
unsigned int gazebo::physics::UserCmd::Id |
( |
| ) |
const |
Return this command's unique ID.
- Returns
- Unique ID
virtual void gazebo::physics::UserCmd::Redo |
( |
| ) |
|
|
virtual |
msgs::UserCmd::Type gazebo::physics::UserCmd::Type |
( |
| ) |
const |
Return this command's type.
- Returns
- Command type
virtual void gazebo::physics::UserCmd::Undo |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: