25 #include <tulip/tulipconf.h>
27 #include <QtGui/qcursor.h>
29 #include <tulip/InteractorComposite.h>
30 #include <tulip/NodeLinkDiagramComponent.h>
31 #include <tulip/Camera.h>
37 class TLP_QT_SCOPE MousePanNZoomNavigator:
public InteractorComponent {
39 MousePanNZoomNavigator():cameraScaleFactor(1), isGesturing(false) {}
40 ~MousePanNZoomNavigator() {}
41 bool eventFilter(QObject *, QEvent *);
42 InteractorComponent *clone() {
43 return new MousePanNZoomNavigator();
46 float cameraScaleFactor;
52 class TLP_QT_SCOPE MouseElementDeleter:
public InteractorComponent {
54 MouseElementDeleter() {}
55 ~MouseElementDeleter() {}
56 bool eventFilter(QObject *, QEvent *);
57 InteractorComponent *clone() {
58 return new MouseElementDeleter();
66 class TLP_QT_SCOPE MouseNKeysNavigator:
public MousePanNZoomNavigator {
68 InteractorComponent *currentSpecInteractorComponent;
72 MouseNKeysNavigator() : currentSpecInteractorComponent(NULL) {}
73 MouseNKeysNavigator(
const MouseNKeysNavigator&) {}
74 ~MouseNKeysNavigator() {}
75 bool eventFilter(QObject *, QEvent *);
76 InteractorComponent *clone() {
77 return new MouseNKeysNavigator(*
this);
85 tlp::NodeLinkDiagramComponent *nldc;
86 std::vector<tlp::Graph*> graphHierarchy;
87 std::vector<tlp::Camera> cameraHierarchy;
88 std::vector<tlp::node> nodeHierarchy;
89 std::vector<float> alphaHierarchy;