1 #include "vtkImageData.h"
3 #include "vtkRenderer.h"
5 #include "vtkCellArray.h"
11 //----------------------------------------------------------------------------------------
13 //----------------------------------------------------------------------------------------
15 //--------------------------
16 //Constructor & Destructor
17 //--------------------------
18 Surface(vtkImageData* imageData, int ZHeight, std::string iColor);
20 //--------------------------
22 //--------------------------
24 getting ready the points
26 void initialize(int dimensions[],double spacing[]);
28 Calculate the new image and save it in the attribute imageResult
29 it is used if the user had given the imageData
31 void createSurface(vtkImageData* imageData);
36 vtkActor* getSurface();
39 constructing image surface
41 void surface(vtkImageData* imageData);
44 Template for constructing the surface by image type
46 template <class T> void surfaceByType(T* dataImagePointer, vtkImageData* imageData, T max);
50 //----------------------------------------------------------------------------------------
51 // Attributes declaration
52 //----------------------------------------------------------------------------------------
57 vtkActor* surfaceResult;
60 Maximun height of the surface
70 The type of image being viewed
75 The points of the surface
77 vtkPoints* surfacePoints;
80 Cells to be constructed from the surface
82 vtkCellArray* surfaceCells;