]> Creatis software - clitk.git/blob - vv/vvSurfaceViewerDialog.h
Initial revision
[clitk.git] / vv / vvSurfaceViewerDialog.h
1 #ifndef _vvSurfaceViewerDialog_H
2 #define _vvSurfaceViewerDialog_H
3
4 /*=========================================================================
5
6 Program:   vv
7 Module:    $RCSfile: vvSurfaceViewerDialog.h,v $
8 Language:  C++
9 Date:      $Date: 2010/01/06 13:31:57 $
10 Version:   $Revision: 1.1 $
11 Author :   David Sarrut (david.sarrut@gmail.com)
12
13 Copyright (C) 2008
14 Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
15 CREATIS-LRMN http://www.creatis.insa-lyon.fr
16
17 This program is free software: you can redistribute it and/or modify
18 it under the terms of the GNU General Public License as published by
19 the Free Software Foundation, version 3 of the License.
20
21 This program is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24 GNU General Public License for more details.
25
26 You should have received a copy of the GNU General Public License
27 along with this program.  If not, see <http://www.gnu.org/licenses/>.
28
29 =========================================================================*/
30
31
32 #include "ui_vvSurfaceViewerDialog.h"
33
34 class vtkPolyDataMapper;
35 class vtkActor;
36 class vtkOBJReader;
37
38 #include <QtDesigner/QDesignerExportWidget>
39 #include <QTreeWidget>
40
41 //====================================================================
42 class vvSurfaceViewerDialog : public QDialog, private Ui::vvSurfaceViewerDialog {
43
44     Q_OBJECT
45
46 public:
47     // constructor - destructor
48     vvSurfaceViewerDialog(QWidget * parent=0, Qt::WindowFlags f=0);
49     ~vvSurfaceViewerDialog();
50     void NextTime();
51     void PreviousTime();
52
53 public slots :
54     void LoadSurface();
55
56 private :
57     std::vector<vtkOBJReader*> mReaders;
58     vtkPolyDataMapper* mMapper;
59     vtkActor* mActor;
60     vtkRenderer * mRenderer;
61     unsigned int mCurrentTime;
62
63 }; // end class vvSurfaceViewerDialog
64 //====================================================================
65
66 #endif /* end #define _vvSurfaceViewerDialog_H */