Displays a grid of cells, drawn with lines. More...
#include <Grid.hh>
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 () |
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.
| Grid | ( | Scene * | scene_, |
| uint32_t | cellCount_, | ||
| float | cellLength_, | ||
| float | lineWidth_, | ||
| const common::Color & | color_ | ||
| ) |
Constructor.
| Scene | The scene 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] |
| Ogre::SceneNode* GetSceneNode | ( | ) | [inline] |
Get the Ogre scene node associated with this grid.
1.7.5.1