Tulip
4.6.0
Better Visualization Through Research
|
#include <GlGrid.h>
Public Member Functions | |
GlGrid () | |
GlGrid (const Coord &frontTopLeft, const Coord &backBottomRight, const Size &cell, const Color &color, bool displays[3]) | |
virtual void | draw (float lod, Camera *camera) |
void | getDisplayDim (bool displayDim[3]) const |
virtual void | getXML (std::string &outString) |
void | setDisplayDim (bool displayDim[3]) |
virtual void | setWithXML (const std::string &inString, unsigned int ¤tPosition) |
virtual void | translate (const Coord &mouvement) |
Protected Attributes | |
Coord | backBottomRight |
Size | cell |
Color | color |
bool | displayDim [3] |
Coord | frontTopLeft |
bool | hollowGrid |
General class used to render grids as GlSimpleEntity.
tlp::GlGrid::GlGrid | ( | ) | [inline] |
tlp::GlGrid::GlGrid | ( | const Coord & | frontTopLeft, |
const Coord & | backBottomRight, | ||
const Size & | cell, | ||
const Color & | color, | ||
bool | displays[3] | ||
) |
Constructor.
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] |
Virtual function used to draw the grid.
Implements tlp::GlSimpleEntity.
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] |
Function to export data in outString (in XML format)
Implements tlp::GlSimpleEntity.
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] |
Function to set data with inString (in XML format)
Implements tlp::GlSimpleEntity.
virtual void tlp::GlGrid::translate | ( | const Coord & | mouvement | ) | [virtual] |
Translate entity.
Coord tlp::GlGrid::backBottomRight [protected] |
Size tlp::GlGrid::cell [protected] |
Color tlp::GlGrid::color [protected] |
bool tlp::GlGrid::displayDim[3] [protected] |
Coord tlp::GlGrid::frontTopLeft [protected] |
bool tlp::GlGrid::hollowGrid [protected] |