20 #ifndef Tulip_GLLAYER_H 21 #define Tulip_GLLAYER_H 23 #include <tulip/tulipconf.h> 24 #include <tulip/GlComposite.h> 31 class GlGraphComposite;
61 GlLayer(
const std::string& name,
bool workingLayer=
false);
70 GlLayer(
const std::string& name,
Camera *camera,
bool workingLayer=
false);
95 void setCamera(
Camera* camera);
101 void setSharedCamera(
Camera *camera);
118 void setVisible(
bool visible);
124 return composite.isVisible();
137 void addGraph(
tlp::Graph* graph,
const std::string& name);
143 void deleteGlEntity(
const std::string &key);
159 const std::map<std::string, GlSimpleEntity*> &getGlEntities()
const;
174 composite.reset(
false);
196 void getXML(std::string &outString);
201 void getXMLOnlyForCameras(std::string &outString);
206 void setWithXML(
const std::string &inString,
unsigned int ¤tPosition);
225 void acceptVisitor(GlSceneVisitor *visitor);
254 #endif // Tulip_GLLAYER_H std::string getName()
Return the layer's name.
Base class for all Tulip OpenGL entities.
bool isAWorkingLayer()
Return if this layer is a working layer A working layer is not displayed on overview.
GlComposite * getComposite()
Return the GlComposite used by the layer A GlLayer is only a container of a camera and a composite...
bool isVisible()
Return if the layer is visible.
Camera & getCamera()
Return the layer's camera.
void clear()
Remove all entities of the layer Entities are not deleted so before call this function you have to ge...
Tulip OpenGL camera object.
bool useSharedCamera()
Return if this layer use a shared camera A shared camera is a camera used by more than one Layer...
Class use to visualize graph in OpenGL Tulip engine.
GlSimpleEntity used to agregate other GlEntity.
A GlLayer is like an 2D drawing software layer system.
GlScene * getScene()
Return the scene where the layer is.