Tulip  4.6.0
Better Visualization Through Research
tlp::GlRect Class Reference

#include <GlRect.h>

+ Inheritance diagram for tlp::GlRect:
+ Collaboration diagram for tlp::GlRect:

List of all members.

Public Member Functions

 GlRect (const Coord &topLeftPos, const Coord &bottomRightPos, const Color &topLeftCol, const Color &bottomRightCol, bool filled=true, bool outlined=false)
 GlRect (const Coord &center, const float width, const float height, const Color &fillColor, const Color &outlineColor)
 GlRect (bool filled=true, bool outlined=false)
virtual ~GlRect ()
virtual void draw (float lod, Camera *camera)
virtual Color getBottomRightColor ()
virtual Coord getBottomRightPos ()
virtual Coord getCenter ()
virtual Color getTopLeftColor ()
virtual Coord getTopLeftPos ()
bool inRect (double x, double y)
virtual void setBottomRightColor (const Color &bottomRightCol)
virtual void setBottomRightPos (const Coord &bottomRightPos)
void setCenterAndSize (const Coord &center, const Size &size)
virtual void setTopLeftColor (const Color &topLeftCol)
virtual void setTopLeftPos (const Coord &topLeftPos)

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.

Definition at line 36 of file GlRect.h.


Constructor & Destructor Documentation

tlp::GlRect::GlRect ( const Coord &  topLeftPos,
const Coord &  bottomRightPos,
const Color &  topLeftCol,
const Color &  bottomRightCol,
bool  filled = true,
bool  outlined = false 
)

Constructor : with topLeft/bottomRight coords, topLeft/bottomRight colors and if GlRect is filled/outlined

tlp::GlRect::GlRect ( const Coord &  center,
const float  width,
const float  height,
const Color &  fillColor,
const Color &  outlineColor 
)

Constructor : with center coords and size, fill color and outline color

tlp::GlRect::GlRect ( bool  filled = true,
bool  outlined = false 
)

Constructor : with GlRect is filled/outlined

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

Destructor


Member Function Documentation

virtual void tlp::GlRect::draw ( float  lod,
Camera camera 
) [virtual]

Draw function.

Warning:
You don't have to call this function, the Tulip OpenGL engine call it.

Implements tlp::GlSimpleEntity.

Reimplemented in tlp::Gl2DRect.

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

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

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

Accessor in reading to the Bottom Right Corner of the rectangle

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

Accessor in reading to the Top Left Corner of the rectangle

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

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

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

Accessor in reading to the Top Left Corner of the rectangle

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

Is the point in the rectangle ?

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

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

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

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

void tlp::GlRect::setCenterAndSize ( const Coord &  center,
const Size &  size 
)

Set the center and the size of the GlRect

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

Accessor in writing to the Top Left Corner of the rectangle

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

Accessor in writing to the Top Left Corner of the rectangle

 All Classes Files Functions Variables Enumerations Enumerator Properties