20 #ifndef Tulip_GLLAYER_H 21 #define Tulip_GLLAYER_H 23 #include <tulip/tulipconf.h> 24 #include <tulip/GlComposite.h> 31 class GlGraphComposite;
64 GlLayer(
const std::string &name,
bool workingLayer =
false);
73 GlLayer(
const std::string &name,
Camera *camera,
bool workingLayer =
false);
98 void setCamera(
Camera *camera);
104 void setSharedCamera(
Camera *camera);
121 void setVisible(
bool visible);
127 return composite.isVisible();
133 void addGlEntity(
GlSimpleEntity *entity,
const std::string &name);
140 void addGraph(
tlp::Graph *graph,
const std::string &name);
146 void deleteGlEntity(
const std::string &key);
162 const std::map<std::string, GlSimpleEntity *> &getGlEntities()
const;
179 composite.reset(
false);
202 void getXML(std::string &outString);
207 void getXMLOnlyForCameras(std::string &outString);
212 void setWithXML(
const std::string &inString,
unsigned int ¤tPosition);
231 void acceptVisitor(GlSceneVisitor *visitor);
256 #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.