21 #ifndef GRAPHOBSERVABLE_H
22 #define GRAPHOBSERVABLE_H
27 #include <tulip/Node.h>
28 #include <tulip/Edge.h>
29 #include "tulip/Observable.h"
73 class _DEPRECATED TLP_SCOPE GraphObserver {
76 virtual ~GraphObserver() {}
77 virtual void addNode(Graph *,
const node ) {}
78 virtual void addEdge(Graph *,
const edge ) {}
79 virtual void beforeSetEnds(Graph *,
const edge) {}
80 virtual void afterSetEnds(Graph *,
const edge) {}
81 virtual void delNode(Graph *,
const node ) {}
82 virtual void delEdge(Graph *,
const edge ) {}
83 virtual void reverseEdge(Graph *,
const edge ) {}
84 virtual void destroy(Graph *) {}
85 virtual void addSubGraph(Graph *, Graph *) {}
86 virtual void delSubGraph(Graph *, Graph *) {}
87 virtual void addLocalProperty(Graph*,
const std::string&) {}
88 virtual void delLocalProperty(Graph*,
const std::string&) {}
89 virtual void beforeSetAttribute(Graph*,
const std::string&) {}
90 virtual void afterSetAttribute(Graph*,
const std::string&) {}
91 virtual void removeAttribute(Graph*,
const std::string&) {}
93 void treatEvent(
const Event&);