#ifndef WXMARACASSURFACERENDERINGMANAGERDATAMHD_H_ #define WXMARACASSURFACERENDERINGMANAGERDATAMHD_H_ #include "wxMaracasSurfaceRenderingManagerData.h" #include "vtkMetaImageReader.h" #include "vtkMarchingCubes.h" #include "vtkCleanPolyData.h" #include "vtkImageData.h" class wxMaracasSurfaceRenderingManagerDataMhd : public wxMaracasSurfaceRenderingManagerData { public: wxMaracasSurfaceRenderingManagerDataMhd(vtkImageData* imagedata, std::string dataname=""); ~wxMaracasSurfaceRenderingManagerDataMhd(); /** ** Adds a prop3D to the world of the application **/ void setVtkImageData(vtkImageData* imagedata); /** ** changes the isovalue in a prop3D **/ void changeIsoValue(double value); /** ** Check if the variables are setted correctly **/ void checkInvariant(); /** ** Returns the grey max level of the image **/ int getMaxGreyLevel(); /** ** creates the image **/ void contourExtractor(int isovalue); private: vtkImageData* _imagedata; int _maxgreylevel; /** ** to the image render **/ vtkMarchingCubes* _cubesFilter; vtkCleanPolyData* _cleanFilter; vtkPolyDataMapper* _dataMapper; /** ** Get's the max grey level of the image **/ int getMaxLevel(vtkImageData* img); }; #endif /*WXMARACASSURFACERENDERINGMANAGERDATAMHD_H_*/