]> Creatis software - creaMaracasVisu.git/blob - lib/GUI/Qt/Viewers/qtvtkviewer.h
changes in qt for volume rendering with gpu support, if you are working with volume...
[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     void SetOutputFormatToRGBA();
21 private:
22
23     void invariant();
24
25     /**
26     *   @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
27     *
28     */
29     double _imageindex[3];
30     /**
31     *   @brief double  _rayorigin contains the origin position of the clicked performed by the user, can be used to perform ray intersection algorithms i.e
32     *       finding an object in the scene
33     *
34     */
35     double _rayorigin[4];        
36
37 protected:
38     // overloaded mouse press handler
39     virtual void mousePressEvent(QMouseEvent* event);
40     // overloaded mouse move handler
41     virtual void mouseMoveEvent(QMouseEvent* event);
42     // overloaded mouse release handler
43     //virtual void mouseReleaseEvent(QMouseEvent* event);
44
45 };
46
47 #endif // QTVTKVIEWER_H