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> 
   95     this->stencil = stencil;
 
  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 &) {}
 
  160   GlComposite *getParent()
 const {
 
  173   BoundingBox boundingBox;
 
  175   std::vector<GlComposite *> parents;
 
Tulip OpenGL camera object.
 
GlSimpleEntity used to aggregate other GlEntity.
 
Base class for all Tulip OpenGL entities.
 
~GlSimpleEntity() override
Destructor.
 
bool isVisible() const
Return if entity is visible.
 
virtual void setVisible(bool visible)
Set if entity is visible.
 
virtual void setStencil(int stencil)
Set stencil number of the entity.
 
virtual void getXML(std::string &outString)=0
Save the entity in outString (in XML format)
 
virtual void setWithXML(const std::string &inString, unsigned int ¤tPosition)=0
Load entity with inString (in XML format)
 
int getStencil()
Return stencil number of entity.
 
GlSimpleEntity()
Constructor.
 
virtual BoundingBox getBoundingBox()
Return the entity boundingbox.
 
virtual void draw(float lod, Camera *camera)=0
Draw function.
 
This class represents the 3D bounding box of an object. It is mostly used to determine whether or not...