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 #include <QtDesigner/QDesignerExportWidget>
36 #include <QTreeWidget>
38 //====================================================================
39 class vvSegmentationDialog : public QDialog, private Ui::vvSegmentationDialog {
44 // constructor - destructor
45 vvSegmentationDialog(QWidget * parent=0, Qt::WindowFlags f=0);
46 ~vvSegmentationDialog();
47 void SetImage(vvImage::Pointer image);
50 void clippingvaluechanged(int);
51 void UpdateSlice(int slicer,int slice);
52 void BinariseSurface();
56 void ChangeDimRendering();
58 void KernelValueChanged(int kernel);
61 Ui::vvSegmentationDialog ui;
63 vvSlicerManager* mManager;
65 vtkImageClip* mClipper;
67 vtkMarchingSquares* mSquares1;
68 vtkPolyDataMapper* mSquaresMapper1;
69 vtkActor* mSquaresActor1;
71 vtkMarchingSquares* mSquares2;
72 vtkPolyDataMapper* mSquaresMapper2;
73 vtkActor* mSquaresActor2;
75 std::vector<vtkPolyDataMapper*> m3DMappers;
77 vtkMarchingCubes* m3DExtractor;
78 std::vector<vtkActor*> m3DActors;
82 std::vector<vtkImageData*> mBinaireImages;
84 }; // end class vvSegmentationDialog
85 //====================================================================
87 #endif /* end #define _VVSEGMENTATIONDIALOG_H */