22 #ifndef Tulip_GLSCENEOBSERVER_H
23 #define Tulip_GLSCENEOBSERVER_H
28 #include <tulip/tulipconf.h>
30 #include <tulip/Observable.h>
41 class TLP_GL_SCOPE GlSceneEvent :
public Event {
44 enum GlSceneEventType {TLP_ADDLAYER=0, TLP_DELLAYER, TLP_MODIFYLAYER, TLP_MODIFYENTITY, TLP_DELENTITY};
46 GlSceneEvent(
const GlScene &scene,GlSceneEventType sceneEventType,
const std::string &layerName,GlLayer *layer);
48 GlSceneEvent(
const GlScene &scene, GlSceneEventType sceneEventType, GlSimpleEntity *entity);
50 GlSimpleEntity *getGlSimpleEntity()
const;
52 std::string getLayerName()
const;
54 GlLayer *getLayer()
const;
56 GlSceneEventType getSceneEventType()
const;
60 GlSceneEventType sceneEventType;
61 std::string layerName;
63 GlSimpleEntity *glSimpleEntity;