Tulip
4.6.0
Better Visualization Through Research
|
#include <GlRect.h>
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 ¢er, 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 ¢er, const Size &size) |
virtual void | setTopLeftColor (const Color &topLeftCol) |
virtual void | setTopLeftPos (const Coord &topLeftPos) |
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.
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
virtual void tlp::GlRect::draw | ( | float | lod, |
Camera * | camera | ||
) | [virtual] |
Draw function.
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