Used to insert new models into the scene. More...
#include <ModelMaker.hh>
Public Types | |
enum | SimpleShapes { BOX, SPHERE, CYLINDER } |
Unique identifiers for each simple shape supported. More... | |
Public Member Functions | |
ModelMaker () | |
Constructor. More... | |
~ModelMaker () | |
Destructor. More... | |
virtual ignition::math::Vector3d | EntityPosition () const |
Returns the entity world position. More... | |
bool | InitFromFile (const std::string &_filename) |
Initialize the model maker from a file. More... | |
bool | InitFromModel (const std::string &_modelName) |
Initialize the model maker with an existing model. More... | |
bool | InitSimpleShape (SimpleShapes _shape) |
Initialize the model maker to make one of the supported simple shapes. More... | |
virtual void | Stop () |
Stop the maker. More... | |
Public Member Functions inherited from gazebo::gui::EntityMaker | |
virtual | ~EntityMaker () |
Destructor. More... | |
virtual void | OnMouseMove (const common::MouseEvent &_event) |
Callback when moving mouse. More... | |
virtual void | OnMouseRelease (const common::MouseEvent &_event) |
Callback when mouse button is released. More... | |
virtual void | Start () |
Start the maker. More... | |
Protected Member Functions | |
virtual void | SetEntityPosition (const ignition::math::Vector3d &_pos) |
Sets the entity world position. More... | |
Protected Member Functions inherited from gazebo::gui::EntityMaker | |
EntityMaker (EntityMakerPrivate &_dataPtr) | |
Constructor used by inherited classes. More... | |
Additional Inherited Members | |
Protected Attributes inherited from gazebo::gui::EntityMaker | |
EntityMakerPrivate * | dataPtr |
Used to insert new models into the scene.
gazebo::gui::ModelMaker::ModelMaker | ( | ) |
Constructor.
gazebo::gui::ModelMaker::~ModelMaker | ( | ) |
Destructor.
|
virtual |
Returns the entity world position.
Reimplemented from gazebo::gui::EntityMaker.
bool gazebo::gui::ModelMaker::InitFromFile | ( | const std::string & | _filename | ) |
Initialize the model maker from a file.
[in] | _filename | Path to the file. |
bool gazebo::gui::ModelMaker::InitFromModel | ( | const std::string & | _modelName | ) |
Initialize the model maker with an existing model.
[in] | _modelName | Name of existing model in the scene. |
bool gazebo::gui::ModelMaker::InitSimpleShape | ( | SimpleShapes | _shape | ) |
Initialize the model maker to make one of the supported simple shapes.
[in] | _shape | The desired shape. |
|
protectedvirtual |
Sets the entity world position.
[in] | _pos | New position in the world frame. |
Reimplemented from gazebo::gui::EntityMaker.
|
virtual |
Stop the maker.
Reimplemented from gazebo::gui::EntityMaker.