Public Types | Public Member Functions | Private Attributes
rviz::Grid Class Reference

Displays a grid of cells, drawn with lines. More...

#include <grid.h>

List of all members.

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.
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.
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.
 ~Grid ()

Private Attributes

BillboardLinebillboard_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.
Ogre::MaterialPtr material_
Ogre::SceneManager * scene_manager_
Ogre::SceneNode * scene_node_
 The scene node that this grid is attached to.
Style style_

Detailed Description

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.

Definition at line 61 of file grid.h.


Member Enumeration Documentation

Enumerator:
Lines 
Billboards 

Definition at line 64 of file grid.h.


Constructor & Destructor Documentation

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.

Parameters:
managerThe scene manager this object is part of
cell_countThe number of cells to draw
cell_lengthThe size of each cell
rRed color component, in the range [0, 1]
gGreen color component, in the range [0, 1]
bBlue color component, in the range [0, 1]

Definition at line 45 of file grid.cpp.

Definition at line 78 of file grid.cpp.


Member Function Documentation

Definition at line 141 of file grid.cpp.

float rviz::Grid::getCellCount ( ) [inline]

Definition at line 104 of file grid.h.

float rviz::Grid::getCellLength ( ) [inline]

Definition at line 107 of file grid.h.

Ogre::ColourValue rviz::Grid::getColor ( ) [inline]

Definition at line 101 of file grid.h.

uint32_t rviz::Grid::getHeight ( ) [inline]

Definition at line 113 of file grid.h.

float rviz::Grid::getLineWidth ( ) [inline]

Definition at line 110 of file grid.h.

Ogre::SceneNode* rviz::Grid::getSceneNode ( ) [inline]

Get the Ogre scene node associated with this grid.

Returns:
The Ogre scene node associated with this grid

Definition at line 90 of file grid.h.

Definition at line 98 of file grid.h.

void rviz::Grid::setCellCount ( uint32_t  count)

Definition at line 88 of file grid.cpp.

void rviz::Grid::setCellLength ( float  len)

Definition at line 95 of file grid.cpp.

void rviz::Grid::setColor ( const Ogre::ColourValue &  color)

Definition at line 109 of file grid.cpp.

void rviz::Grid::setHeight ( uint32_t  count)

Definition at line 134 of file grid.cpp.

void rviz::Grid::setLineWidth ( float  width)

Definition at line 102 of file grid.cpp.

void rviz::Grid::setStyle ( Style  style)

Definition at line 127 of file grid.cpp.

void rviz::Grid::setUserData ( const Ogre::Any &  data)

Sets user data on all ogre objects we own.

Definition at line 240 of file grid.cpp.


Member Data Documentation

Definition at line 120 of file grid.h.

uint32_t rviz::Grid::cell_count_ [private]

Definition at line 125 of file grid.h.

float rviz::Grid::cell_length_ [private]

Definition at line 126 of file grid.h.

Ogre::ColourValue rviz::Grid::color_ [private]

Definition at line 129 of file grid.h.

uint32_t rviz::Grid::height_ [private]

Definition at line 128 of file grid.h.

float rviz::Grid::line_width_ [private]

Definition at line 127 of file grid.h.

Ogre::ManualObject* rviz::Grid::manual_object_ [private]

The manual object used to draw the grid.

Definition at line 118 of file grid.h.

Ogre::MaterialPtr rviz::Grid::material_ [private]

Definition at line 122 of file grid.h.

Ogre::SceneManager* rviz::Grid::scene_manager_ [private]

Definition at line 116 of file grid.h.

Ogre::SceneNode* rviz::Grid::scene_node_ [private]

The scene node that this grid is attached to.

Definition at line 117 of file grid.h.

Definition at line 124 of file grid.h.


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


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Mon Oct 6 2014 07:26:37