27 #if defined(__APPLE__) 28 #include <OpenGL/gl.h> 33 #include <tulip/Color.h> 34 #include <tulip/Size.h> 35 #include <tulip/GlSimpleEntity.h> 62 GlBox(
const Coord& position,
const Size &size,
const Color& fillColor,
const Color &outlineColor,
bool filled=
true,
bool outlined=
true,
const std::string &textureName=
"",
float outlineSize=1.);
69 virtual void draw(
float lod,
Camera *camera);
79 void setSize(
const Size& size);
84 Coord* getPosition()
const;
89 void setPosition(
const Coord& position);
94 Color getFillColor()
const;
99 void setFillColor(
const Color& color);
104 Color getOutlineColor()
const;
109 void setOutlineColor(
const Color& color);
114 float getOutlineSize()
const;
119 void setOutlineSize(
float size);
124 std::string getTextureName()
const;
129 void setTextureName(
const std::string& textureName);
134 virtual void translate(
const Coord& mouvement);
139 virtual void getXML(std::string &outString);
144 virtual void setWithXML(
const std::string &inString,
unsigned int ¤tPosition);
148 virtual void clearGenerated();
156 std::string textureName;
159 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