20 #ifndef Tulip_GLSIMPLEENTITY_H
21 #define Tulip_GLSIMPLEENTITY_H
25 #include <tulip/GlEntity.h>
26 #include <tulip/GlSceneVisitor.h>
27 #include <tulip/Camera.h>
28 #include <tulip/GlXMLTools.h>
29 #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);
163 virtual QStringList propertiesNames()
const;
173 virtual QVariantList propertiesQVariant()
const;
186 virtual void setProperty(
const QString &name,
const QVariant &value);
191 virtual void translate(
const Coord &) {}
193 GlComposite* getParent()
const {
194 if (parents.size()==0)
207 BoundingBox boundingBox;
209 std::vector<GlComposite*> parents;
215 #endif // Tulip_GLSIMPLEENTITY_H