Overview     Modules     Class Hierarchy     Classes     Members  

tlp::GlHudRect Class Reference

#include <GlHudRect.h>

Inheritance diagram for tlp::GlHudRect:
Collaboration diagram for tlp::GlHudRect:

List of all members.


Detailed Description

This is a general class for the rendering of 2D rectangles.

This class is used as a 2D HUD for the rendering of 2D rectangles.

Public Member Functions

Protected Attributes


Constructor & Destructor Documentation

tlp::GlHudRect::GlHudRect ( const Coord &  topLeftPos,
const Coord &  bottomRightPos,
const Color &  topLeftCol,
const Color &  bottomRightCol 
)

Constructor

tlp::GlHudRect::GlHudRect (  ) 

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

Destructor


Member Function Documentation

virtual Coord tlp::GlHudRect::getCenter (  )  [virtual]

Accessor in reading to the Top Left Corner of the rectangle

virtual Coord tlp::GlHudRect::getTopLeftPos (  )  [virtual]

Accessor in reading to the Top Left Corner of the rectangle

virtual Coord tlp::GlHudRect::getBottomRightPos (  )  [virtual]

Accessor in reading to the Bottom Right Corner of the rectangle

virtual Color tlp::GlHudRect::getTopLeftColor (  )  [virtual]

Accessor in reading to the Top Left Corner Color of the rectangle

virtual Color tlp::GlHudRect::getBottomRightColor (  )  [virtual]

Accessor in reading to the Bottom Right Corner Color of the Rectangle

virtual void tlp::GlHudRect::setTopLeftPos ( const Coord &  topLeftPos  )  [virtual]

Accessor in writing to the Top Left Corner of the rectangle

virtual void tlp::GlHudRect::setBottomRightPos ( const Coord &  bottomRightPos  )  [virtual]

Accessor in writing to the Bottom Right Corner Color of the rectangle

virtual void tlp::GlHudRect::setTopLeftColor ( const Color &  topLeftCol  )  [virtual]

Accessor in writing to the Top Left Corner of the rectangle

virtual void tlp::GlHudRect::setBottomRightColor ( const Color &  bottomRightCol  )  [virtual]

Accessor in writing to the Bottom Right Corner Color of the rectangle

bool tlp::GlHudRect::inRect ( double  x,
double  y 
)

Is the point in the rectangle ?


Member Data Documentation

Coord tlp::GlHudRect::topLeftPos [protected]

Top Left coordinate of the rectangle

Coord tlp::GlHudRect::bottomRightPos [protected]

Bottom Right coordinate of the rectangle

Color tlp::GlHudRect::topLeftCol [protected]

Top Left color of the rectangle

Color tlp::GlHudRect::bottomRightCol [protected]

Bottom Right color of the rectangle



Tulip Software by LaBRI Visualization Team    2001 - 2007