Overview     Modules     Class Hierarchy     Classes     Members  

tlp::GlADGrid Class Reference

#include <GlADGrid.h>

Inheritance diagram for tlp::GlADGrid:
Collaboration diagram for tlp::GlADGrid:

List of all members.


Detailed Description

General class used to render grids as augmented displays.

This class is a generic class to render grids as augmented displays. It does not uses the basic parameters of the GlAugmentedDisplay(position and color).

Public Member Functions

Protected Attributes


Constructor & Destructor Documentation

tlp::GlADGrid::GlADGrid ( 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.


Member Function Documentation

virtual void tlp::GlADGrid::draw ( GlGraph graph  )  [virtual]

Virtual function used to draw the grid.

Reimplemented from tlp::GlAugmentedDisplay.

void tlp::GlADGrid::getDisplayDim ( bool  displayDim[3]  )  const

Accessor in reading to the dimensions to display.

void tlp::GlADGrid::setDisplayDim ( bool  displayDim[3]  ) 

Accessor in writing to the dimensions to display.


Member Data Documentation

bool tlp::GlADGrid::displayDim[3] [protected]

Which dimensions should be displayed ? Note that only one dimension at most should be disabled

bool tlp::GlADGrid::hollowGrid [protected]

Should the grid be hollowed ?

Coord tlp::GlADGrid::frontTopLeft [protected]

Front top left point of the grid, the "minimum"

Coord tlp::GlADGrid::backBottomRight [protected]

Back bottom right point of the grid, the "maximum"

Color tlp::GlADGrid::color [protected]

The color of the grid

Size tlp::GlADGrid::cell [protected]

The size of a cell of the grid



Tulip Software by LaBRI Visualization Team    2001 - 2007