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> 78 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 void acceptVisitor(GlSceneVisitor *visitor)
override {
142 visitor->visit(
this);
158 virtual void translate(
const Coord &) {}
175 std::vector<GlComposite *> parents;
179 #endif // Tulip_GLSIMPLEENTITY_H
int getStencil()
Return stencil number of entity.
Base class for all Tulip OpenGL entities.
bool isVisible() const
Return if entity is visible.
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.
GlSimpleEntity used to agregate other GlEntity.