]> Creatis software - creaRigidRegistration.git/blob - lib/Surface.h
ed7a826fac713f064158bfa06be05709e42ab4ab
[creaRigidRegistration.git] / lib / Surface.h
1 #include "vtkImageData.h"
2 #include "vtkProp3D.h"
3 #include "vtkRenderer.h"
4
5 #include <string>
6
7 class Surface 
8 {
9         //----------------------------------------------------------------------------------------
10         // Methods definition
11         //----------------------------------------------------------------------------------------
12         public:
13         //--------------------------
14         //Constructor & Destructor
15         //--------------------------            
16                 Surface(vtkImageData* imageData, int ZHeight, std::string iColor);
17                 ~Surface();
18         //--------------------------
19         //Methods
20         //--------------------------
21                 /*
22                 getting ready the points
23                 */
24                 void initialize(int dimensions[],double spacing[]);
25                 /*
26                 Calculate the new image and save it in the attribute imageResult
27                 it is used if the user had given the imageData
28                 */
29                 void createSurface(vtkImageData* imageData);
30                 
31                 /*
32                 Returns the Surface
33                 */
34                 vtkActor* getSurface();
35                 
36                 /*
37                 constructing image substract
38                 */
39                 void surface(vtkImageData* imageData);
40                 
41
42
43         //----------------------------------------------------------------------------------------
44         // Attributes declaration
45         //----------------------------------------------------------------------------------------
46         private: 
47                 /*
48                  Surface
49                 */
50                 vtkActor* surfaceResult;
51                 
52                 /*
53                 Maximun height of the surface
54                 */
55                 int height;
56                 
57                 /*
58                 Color for the surface
59                 */
60                 std::string color;
61
62                 /*
63                 The type of image being viewed
64                 */
65                 int imageType;
66 };
67