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