20 #ifndef Tulip_GLSIMPLEENTITY_H
21 #define Tulip_GLSIMPLEENTITY_H
25 #include <tulip/GlEntity.h>
26 #include <tulip/Coord.h>
27 #include <tulip/GlSceneVisitor.h>
28 #include <tulip/BoundingBox.h>
79 virtual void setVisible(
bool visible);
95 this->stencil=stencil;
111 virtual void draw(
float lod,
Camera* camera) = 0;
127 virtual void getXML(std::string &outString) =0;
134 virtual void setWithXML(
const std::string &inString,
unsigned int ¤tPosition) =0;
141 virtual void acceptVisitor(GlSceneVisitor *visitor) {
142 visitor->visit(
this);
148 void addParent(GlComposite *composite);
153 void removeParent(GlComposite *composite);
158 virtual void translate(
const Coord &) {}
160 GlComposite* getParent()
const {
174 BoundingBox boundingBox;
176 std::vector<GlComposite*> parents;
182 #endif // Tulip_GLSIMPLEENTITY_H
int getStencil()
Return stencil number of entity.
Base class for all Tulip OpenGL entities.
virtual void setStencil(int stencil)
Set stencil number of the entity.
virtual BoundingBox getBoundingBox()
Return the entity boundingbox.
This class represents the 3D bounding box of an object. It is mostly used to determine whether or not...
Tulip OpenGL camera object.
GlSimpleEntity()
Constructor.
bool isVisible() const
Return if entity is visible.