Used to insert new models into the scene. More...
#include <ModelMaker.hh>
Inherits EntityMaker.
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 | 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... | |
virtual void | Stop () |
Stop the maker. More... | |
Protected Member Functions | |
virtual void | SetEntityPosition (const ignition::math::Vector3d &_pos) |
Sets the entity world position. More... | |
Protected Attributes | |
EntityMakerPrivate * | dataPtr |
Used to insert new models into the scene.
enum SimpleShapes |
ModelMaker | ( | ) |
Constructor.
~ModelMaker | ( | ) |
Destructor.
|
virtual |
Returns the entity world position.
Reimplemented from EntityMaker.
bool InitFromFile | ( | const std::string & | _filename | ) |
Initialize the model maker from a file.
[in] | _filename | Path to the file. |
bool InitFromModel | ( | const std::string & | _modelName | ) |
Initialize the model maker with an existing model.
[in] | _modelName | Name of existing model in the scene. |
bool 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 EntityMaker.
|
virtual |
Stop the maker.
Reimplemented from EntityMaker.