Overview     Modules     Class Hierarchy     Classes     Members  

tlp::GlADBox Class Reference

#include <GlADBox.h>

Inheritance diagram for tlp::GlADBox:
Collaboration diagram for tlp::GlADBox:

List of all members.


Detailed Description

General class used to render boxes as augmented displays.

This class is a generic class to render boxes as augmented displays. It does uses the basic parameters of the GlAugmentedDisplay(position and color) but also uses it's own set of points.

Public Member Functions

Protected Member Functions

Protected Attributes


Constructor & Destructor Documentation

tlp::GlADBox::GlADBox (  )  [protected]

The default constructor

Attention:
It's usage is forbidden, so that's why it has been put in protected members.

tlp::GlADBox::GlADBox ( const Coord &  position,
const Size &  size,
const Color &  color 
)

Constructor from size

Parameters:
position The center of the box.
size The length of each dimension of the box.
color The color of the box.

tlp::GlADBox::GlADBox ( Coord  points[8],
const Color &  color 
)

Constructor from points

Parameters:
points Each point of the box. c.f. the variable "points" to know the placement.
color The color of the box.

tlp::GlADBox::GlADBox ( const Coord &  frontTopLeft,
const Coord &  backBottomRight,
const Color &  color 
)

Constructor from bounding box

Parameters:
frontTopLeft The position of the point at the front-top-left of the box (points[0]).
backbottomRight The position of the point at the back-bottom-right of the box (points[6]).
color The color of the box.

virtual tlp::GlADBox::~GlADBox (  )  [virtual]

Destructor.


Member Function Documentation

void tlp::GlADBox::computePoints (  )  [protected]

Function used to compute the points of the box from a center and a size.

void tlp::GlADBox::computeFaces (  )  [protected]

Function used to compute the GlADQuad from the points of the box.

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

Virtual function used to draw the box.

Reimplemented from tlp::GlAugmentedDisplay.

virtual void tlp::GlADBox::changeRenderOptions (  )  [virtual]

Virtual function used to trigger when changing rendering options.

Reimplemented from tlp::GlAugmentedDisplay.

void tlp::GlADBox::setSize ( const Size &  size  ) 

Accessor in writing to the size.

void tlp::GlADBox::setPosition ( const Coord &  position  ) 

Accessor in writing to the position.

Size* tlp::GlADBox::getSize (  )  const

Accessor in reading to the size.


Member Data Documentation

Coord* tlp::GlADBox::position [protected]

The position of the center of the box

Color* tlp::GlADBox::color [protected]

The color of the box

Size* tlp::GlADBox::size [protected]

size is the "radius" of the box

Coord* tlp::GlADBox::points[N_BOX_POINTS] [protected]

The coordinates of each of the 8 points of the box.

Attention:
points[0] = front top left

points[1] = front top right

points[2] = front bottom right

points[3] = front bottom left

points[4] = back top left

points[5] = back top right

points[6] = back bottom right

points[7] = back bottom left

GlADQuad* tlp::GlADBox::faces[N_BOX_FACES] [protected]

Stores a GlADQuad per face



Tulip Software by LaBRI Visualization Team    2001 - 2007