Displays a grid of cells, drawn with lines. More...
#include <rendering/rendering.hh>
Public Member Functions | |
Grid (Scene *_scene, const uint32_t _cellCount, const float _cellLength, const float _lineWidth, const common::Color &_color) | |
Constructor. More... | |
~Grid () | |
Destructor. More... | |
uint32_t | CellCount () const |
Get the number of cells. More... | |
float | CellLength () const |
Get the cell length. More... | |
common::Color | Color () const |
Return the grid color. More... | |
void | Enable (const bool _enable) |
Enable or disable the grid. More... | |
uint32_t | GetCellCount () const GAZEBO_DEPRECATED(8.0) |
Get the number of cells. More... | |
float | GetCellLength () const GAZEBO_DEPRECATED(8.0) |
Get the cell length. More... | |
common::Color | GetColor () const GAZEBO_DEPRECATED(8.0) |
Return the grid color. More... | |
uint32_t | GetHeight () const GAZEBO_DEPRECATED(8.0) |
Get the height of the grid. More... | |
float | GetLineWidth () const GAZEBO_DEPRECATED(8.0) |
Get the width of the grid line. More... | |
Ogre::SceneNode * | GetSceneNode () GAZEBO_DEPRECATED(8.0) |
Get the Ogre scene node associated with this grid. More... | |
VisualPtr | GridVisual () const |
Get thevisual associated with this grid. More... | |
uint32_t | Height () const |
Get the number of cells in the normal direction of the grid. More... | |
double | HeightOffset () const |
Get the height offset. More... | |
void | Init () |
Initialize the grid. More... | |
float | LineWidth () const |
Get the width of the grid line. More... | |
void | SetCellCount (const uint32_t _count) |
Set the number of cells. More... | |
void | SetCellLength (const float _len) |
Set the cell length. More... | |
void | SetColor (const common::Color &_color) |
Sets the color of the grid. More... | |
void | SetHeight (const uint32_t _count) |
Set the height of the grid. More... | |
void | SetHeightOffset (const double _offset) |
Set the height offset of the grid. More... | |
void | SetLineWidth (const 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.
Grid | ( | Scene * | _scene, |
const uint32_t | _cellCount, | ||
const float | _cellLength, | ||
const 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 |
~Grid | ( | ) |
Destructor.
uint32_t CellCount | ( | ) | const |
Get the number of cells.
float CellLength | ( | ) | const |
Get the cell length.
common::Color Color | ( | ) | const |
Return the grid color.
void Enable | ( | const bool | _enable | ) |
Enable or disable the grid.
[in] | _enable | Set to true to view the grid, false to make invisible. |
uint32_t GetCellCount | ( | ) | const |
float GetCellLength | ( | ) | const |
common::Color GetColor | ( | ) | const |
uint32_t GetHeight | ( | ) | const |
float GetLineWidth | ( | ) | const |
Ogre::SceneNode* GetSceneNode | ( | ) |
VisualPtr GridVisual | ( | ) | const |
Get thevisual associated with this grid.
uint32_t Height | ( | ) | const |
Get the number of cells in the normal direction of the grid.
double HeightOffset | ( | ) | const |
Get the height offset.
void Init | ( | ) |
Initialize the grid.
float LineWidth | ( | ) | const |
Get the width of the grid line.
void SetCellCount | ( | const uint32_t | _count | ) |
Set the number of cells.
[in] | _count | The number of cells |
void SetCellLength | ( | const float | _len | ) |
Set the cell length.
[in] | _len | The cell length |
void SetColor | ( | const common::Color & | _color | ) |
Sets the color of the grid.
[in] | _color | The grid color |
void SetHeight | ( | const uint32_t | _count | ) |
Set the height of the grid.
[in] | _count | Grid height |
void SetHeightOffset | ( | const double | _offset | ) |
Set the height offset of the grid.
[in] | _count | Grid height offset. |
void SetLineWidth | ( | const float | _width | ) |
Set the line width.
[in] | _width | The width of the grid |
void SetUserData | ( | const Ogre::Any & | _data | ) |
Sets user data on all ogre objects we own.
[in] | _data | The user data |