Displays a grid of cells, drawn with lines. More...
#include <grid.h>
Public Types | |
| enum | Style { Lines, Billboards } |
Public Member Functions | |
| void | create () |
| float | getCellCount () |
| float | getCellLength () |
| Ogre::ColourValue | getColor () |
| uint32_t | getHeight () |
| float | getLineWidth () |
| Ogre::SceneNode * | getSceneNode () |
| Get the Ogre scene node associated with this grid. More... | |
| Style | getStyle () |
| Grid (Ogre::SceneManager *manager, Ogre::SceneNode *parent_node, Style style, uint32_t cell_count, float cell_length, float line_width, const Ogre::ColourValue &color) | |
| Constructor. More... | |
| void | setCellCount (uint32_t count) |
| void | setCellLength (float len) |
| void | setColor (const Ogre::ColourValue &color) |
| void | setHeight (uint32_t count) |
| void | setLineWidth (float width) |
| void | setStyle (Style style) |
| void | setUserData (const Ogre::Any &data) |
| Sets user data on all ogre objects we own. More... | |
| ~Grid () | |
Private Attributes | |
| BillboardLine * | billboard_line_ |
| uint32_t | cell_count_ |
| float | cell_length_ |
| Ogre::ColourValue | color_ |
| uint32_t | height_ |
| float | line_width_ |
| Ogre::ManualObject * | manual_object_ |
| The manual object used to draw the grid. More... | |
| Ogre::MaterialPtr | material_ |
| Ogre::SceneManager * | scene_manager_ |
| Ogre::SceneNode * | scene_node_ |
| The scene node that this grid is attached to. More... | |
| Style | style_ |
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 XZ plane.
| enum rviz::Grid::Style |
| rviz::Grid::Grid | ( | Ogre::SceneManager * | manager, |
| Ogre::SceneNode * | parent_node, | ||
| Style | style, | ||
| uint32_t | cell_count, | ||
| float | cell_length, | ||
| float | line_width, | ||
| const Ogre::ColourValue & | color | ||
| ) |
Constructor.
| manager | The scene manager this object is part of |
| cell_count | The number of cells to draw |
| cell_length | The size of each cell |
| r | Red color component, in the range [0, 1] |
| g | Green color component, in the range [0, 1] |
| b | Blue color component, in the range [0, 1] |
|
inline |
| void rviz::Grid::setColor | ( | const Ogre::ColourValue & | color | ) |
| void rviz::Grid::setUserData | ( | const Ogre::Any & | data | ) |
|
private |
|
private |
|
private |