Displays a grid of cells, drawn with lines. More...
#include <rendering/rendering.hh>
Public Member Functions | |
Grid (Scene *_scene, uint32_t _cellCount, float _cellLength, float _lineWidth, const common::Color &_color) | |
Constructor. More... | |
~Grid () | |
Destructor. More... | |
void | Enable (bool _enable) |
Enable or disable the grid. More... | |
uint32_t | GetCellCount () const |
Get the number of cells. More... | |
float | GetCellLength () const |
Get the cell length. More... | |
common::Color | GetColor () const |
Return the grid color. More... | |
uint32_t | GetHeight () const |
Get the height of the grid. More... | |
float | GetLineWidth () const |
Get the width of the grid line. More... | |
Ogre::SceneNode * | GetSceneNode () |
Get the Ogre scene node associated with this grid. More... | |
void | Init () |
Initialize the grid. More... | |
void | SetCellCount (uint32_t _count) |
Set the number of cells. More... | |
void | SetCellLength (float _len) |
Set the cell length. More... | |
void | SetColor (const common::Color &_color) |
Sets the color of the grid. More... | |
void | SetHeight (uint32_t _count) |
Set the height of the grid. More... | |
void | SetLineWidth (float _width) |
Set the line width. More... | |
void | SetUserData (const Ogre::Any &_data) |
Sets user data on all ogre objects we own. More... | |
Displays a grid of cells, drawn with lines.
Displays a grid of cells, drawn with lines. A grid with an identity orientation is drawn along the XY plane.
gazebo::rendering::Grid::Grid | ( | Scene * | _scene, |
uint32_t | _cellCount, | ||
float | _cellLength, | ||
float | _lineWidth, | ||
const common::Color & | _color | ||
) |
Constructor.
[in] | _scene | The scene this object is part of |
[in] | _cellCount | The number of cells to draw |
[in] | _cellLength | The size of each cell |
[in] | _lineWidth | The width of the lines to use |
[in] | _color | The color of the grid |
gazebo::rendering::Grid::~Grid | ( | ) |
Destructor.
void gazebo::rendering::Grid::Enable | ( | bool | _enable) |
Enable or disable the grid.
[in] | _enable | Set to true to view the grid, false to make invisible. |
|
inline |
Get the number of cells.
|
inline |
Get the cell length.
|
inline |
Return the grid color.
|
inline |
Get the height of the grid.
|
inline |
Get the width of the grid line.
|
inline |
void gazebo::rendering::Grid::Init | ( | ) |
Initialize the grid.
void gazebo::rendering::Grid::SetCellCount | ( | uint32_t | _count) |
Set the number of cells.
[in] | _count | The number of cells |
void gazebo::rendering::Grid::SetCellLength | ( | float | _len) |
Set the cell length.
[in] | _len | The cell length |
void gazebo::rendering::Grid::SetColor | ( | const common::Color & | _color) |
Sets the color of the grid.
[in] | _color | The grid color |
void gazebo::rendering::Grid::SetHeight | ( | uint32_t | _count) |
Set the height of the grid.
[in] | _count | Grid height |
void gazebo::rendering::Grid::SetLineWidth | ( | float | _width) |
Set the line width.
[in] | _width | The width of the grid |
void gazebo::rendering::Grid::SetUserData | ( | const Ogre::Any & | _data) |
Sets user data on all ogre objects we own.
[in] | _data | The user data |