#include <GlGrid.h>
Inherits tlp::GlSimpleEntity.
General class used to render grids as GlSimpleEntity.
Definition at line 36 of file GlGrid.h.
Constructor.
- Warning
- Don't use this constructor : see other constructor
Definition at line 44 of file GlGrid.h.
tlp::GlGrid::GlGrid |
( |
const Coord & |
frontTopLeft, |
|
|
const Coord & |
backBottomRight, |
|
|
const Size & |
cell, |
|
|
const Color & |
color, |
|
|
bool |
displays[3] |
|
) |
| |
Constructor.
- Parameters
-
frontTopLeft | The minimum of the bounding box of the grid. |
backBottomRight | The maximum of the bounding box of the grid. |
cell | The size of a single cell of the grid. |
color | The color of the lines of the grid. |
displays | The dimensions of the grid to display. |
hollowGrid | Indicates if the grid chould be hollowed. |
virtual void tlp::GlGrid::draw |
( |
float |
lod, |
|
|
Camera * |
camera |
|
) |
| |
|
virtual |
void tlp::GlGrid::getDisplayDim |
( |
bool |
displayDim[3] | ) |
const |
Accessor in reading to the dimensions to display.
virtual void tlp::GlGrid::getXML |
( |
std::string & |
outString | ) |
|
|
virtual |
void tlp::GlGrid::setDisplayDim |
( |
bool |
displayDim[3] | ) |
|
Accessor in writing to the dimensions to display.
virtual void tlp::GlGrid::setWithXML |
( |
const std::string & |
inString, |
|
|
unsigned int & |
currentPosition |
|
) |
| |
|
virtual |
virtual void tlp::GlGrid::translate |
( |
const Coord & |
mouvement | ) |
|
|
virtual |
Coord tlp::GlGrid::backBottomRight |
|
protected |
Back bottom right point of the grid, the "maximum"
Definition at line 91 of file GlGrid.h.
The size of a cell of the grid
Definition at line 93 of file GlGrid.h.
The color of the grid
Definition at line 92 of file GlGrid.h.
bool tlp::GlGrid::displayDim[3] |
|
protected |
Which dimensions should be displayed ? Note that only one dimension at most should be disabled
Definition at line 88 of file GlGrid.h.
Coord tlp::GlGrid::frontTopLeft |
|
protected |
Front top left point of the grid, the "minimum"
Definition at line 90 of file GlGrid.h.
bool tlp::GlGrid::hollowGrid |
|
protected |
Should the grid be hollowed ?
Definition at line 89 of file GlGrid.h.