]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracasIRMViewManagerDataMhd.h
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxMaracasIRMViewManagerDataMhd.h
1 #ifndef WXMARACASIRMVIEWMANAGERDATAMHD_H_
2 #define WXMARACASIRMVIEWMANAGERDATAMHD_H_
3
4
5 #include "wxMaracasIRMViewManagerData.h"
6
7 #include "vtkMetaImageReader.h"
8 #include "vtkMarchingCubes.h"
9 #include "vtkCleanPolyData.h"
10 #include "vtkImageData.h"
11
12 class wxMaracasIRMViewManagerDataMhd : public wxMaracasIRMViewManagerData  {
13
14 public:
15         
16         wxMaracasIRMViewManagerDataMhd(vtkImageData* imagedata, std::string dataname="");
17         ~wxMaracasIRMViewManagerDataMhd();
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 private:        
46         
47         vtkImageData* _imagedata;
48         int _maxgreylevel;
49
50         /**
51         ** to the image render
52         **/
53         vtkMarchingCubes* _cubesFilter;
54         vtkCleanPolyData* _cleanFilter; 
55         vtkPolyDataMapper* _dataMapper;
56         
57         /**
58         ** Get's the max grey level of the image
59         **/
60         int getMaxLevel(vtkImageData* img);
61         
62
63         
64 };
65
66 #endif /*WXMARACASIRMVIEWMANAGERDATAMHD_H_*/