24 #include <tulip/GlPolygon.h> 25 #include <tulip/Size.h> 43 GlRect(
const Coord &topLeftPos,
const Coord &bottomRightPos,
const Color &topLeftCol,
const Color &bottomRightCol,
bool filled=
true,
bool outlined=
false);
48 GlRect(
const Coord ¢er,
const float width,
const float height,
const Color &fillColor,
const Color &outlineColor);
54 GlRect(
bool filled=
true,
bool outlined=
false);
64 virtual Coord getCenter();
69 void setCenterAndSize(
const Coord ¢er,
const Size &size);
74 virtual Coord getTopLeftPos();
79 virtual Coord getBottomRightPos();
84 virtual Color getTopLeftColor();
89 virtual Color getBottomRightColor();
94 virtual void setTopLeftPos(
const Coord &topLeftPos);
99 virtual void setBottomRightPos(
const Coord &bottomRightPos);
104 virtual void setTopLeftColor(
const Color &topLeftCol);
109 virtual void setBottomRightColor(
const Color &bottomRightCol);
114 bool inRect(
double x,
double y);
116 virtual void draw(
float lod,
Camera *camera);
Tulip OpenGL camera object.
This is a general class for the rendering of 2D rectangles.
Class to create a polygon GlEntity.