23 #include <tulip/OpenGlIncludes.h> 25 #include <tulip/Color.h> 26 #include <tulip/Size.h> 27 #include <tulip/GlSimpleEntity.h> 53 GlBox(
const Coord &position,
const Size &size,
const Color &fillColor,
const Color &outlineColor,
54 bool filled =
true,
bool outlined =
true,
const std::string &textureName =
"",
55 float outlineSize = 1.);
62 void draw(
float lod,
Camera *camera)
override;
72 void setSize(
const Size &size);
77 Coord *getPosition()
const;
82 void setPosition(
const Coord &position);
87 Color getFillColor()
const;
92 void setFillColor(
const Color &color);
97 Color getOutlineColor()
const;
102 void setOutlineColor(
const Color &color);
107 float getOutlineSize()
const;
112 void setOutlineSize(
float size);
117 std::string getTextureName()
const;
122 void setTextureName(
const std::string &textureName);
127 void translate(
const Coord &mouvement)
override;
132 void getXML(std::string &outString)
override;
137 void setWithXML(
const std::string &inString,
unsigned int ¤tPosition)
override;
140 virtual void clearGenerated();
148 std::string textureName;
151 float *newCubeCoordArrays;
General class used to render boxes as GlSimpleEntity.
Base class for all Tulip OpenGL entities.
std::vector< Color > outlineColors
Tulip OpenGL camera object.
std::vector< Color > fillColors