Class which represents a user command, which can be "undone" and "redone".
More...
#include <MEUserCmdManager.hh>
|
| std::unique_ptr< MEUserCmdPrivate > | dataPtr |
| |
Class which represents a user command, which can be "undone" and "redone".
Types of user commands.
| Enumerator |
|---|
| INSERTING_LINK |
Insert a link.
|
| DELETING_LINK |
Delete a link.
|
| INSERTING_NESTED_MODEL |
Insert a nested model.
|
| DELETING_NESTED_MODEL |
Delete a nested model.
|
| INSERTING_JOINT |
Insert a joint.
|
| DELETING_JOINT |
Delete a joint.
|
Constructor.
- Parameters
-
| [in] | _id | Unique ID for this command |
| [in] | _description | Description for the command, such as "Rotate box", "Delete sphere", etc. |
| [in] | _type | Type of command, such as MOVING, DELETING, etc. |
| std::string Description |
( |
| ) |
const |
Return this command's description.
- Returns
- Description
| unsigned int Id |
( |
| ) |
const |
Return this command's unique ID.
- Returns
- Unique ID
| void SetJointId |
( |
const std::string & |
_id | ) |
|
Set the unique id of the joint related to this command.
- Parameters
-
| [in] | _id | Unique id of joint. |
| void SetScopedName |
( |
const std::string & |
_name | ) |
|
Set the scoped name of the entity related to this command.
- Parameters
-
| [in] | _name | Fully scoped entity name. |
| void SetSDF |
( |
sdf::ElementPtr |
_sdf | ) |
|
Set the SDF element relevant to this command.
- Parameters
-
| std::unique_ptr<MEUserCmdPrivate> dataPtr |
|
protected |
The documentation for this class was generated from the following file: