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 <vtkVersion.h>
21 #if (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 1) || VTK_MAJOR_VERSION >= 9
22 #include "ui_vvSegmentationDialog.h"
24 #include "ui_vvSegmentationDialogVTK7.h"
26 #include "clitkCommon.h"
28 #include "vvSlicerManager.h"
29 #include "vtkMarchingSquares.h"
30 #include "vtkImageClip.h"
31 #include "vtkClipPolyData.h"
32 #include "vtkImageToPolyDataFilter.h"
33 #include "vtkLookupTable.h"
34 #include "vtkImageMapToWindowLevelColors.h"
35 #include "vtkImageActor.h"
36 #include "vtkMarchingCubes.h"
37 #include "vtkPolyData.h"
38 #include <vtkPolyDataMapper.h>
40 #if QT_VERSION >= 0x050000
41 #include <QtUiPlugin/QDesignerExportWidget>
43 #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 */