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);
127 return composite.isVisible();
179 composite.reset(
false);
212 void setWithXML(
const std::string &inString,
unsigned int ¤tPosition);
231 void acceptVisitor(GlSceneVisitor *visitor);
Tulip OpenGL camera object.
GlSimpleEntity used to aggregate other GlEntity.
Class use to visualize graph in OpenGL Tulip engine.
A GlLayer is like an 2D drawing software layer system.
void getXML(std::string &outString)
GlSimpleEntity * findGlEntity(const std::string &key)
Return entity with name : key.
void getXMLOnlyForCameras(std::string &outString)
Get XML description of cameras of the layer and store it in out string.
bool isAWorkingLayer()
Return if this layer is a working layer A working layer is not displayed on overview.
bool useSharedCamera()
Return if this layer use a shared camera A shared camera is a camera used by more than one Layer,...
GlLayer(const std::string &name, Camera *camera, bool workingLayer=false)
Layer constructor : construct a layer with his name and use the camera : camera You have the responsi...
void addGlEntity(GlSimpleEntity *entity, const std::string &name)
Add an entity to GlComposite of the layer.
void deleteGlEntity(const std::string &key)
Remove entity with name : key This entity is not deleted.
const std::map< std::string, GlSimpleEntity * > & getGlEntities() const
Return the map of layer's entities.
Camera & getCamera()
Return the layer's camera.
void set2DMode()
Replace the layer's camera with a new 2D one.
void setVisible(bool visible)
Set if the layer is visible.
void deleteGlEntity(GlSimpleEntity *entity)
Remove entity This entity is not deleted.
GlLayer(const std::string &name, bool workingLayer=false)
Layer constructor : construct a layer with his name A new camera is created for this layer and this c...
void setScene(GlScene *scene)
std::string getName()
Return the layer's name.
void setSharedCamera(Camera *camera)
bool isVisible()
Return if the layer is visible.
void addGraph(tlp::Graph *graph, const std::string &name)
A convenient function that adds a graph to the layer.
GlComposite * getComposite()
Return the GlComposite used by the layer A GlLayer is only a container of a camera and a composite,...
void setCamera(Camera *camera)
Set the layer's camera GlLayer now use a copy of the camera parameters.
void clear()
Remove all entities of the layer Entities are not deleted so before call this function you have to ge...
GlScene * getScene()
Return the scene where the layer is.
void setWithXML(const std::string &inString, unsigned int ¤tPosition)
Function to set data with inString (in XML format)
Base class for all Tulip OpenGL entities.