|
Tulip
5.6.0
Large graphs analysis and drawing
|
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
A GlLayer is like an 2D drawing software layer system.
void clear()
Remove all entities of the layer Entities are not deleted so before call this function you have to ge...
bool useSharedCamera()
Return if this layer use a shared camera A shared camera is a camera used by more than one Layer,...
std::string getName()
Return the layer's name.
GlScene * getScene()
Return the scene where the layer is.
GlComposite * getComposite()
Return the GlComposite used by the layer A GlLayer is only a container of a camera and a composite,...
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.
GlSimpleEntity used to aggregate other GlEntity.
Camera & getCamera()
Return the layer's camera.
bool isVisible()
Return if the layer is visible.
Class use to visualize graph in OpenGL Tulip engine.
Tulip OpenGL camera object.