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