]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracasSurfaceRenderingManagerDataMhd.h
324b8d9db5c3728be0468dff03e8a468c175ccca
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxMaracasSurfaceRenderingManagerDataMhd.h
1 #ifndef WXMARACASSURFACERENDERINGMANAGERDATAMHD_H_
2 #define WXMARACASSURFACERENDERINGMANAGERDATAMHD_H_
3
4
5 #include "wxMaracasSurfaceRenderingManagerData.h"
6
7 #include "vtkMetaImageReader.h"
8 #include "vtkMarchingCubes.h"
9 #include "vtkCleanPolyData.h"
10 #include "vtkImageData.h"
11
12 class wxMaracasSurfaceRenderingManagerDataMhd : public wxMaracasSurfaceRenderingManagerData  {
13
14 public:
15         
16         wxMaracasSurfaceRenderingManagerDataMhd(vtkImageData* imagedata, std::string dataname="");
17         ~wxMaracasSurfaceRenderingManagerDataMhd();
18
19         
20         /**
21         **      Adds a prop3D to the world of the application
22         **/
23         void setVtkImageData(vtkImageData* imagedata);
24         
25         /**
26         **      changes the isovalue in a prop3D
27         **/
28         void changeIsoValue(double value);      
29         /**
30         **      Check if the variables are setted correctly
31         **/
32         void checkInvariant();  
33         
34         /**
35         **      Returns the grey max level of the image
36         **/
37
38         int getMaxGreyLevel();
39
40         /**
41         **      creates the image 
42         **/
43         void contourExtractor(int isovalue);            
44         
45         /**
46         ** Updates surface
47         **/
48         void UpdateSurface();
49
50 private:        
51         
52         vtkImageData* _imagedata;
53         int _maxgreylevel;
54
55         /**
56         ** to the image render
57         **/
58         vtkMarchingCubes* _cubesFilter;
59         vtkCleanPolyData* _cleanFilter; 
60         vtkPolyDataMapper* _dataMapper;
61         
62         /**
63         ** Get's the max grey level of the image
64         **/
65         int getMaxLevel(vtkImageData* img);
66         
67
68         
69 };
70
71 #endif /*WXMARACASSURFACERENDERINGMANAGERDATAMHD_H_*/