Overview     Modules     Class Hierarchy     Classes     Members  

tlp::GlHudLine Class Reference

#include <GlHudLine.h>

Inheritance diagram for tlp::GlHudLine:
Collaboration diagram for tlp::GlHudLine:

List of all members.


Detailed Description

General class for the rendering of 2D lines.

Public Member Functions

Protected Member Functions

Protected Attributes


Constructor & Destructor Documentation

tlp::GlHudLine::GlHudLine (  )  [protected]

Default constructor (forbidden to use)

tlp::GlHudLine::GlHudLine ( const Coord &  startPos,
const Coord &  endPos,
const Color &  startCol,
const Color &  endCol,
unsigned int  thickness = 1 
)

Constructor

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

Destructor


Member Function Documentation

virtual void tlp::GlHudLine::draw ( GlGraph  )  [virtual]

Function used to draw ... This is a pure virtual function

Attention:
Must absolutely be called with unsetup in every derivated class

You call setup(), you render, you call unsetup()

This must not be called withing glBegin/glEnd statements.

Reimplemented from tlp::GlHud.

virtual Coord tlp::GlHudLine::getStartPosition (  )  const [virtual]

Accessor in reading to the start position of the line

virtual Coord tlp::GlHudLine::getEndPosition (  )  const [virtual]

Accessor in reading to the end position of the line

virtual Color tlp::GlHudLine::getStartColor (  )  const [virtual]

Accessor in reading to the start color of the line

virtual Color tlp::GlHudLine::getEndColor (  )  const [virtual]

Accessor in reading to the end color of the line

virtual unsigned int tlp::GlHudLine::getThickness (  )  const [virtual]

Accessor in reading to the thickness of the line.

virtual void tlp::GlHudLine::setStartPosition ( const Coord &  startPos  )  [virtual]

Accessor in writing to the start position of the line

virtual void tlp::GlHudLine::setEndPosition ( const Coord &  endPos  )  [virtual]

Accessor in writing to the end position of the line

virtual void tlp::GlHudLine::setStartColor ( const Color &  startColor  )  [virtual]

Accessor in writing to the start color of the line

virtual void tlp::GlHudLine::setEndColor ( const Color &  endColor  )  [virtual]

Accessor in writing to the end color of the line.

virtual void tlp::GlHudLine::setThickness ( unsigned int  thickness  )  [virtual]

Accessor in writing to the thickness of the line.


Member Data Documentation

Coord* tlp::GlHudLine::startPos [protected]

Starting position of the line

Coord* tlp::GlHudLine::endPos [protected]

Ending position of the line

Color* tlp::GlHudLine::startCol [protected]

Starting color of the line

Color* tlp::GlHudLine::endCol [protected]

Ending color of the line

unsigned int tlp::GlHudLine::thickness [protected]

Thickness of the line



Tulip Software by LaBRI Visualization Team    2001 - 2007