]> Creatis software - clitk.git/blob - vv/vvSegmentationDialog.h
removed headers
[clitk.git] / vv / vvSegmentationDialog.h
1 #ifndef _VVSEGMENTATIONDIALOG_H
2 #define _VVSEGMENTATIONDIALOG_H
3 #include "ui_vvSegmentationDialog.h"
4 #include "clitkCommon.h"
5 #include "vvImage.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>
17
18 #include <QtDesigner/QDesignerExportWidget>
19 #include <QTreeWidget>
20
21 //====================================================================
22 class vvSegmentationDialog : public QDialog, private Ui::vvSegmentationDialog {
23
24     Q_OBJECT
25
26 public:
27     // constructor - destructor
28     vvSegmentationDialog(QWidget * parent=0, Qt::WindowFlags f=0);
29     ~vvSegmentationDialog();
30     void SetImage(vvImage::Pointer image);
31
32 public slots:
33     void clippingvaluechanged(int);
34     void UpdateSlice(int slicer,int slice);
35     void BinariseSurface();
36     void Erode();
37     void Dilate();
38     void Save();
39     void ChangeDimRendering();
40     void InsertSeed();
41     void KernelValueChanged(int kernel);
42
43 protected:
44     Ui::vvSegmentationDialog ui;
45
46     vvSlicerManager* mManager;
47
48     vtkImageClip* mClipper;
49
50     vtkMarchingSquares* mSquares1;
51     vtkPolyDataMapper* mSquaresMapper1;
52     vtkActor* mSquaresActor1;
53
54     vtkMarchingSquares* mSquares2;
55     vtkPolyDataMapper* mSquaresMapper2;
56     vtkActor* mSquaresActor2;
57
58     std::vector<vtkPolyDataMapper*> m3DMappers;
59     //vtkActor* m3DActor;
60     vtkMarchingCubes* m3DExtractor;
61     std::vector<vtkActor*> m3DActors;
62
63     int mKernelValue;
64
65     std::vector<vtkImageData*> mBinaireImages;
66
67 }; // end class vvSegmentationDialog
68 //====================================================================
69
70 #endif /* end #define _VVSEGMENTATIONDIALOG_H */