Public Member Functions | Public Attributes | List of all members
gazebo::gui::NestedModelData Class Reference

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...
 

Detailed Description

Helper class to store nested models data.

Member Function Documentation

int gazebo::gui::NestedModelData::Depth ( ) const

Get the depth of the nested model.

The root model has depth 1.

Returns
Depth of nested model. Returns -1 if depth cannot be found.
ignition::math::Pose3d gazebo::gui::NestedModelData::Pose ( ) const

Get the pose of the nested model.

Returns
Pose of nested model.
void gazebo::gui::NestedModelData::SetName ( const std::string &  _name)

Set the name of the model.

Parameters
[in]_nameName of model.
void gazebo::gui::NestedModelData::SetPose ( const ignition::math::Pose3d &  _pose)

Set the pose of the model.

Parameters
[in]_posePose of model.

Member Data Documentation

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.


The documentation for this class was generated from the following file: