21 #ifndef MOUSEADDEDGE_H 22 #define MOUSEADDEDGE_H 25 #include <tulip/Coord.h> 26 #include <tulip/GLInteractor.h> 27 #include <tulip/Observable.h> 34 class TLP_QT_SCOPE MouseEdgeBuilder :
public GLInteractorComponent,
public Observable {
38 Coord _startPos, _curPos;
39 std::vector<Coord> _bends;
41 LayoutProperty *_layoutProperty;
42 GlMainWidget *glMainWidget;
50 virtual void addLink(
const node &source,
const node &dest);
62 const std::vector<Coord> &bends()
const {
69 void setBends(
const std::vector<Coord> &bends) {
75 bool draw(GlMainWidget *)
override;
76 bool eventFilter(QObject *, QEvent *)
override;
77 void initObserver(Graph *);
80 void treatEvent(
const Event &)
override;
82 void clear()
override;