20 #ifndef Tulip_GLLAYER_H
21 #define Tulip_GLLAYER_H
23 #include <tulip/tulipconf.h>
25 #include <tulip/Matrix.h>
27 #include <tulip/GlEntity.h>
28 #include <tulip/Camera.h>
29 #include <tulip/GlComposite.h>
36 class GlGraphComposite;
66 GlLayer(
const std::string& name,
bool workingLayer=
false);
75 GlLayer(
const std::string& name,
Camera *camera,
bool workingLayer=
false);
100 void setCamera(
Camera* camera);
106 void setSharedCamera(
Camera *camera);
123 void setVisible(
bool visible);
129 return composite.isVisible();
142 void addGraph(
tlp::Graph* graph,
const std::string& name);
148 void deleteGlEntity(
const std::string &key);
164 const std::map<std::string, GlSimpleEntity*> &getGlEntities()
const;
179 composite.reset(
false);
201 void getXML(std::string &outString);
206 void getXMLOnlyForCameras(std::string &outString);
211 void setWithXML(
const std::string &inString,
unsigned int ¤tPosition);
230 void acceptVisitor(GlSceneVisitor *visitor);
262 #endif // Tulip_GLLAYER_H