21 #ifndef MOUSEADDEDGE_H
22 #define MOUSEADDEDGE_H
25 #include <tulip/Coord.h>
26 #include <tulip/GLInteractor.h>
27 #include <tulip/Observable.h>
33 class TLP_QT_SCOPE MouseEdgeBuilder:
public GLInteractorComponent,
public Observable {
37 Coord _startPos,_curPos;
38 std::vector<Coord> _bends;
40 LayoutProperty *_layoutProperty;
48 virtual void addLink(QObject *,
const node source,
const node dest);
60 const std::vector<Coord>& bends()
const {
67 void setBends(
const std::vector<Coord>& bends) {
73 bool draw(GlMainWidget *);
74 bool eventFilter(QObject *, QEvent *);
75 void initObserver(Graph *);
78 void treatEvent(
const Event&);