]> Creatis software - creaMaracasVisu.git/blob - lib/GUI/Qt/Viewers/qtvtkviewer.h
15b8a760b51b707a950ae61617a9ea0fa63b3262
[creaMaracasVisu.git] / lib / GUI / Qt / Viewers / qtvtkviewer.h
1 #ifndef QTVTKVIEWER_H
2 #define QTVTKVIEWER_H
3
4
5 #include <QWidget>
6 #include <QMouseEvent>
7
8 #include "QVTKWidget.h"
9 #include "imageplanewidget.h"
10
11 class QtVTKViewer : public QVTKWidget, public ImagePlaneWidget
12 {
13
14 public:
15
16     QtVTKViewer(QWidget* parent);
17
18     typedef ImagePlaneWidget SuperImagePlaneWidget;
19
20 private:
21
22     void invariant();
23
24     /**
25     *   @brief double  _imageindex contains the current point on the image selected by the user, can be used to perform segmentation algorithms on the image i.e the seed for regiongrowing
26     *
27     */
28     double _imageindex[3];
29     /**
30     *   @brief double  _rayorigin contains the origin position of the clicked performed by the user, can be used to perform ray intersection algorithms i.e
31     *       finding an object in the scene
32     *
33     */
34     double _rayorigin[4];    
35
36 protected:
37     // overloaded mouse press handler
38     virtual void mousePressEvent(QMouseEvent* event);
39     // overloaded mouse move handler
40     virtual void mouseMoveEvent(QMouseEvent* event);
41     // overloaded mouse release handler
42     //virtual void mouseReleaseEvent(QMouseEvent* event);
43
44 };
45
46 #endif // QTVTKVIEWER_H