1 #ifndef _VVSEGMENTATIONDIALOG_H
2 #define _VVSEGMENTATIONDIALOG_H
4 /*=========================================================================
8 Author : David Sarrut (david.sarrut@gmail.com)
11 Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
12 CREATIS-LRMN http://www.creatis.insa-lyon.fr
14 This program is free software: you can redistribute it and/or modify
15 it under the terms of the GNU General Public License as published by
16 the Free Software Foundation, version 3 of the License.
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
23 You should have received a copy of the GNU General Public License
24 along with this program. If not, see <http://www.gnu.org/licenses/>.
26 =========================================================================*/
29 #include "ui_vvSegmentationDialog.h"
30 #include "clitkCommon.h"
32 #include "vvSlicerManager.h"
33 #include "vtkMarchingSquares.h"
34 #include "vtkImageClip.h"
35 #include "vtkClipPolyData.h"
36 #include "vtkImageToPolyDataFilter.h"
37 #include "vtkLookupTable.h"
38 #include "vtkImageMapToWindowLevelColors.h"
39 #include "vtkImageActor.h"
40 #include "vtkMarchingCubes.h"
41 #include "vtkPolyData.h"
42 #include <vtkPolyDataMapper.h>
44 #include <QtDesigner/QDesignerExportWidget>
45 #include <QTreeWidget>
47 //====================================================================
48 class vvSegmentationDialog : public QDialog, private Ui::vvSegmentationDialog {
53 // constructor - destructor
54 vvSegmentationDialog(QWidget * parent=0, Qt::WindowFlags f=0);
55 ~vvSegmentationDialog();
56 void SetImage(vvImage::Pointer image);
59 void clippingvaluechanged(int);
60 void UpdateSlice(int slicer,int slice);
61 void BinariseSurface();
65 void ChangeDimRendering();
67 void KernelValueChanged(int kernel);
70 Ui::vvSegmentationDialog ui;
72 vvSlicerManager* mManager;
74 vtkImageClip* mClipper;
76 vtkMarchingSquares* mSquares1;
77 vtkPolyDataMapper* mSquaresMapper1;
78 vtkActor* mSquaresActor1;
80 vtkMarchingSquares* mSquares2;
81 vtkPolyDataMapper* mSquaresMapper2;
82 vtkActor* mSquaresActor2;
84 std::vector<vtkPolyDataMapper*> m3DMappers;
86 vtkMarchingCubes* m3DExtractor;
87 std::vector<vtkActor*> m3DActors;
91 std::vector<vtkImageData*> mBinaireImages;
93 }; // end class vvSegmentationDialog
94 //====================================================================
96 #endif /* end #define _VVSEGMENTATIONDIALOG_H */