1 #ifndef WXMARACASSURFACERENDERINGMANAGERDATAMHD_H_
2 #define WXMARACASSURFACERENDERINGMANAGERDATAMHD_H_
5 #include "wxMaracasSurfaceRenderingManagerData.h"
7 #include "vtkMetaImageReader.h"
8 #include "vtkMarchingCubes.h"
9 #include "vtkCleanPolyData.h"
10 #include "vtkImageData.h"
11 #include "vtkClipPolyData.h"
12 #include "vtkPlanes.h"
14 class wxMaracasSurfaceRenderingManagerDataMhd : public wxMaracasSurfaceRenderingManagerData {
18 wxMaracasSurfaceRenderingManagerDataMhd(vtkImageData* imagedata, std::string dataname="", vtkRenderWindowInteractor* interactor=0);
19 ~wxMaracasSurfaceRenderingManagerDataMhd();
23 ** Adds a prop3D to the world of the application
25 void setVtkImageData(vtkImageData* imagedata);
28 ** changes the isovalue in a prop3D
30 void changeIsoValue(double value);
32 ** Check if the variables are setted correctly
34 void checkInvariant();
37 ** Returns the grey max level of the image
40 int getMaxGreyLevel();
45 void contourExtractor(int isovalue);
54 vtkImageData* _imagedata;
58 ** to the image render
60 vtkMarchingCubes* _cubesFilter;
61 vtkCleanPolyData* _cleanFilter;
62 vtkPolyDataMapper* _dataMapper;
63 vtkClipPolyData* _tissueClipper;
64 vtkPlanes* _tissuePlanes;
67 ** Get's the max grey level of the image
69 int getMaxLevel(vtkImageData* img);
75 #endif /*WXMARACASSURFACERENDERINGMANAGERDATAMHD_H_*/