1 #ifndef _VVSEGMENTATIONDIALOG_H
2 #define _VVSEGMENTATIONDIALOG_H
3 #include "ui_vvSegmentationDialog.h"
4 #include "clitkCommon.h"
6 #include "vvSlicerManager.h"
7 #include "vtkMarchingSquares.h"
8 #include "vtkImageClip.h"
9 #include "vtkClipPolyData.h"
10 #include "vtkImageToPolyDataFilter.h"
11 #include "vtkLookupTable.h"
12 #include "vtkImageMapToWindowLevelColors.h"
13 #include "vtkImageActor.h"
14 #include "vtkMarchingCubes.h"
15 #include "vtkPolyData.h"
16 #include <vtkPolyDataMapper.h>
18 #include <QtDesigner/QDesignerExportWidget>
19 #include <QTreeWidget>
21 //====================================================================
22 class vvSegmentationDialog : public QDialog, private Ui::vvSegmentationDialog {
27 // constructor - destructor
28 vvSegmentationDialog(QWidget * parent=0, Qt::WindowFlags f=0);
29 ~vvSegmentationDialog();
30 void SetImage(vvImage::Pointer image);
33 void clippingvaluechanged(int);
34 void UpdateSlice(int slicer,int slice);
35 void BinariseSurface();
39 void ChangeDimRendering();
41 void KernelValueChanged(int kernel);
44 Ui::vvSegmentationDialog ui;
46 vvSlicerManager* mManager;
48 vtkImageClip* mClipper;
50 vtkMarchingSquares* mSquares1;
51 vtkPolyDataMapper* mSquaresMapper1;
52 vtkActor* mSquaresActor1;
54 vtkMarchingSquares* mSquares2;
55 vtkPolyDataMapper* mSquaresMapper2;
56 vtkActor* mSquaresActor2;
58 std::vector<vtkPolyDataMapper*> m3DMappers;
60 vtkMarchingCubes* m3DExtractor;
61 std::vector<vtkActor*> m3DActors;
65 std::vector<vtkImageData*> mBinaireImages;
67 }; // end class vvSegmentationDialog
68 //====================================================================
70 #endif /* end #define _VVSEGMENTATIONDIALOG_H */