Public Member Functions
Grid Class Reference

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

#include <Grid.hh>

List of all members.

Public Member Functions

 Grid (Scene *scene_, uint32_t cellCount_, float cellLength_, float lineWidth_, const common::Color &color_)
 Constructor.
 ~Grid ()
 Destructor.
void Init ()
Ogre::SceneNode * GetSceneNode ()
 Get the Ogre scene node associated with this grid.
void SetUserData (const Ogre::Any &data_)
 Sets user data on all ogre objects we own.
void SetColor (const common::Color &color_)
common::Color GetColor ()
void SetCellCount (uint32_t count_)
float GetCellCount ()
void SetCellLength (float len_)
float GetCellLength ()
void SetLineWidth (float width_)
float GetLineWidth ()
void SetHeight (uint32_t count_)
uint32_t GetHeight ()

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.


Constructor & Destructor Documentation

Grid ( Scene scene_,
uint32_t  cellCount_,
float  cellLength_,
float  lineWidth_,
const common::Color color_ 
)

Constructor.

Parameters:
SceneThe scene 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]

Member Function Documentation

Ogre::SceneNode* GetSceneNode ( ) [inline]

Get the Ogre scene node associated with this grid.

Returns:
The Ogre scene node associated with this grid

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