21 #ifndef MOUSESELECTION_H 22 #define MOUSESELECTION_H 24 #include <tulip/GLInteractor.h> 29 class TLP_QT_SCOPE MouseSelector :
public GLInteractorComponent {
31 enum SelectionMode { EdgesAndNodes = 0, EdgesOnly, NodesOnly };
33 MouseSelector(Qt::MouseButton button = Qt::LeftButton,
34 Qt::KeyboardModifier modifier = Qt::NoModifier, SelectionMode mode = EdgesAndNodes);
35 ~MouseSelector()
override {}
36 bool draw(GlMainWidget *)
override;
37 bool eventFilter(QObject *, QEvent *)
override;
40 Qt::MouseButton mButton;
41 Qt::KeyboardModifier kModifier;
42 Qt::KeyboardModifiers mousePressModifier;