1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
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
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.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef _VVSEGMENTATIONDIALOG_H
19 #define _VVSEGMENTATIONDIALOG_H
20 #include "ui_vvSegmentationDialog.h"
21 #include "clitkCommon.h"
23 #include "vvSlicerManager.h"
24 #include "vtkMarchingSquares.h"
25 #include "vtkImageClip.h"
26 #include "vtkClipPolyData.h"
27 #include "vtkImageToPolyDataFilter.h"
28 #include "vtkLookupTable.h"
29 #include "vtkImageMapToWindowLevelColors.h"
30 #include "vtkImageActor.h"
31 #include "vtkMarchingCubes.h"
32 #include "vtkPolyData.h"
33 #include <vtkPolyDataMapper.h>
35 #if QT_VERSION >= 0x050000
36 #include <QtUiPlugin/QDesignerExportWidget>
38 #include <QtDesigner/QDesignerExportWidget>
40 #include <QTreeWidget>
42 //====================================================================
43 class vvSegmentationDialog : public QDialog, private Ui::vvSegmentationDialog {
48 // constructor - destructor
49 vvSegmentationDialog(QWidget * parent=0, Qt::WindowFlags f=0);
50 ~vvSegmentationDialog();
51 void SetImage(vvImage::Pointer image);
54 void clippingvaluechanged(int);
55 void UpdateSlice(int slicer,int slice);
56 void BinariseSurface();
60 void ChangeDimRendering();
62 void KernelValueChanged(int kernel);
65 Ui::vvSegmentationDialog ui;
67 vvSlicerManager* mManager;
69 vtkImageClip* mClipper;
71 vtkMarchingSquares* mSquares1;
72 vtkPolyDataMapper* mSquaresMapper1;
73 vtkActor* mSquaresActor1;
75 vtkMarchingSquares* mSquares2;
76 vtkPolyDataMapper* mSquaresMapper2;
77 vtkActor* mSquaresActor2;
79 std::vector<vtkPolyDataMapper*> m3DMappers;
81 vtkMarchingCubes* m3DExtractor;
82 std::vector<vtkActor*> m3DActors;
86 std::vector<vtkImageData*> mBinaireImages;
88 }; // end class vvSegmentationDialog
89 //====================================================================
91 #endif /* end #define _VVSEGMENTATIONDIALOG_H */