Helper class to store nested models data. More...
#include <ModelData.hh>
Public Member Functions | |
int | Depth () const |
Get the depth of the nested model. More... | |
ignition::math::Pose3d | Pose () const |
Get the pose of the nested model. More... | |
void | SetName (const std::string &_name) |
Set the name of the model. More... | |
void | SetPose (const ignition::math::Pose3d &_pose) |
Set the pose of the model. More... | |
Public Attributes | |
std::map< std::string, rendering::VisualWeakPtr > | links |
Links inside this model. More... | |
std::map< std::string, rendering::VisualWeakPtr > | models |
Models inside this model. More... | |
sdf::ElementPtr | modelSDF |
SDF representing the model data. More... | |
rendering::VisualPtr | modelVisual |
Visual representing this model. More... | |
Helper class to store nested models data.
int gazebo::gui::NestedModelData::Depth | ( | ) | const |
Get the depth of the nested model.
The root model has depth 1.
ignition::math::Pose3d gazebo::gui::NestedModelData::Pose | ( | ) | const |
Get the pose of the nested model.
void gazebo::gui::NestedModelData::SetName | ( | const std::string & | _name | ) |
Set the name of the model.
[in] | _name | Name of model. |
void gazebo::gui::NestedModelData::SetPose | ( | const ignition::math::Pose3d & | _pose | ) |
Set the pose of the model.
[in] | _pose | Pose of model. |
std::map<std::string, rendering::VisualWeakPtr> gazebo::gui::NestedModelData::links |
Links inside this model.
std::map<std::string, rendering::VisualWeakPtr> gazebo::gui::NestedModelData::models |
Models inside this model.
sdf::ElementPtr gazebo::gui::NestedModelData::modelSDF |
SDF representing the model data.
rendering::VisualPtr gazebo::gui::NestedModelData::modelVisual |
Visual representing this model.