20 #ifndef Tulip_GLSPHERE_H
21 #define Tulip_GLSPHERE_H
23 #include <tulip/tulipconf.h>
25 #include <tulip/Coord.h>
26 #include <tulip/Color.h>
28 #include <tulip/GlSimpleEntity.h>
50 GlSphere(
const Coord &position,
float radius,
const Color &color=Color(0,0,0,255),
float rotX=0,
float rotY=0,
float rotZ=0);
55 GlSphere(
const Coord &position,
float radius,
const std::string& textureFile,
int alpha=255,
float rotX=0,
float rotY=0,
float rotZ=0);
60 virtual void draw(
float lod,
Camera *camera);
65 virtual void translate(
const Coord& mouvement);
105 virtual void getXML(std::string &outString);
110 virtual void setWithXML(
const std::string &inString,
unsigned int ¤tPosition);
117 std::string textureFile;
125 #endif // Tulip_GLSCENE_H
Base class for all Tulip OpenGL entities.
void setColor(const Color &newColor)
Set the color.
virtual void setTexture(const std::string &texture)
Set the texture name.
void setPosition(const Coord &pos)
Set absolute position.
Tulip OpenGL camera object.
const Color & getColor() const
Get the color.
Class to create a sphere with GlEntity system.
const Coord & getPosition() const
Get absolute position.