]> Creatis software - clitk.git/blob - vv/vvSurfaceViewerDialog.h
f53c9bb5ba0fdb0a93e02782e4c21a2960c38004
[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 "ui_vvSurfaceViewerDialog.h"
21
22 class vtkPolyDataMapper;
23 class vtkActor;
24 class vtkOBJReader;
25
26 #if QT_VERSION >= 0x050000
27 #include <QtUiPlugin/QDesignerExportWidget>
28 #else
29 #include <QtDesigner/QDesignerExportWidget>
30 #endif
31 #include <QTreeWidget>
32
33 //====================================================================
34 class vvSurfaceViewerDialog : public QDialog, private Ui::vvSurfaceViewerDialog {
35
36     Q_OBJECT
37
38 public:
39     // constructor - destructor
40     vvSurfaceViewerDialog(QWidget * parent=0, Qt::WindowFlags f=0);
41     ~vvSurfaceViewerDialog();
42     void NextTime();
43     void PreviousTime();
44
45 public slots :
46     void LoadSurface();
47
48 private :
49     std::vector<vtkOBJReader*> mReaders;
50     vtkPolyDataMapper* mMapper;
51     vtkActor* mActor;
52     vtkRenderer * mRenderer;
53     int mCurrentTime;
54
55 }; // end class vvSurfaceViewerDialog
56 //====================================================================
57
58 #endif /* end #define _vvSurfaceViewerDialog_H */