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