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.);
 
   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);
 
  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;
 
Tulip OpenGL camera object.
 
General class used to render boxes as GlSimpleEntity.
 
GlBox()
Don't use this constructor.
 
void setTextureName(const std::string &textureName)
Accessor in writing to the texture name of the box.
 
std::string getTextureName() const
Accessor in reading to the texture name.
 
float getOutlineSize() const
Accessor in reading to the outline size.
 
static void draw(const Color &fillColor, const Color &outlineColor, float outlineWidth, const std::string &textureName, float lod)
Draw a GlBox.
 
void setOutlineSize(float size)
Accessor in writing to the outline size of the box.
 
Coord * getPosition() const
Accessor in reading to the position.
 
Color getOutlineColor() const
Accessor in reading to the outline color.
 
Color getFillColor() const
Accessor in reading to the fill color.
 
std::vector< Color > outlineColors
 
void setOutlineColor(const Color &color)
Accessor in writing to the outline color of the box.
 
void getXML(std::string &outString) override
Function to export data in outString (in XML format)
 
Size getSize() const
Accessor in reading to the size.
 
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.)
Constructor.
 
std::vector< Color > fillColors
 
void setFillColor(const Color &color)
Accessor in writing to the fill color of the box.
 
void draw(float lod, Camera *camera) override
Draw function.
 
void setSize(const Size &size)
Accessor in writing to the size of the box.
 
void translate(const Coord &mouvement) override
Translate entity.
 
~GlBox() override
Destructor.
 
void setWithXML(const std::string &inString, unsigned int ¤tPosition) override
Function to set data with inString (in XML format)
 
void setPosition(const Coord &position)
Accessor in writing to the position.
 
Base class for all Tulip OpenGL entities.