1 #ifndef WXMARACASIRMVIEWMANAGERDATAMHD_H_
2 #define WXMARACASIRMVIEWMANAGERDATAMHD_H_
5 #include "wxMaracasIRMViewManagerData.h"
7 #include "vtkMetaImageReader.h"
8 #include "vtkMarchingCubes.h"
9 #include "vtkCleanPolyData.h"
10 #include "vtkImageData.h"
12 class wxMaracasIRMViewManagerDataMhd : public wxMaracasIRMViewManagerData {
16 wxMaracasIRMViewManagerDataMhd(vtkImageData* imagedata, std::string dataname="");
17 ~wxMaracasIRMViewManagerDataMhd();
21 ** Adds a prop3D to the world of the application
23 void setVtkImageData(vtkImageData* imagedata);
26 ** changes the isovalue in a prop3D
28 void changeIsoValue(double value);
30 ** Check if the variables are setted correctly
32 void checkInvariant();
35 ** Returns the grey max level of the image
38 int getMaxGreyLevel();
43 void contourExtractor(int isovalue);
47 vtkImageData* _imagedata;
51 ** to the image render
53 vtkMarchingCubes* _cubesFilter;
54 vtkCleanPolyData* _cleanFilter;
55 vtkPolyDataMapper* _dataMapper;
58 ** Get's the max grey level of the image
60 int getMaxLevel(vtkImageData* img);
66 #endif /*WXMARACASIRMVIEWMANAGERDATAMHD_H_*/