]> Creatis software - clitk.git/blob - vv/vvSurfaceViewerDialog.h
Update QVTKWidget to QVTKOpenGLNativeWidget for VTK > 8.1
[clitk.git] / vv / vvSurfaceViewerDialog.h
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to: 
5   - University of LYON              http://www.universite-lyon.fr/
6   - Léon Bérard cancer center       http://www.centreleonberard.fr
7   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
8
9   This software is distributed WITHOUT ANY WARRANTY; without even
10   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11   PURPOSE.  See the copyright notices for more information.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef _vvSurfaceViewerDialog_H
19 #define _vvSurfaceViewerDialog_H
20 #include <vtkVersion.h>
21 #if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9
22 #include "ui_vvSurfaceViewerDialog.h"
23 #else
24 #include "ui_vvSurfaceViewerDialogVTK7.h"
25 #endif
26
27 class vtkPolyDataMapper;
28 class vtkActor;
29 class vtkOBJReader;
30
31 #if QT_VERSION >= 0x050000
32 #include <QtUiPlugin/QDesignerExportWidget>
33 #else
34 #include <QtDesigner/QDesignerExportWidget>
35 #endif
36 #include <QTreeWidget>
37
38 //====================================================================
39 class vvSurfaceViewerDialog : public QDialog, private Ui::vvSurfaceViewerDialog {
40
41     Q_OBJECT
42
43 public:
44     // constructor - destructor
45     vvSurfaceViewerDialog(QWidget * parent=0, Qt::WindowFlags f=0);
46     ~vvSurfaceViewerDialog();
47     void NextTime();
48     void PreviousTime();
49
50 public slots :
51     void LoadSurface();
52
53 private :
54     std::vector<vtkOBJReader*> mReaders;
55     vtkPolyDataMapper* mMapper;
56     vtkActor* mActor;
57     vtkRenderer * mRenderer;
58     int mCurrentTime;
59
60 }; // end class vvSurfaceViewerDialog
61 //====================================================================
62
63 #endif /* end #define _vvSurfaceViewerDialog_H */