#include <GlGrid.h>
General class used to render grids as GlSimpleEntity.
Definition at line 35 of file GlGrid.h.
◆ GlGrid() [1/2]
Constructor.
- Warning
- Don't use this constructor : see other constructor
Definition at line 42 of file GlGrid.h.
◆ GlGrid() [2/2]
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. |
◆ draw()
void tlp::GlGrid::draw |
( |
float |
lod, |
|
|
Camera * |
camera |
|
) |
| |
|
overridevirtual |
◆ getDisplayDim()
void tlp::GlGrid::getDisplayDim |
( |
bool |
displayDim[3] | ) |
const |
Accessor in reading to the dimensions to display.
◆ getXML()
void tlp::GlGrid::getXML |
( |
std::string & |
outString | ) |
|
|
overridevirtual |
◆ setDisplayDim()
void tlp::GlGrid::setDisplayDim |
( |
bool |
displayDim[3] | ) |
|
Accessor in writing to the dimensions to display.
◆ setWithXML()
void tlp::GlGrid::setWithXML |
( |
const std::string & |
inString, |
|
|
unsigned int & |
currentPosition |
|
) |
| |
|
overridevirtual |
◆ translate()
void tlp::GlGrid::translate |
( |
const Coord & |
mouvement | ) |
|
|
override |
◆ backBottomRight
Coord tlp::GlGrid::backBottomRight |
|
protected |
Back bottom right point of the grid, the "maximum"
Definition at line 89 of file GlGrid.h.
◆ cell
The size of a cell of the grid
Definition at line 91 of file GlGrid.h.
◆ color
The color of the grid
Definition at line 90 of file GlGrid.h.
◆ displayDim
bool tlp::GlGrid::displayDim[3] |
|
protected |
Which dimensions should be displayed ? Note that only one dimension at most should be disabled
Definition at line 85 of file GlGrid.h.
◆ frontTopLeft
Coord tlp::GlGrid::frontTopLeft |
|
protected |
Front top left point of the grid, the "minimum"
Definition at line 88 of file GlGrid.h.
◆ hollowGrid
bool tlp::GlGrid::hollowGrid |
|
protected |
Should the grid be hollowed ?
Definition at line 87 of file GlGrid.h.