23 #include <tulip/OpenGlIncludes.h> 25 #include <tulip/Color.h> 26 #include <tulip/Size.h> 27 #include <tulip/GlSimpleEntity.h> 54 GlBox(
const Coord &position,
const Size &size,
const Color &fillColor,
const Color &outlineColor,
55 bool filled =
true,
bool outlined =
true,
const std::string &textureName =
"",
56 float outlineSize = 1.);
63 void draw(
float lod,
Camera *camera)
override;
68 static void draw(
const Color &fillColor,
const Color &outlineColor,
float outlineWidth,
69 const std::string &textureName,
float lod);
71 static Coord getAnchor(
const Coord &vector);
81 void setSize(
const Size &size);
86 Coord *getPosition()
const;
91 void setPosition(
const Coord &position);
96 Color getFillColor()
const;
101 void setFillColor(
const Color &color);
106 Color getOutlineColor()
const;
111 void setOutlineColor(
const Color &color);
116 float getOutlineSize()
const;
121 void setOutlineSize(
float size);
126 std::string getTextureName()
const;
131 void setTextureName(
const std::string &textureName);
136 void translate(
const Coord &mouvement)
override;
141 void getXML(std::string &outString)
override;
146 void setWithXML(
const std::string &inString,
unsigned int ¤tPosition)
override;
149 virtual void clearGenerated();
157 std::string textureName;
160 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