21 #ifndef MOUSEADDEDGE_H
22 #define MOUSEADDEDGE_H
24 #include <tulip/Coord.h>
25 #include <tulip/GLInteractor.h>
26 #include <tulip/ObservableGraph.h>
27 #include <tulip/Observable.h>
28 #include <tulip/ObservableProperty.h>
34 class TLP_QT_SCOPE MouseEdgeBuilder:
public GLInteractorComponent,
public Observable {
38 Coord _startPos,_curPos;
39 std::vector<Coord> _bends;
41 LayoutProperty *_layoutProperty;
49 virtual void addLink(QObject *,
const node source,
const node dest);
61 const std::vector<Coord>& bends()
const {
68 void setBends(
const std::vector<Coord>& bends) {
74 bool draw(GlMainWidget *);
75 bool eventFilter(QObject *, QEvent *);
76 void initObserver(Graph *);
79 void treatEvent(
const Event&);
81 InteractorComponent *clone() {
82 return new MouseEdgeBuilder();