]> Creatis software - creaRigidRegistration.git/blob - lib/PlaneReorientation.h
*** empty log message ***
[creaRigidRegistration.git] / lib / PlaneReorientation.h
1 #include "vtkTransform.h"
2 #include "vtkMath.h"
3 #include "vtkMatrix4x4.h"
4 #include <string>
5 #include "vector"
6
7 #include "iostream"
8
9 class PlaneReorientation
10 {
11         public:
12                 //------------------//
13                 //Constructors
14                 //------------------//
15                 PlaneReorientation();
16                 ~PlaneReorientation();
17
18                 void SetVectors(std::vector<int> pointsX, std::vector<int> pointsY, std::vector<int> pointsZ, std::vector<std::string> labels);
19                 void CalculateNormal();
20                 vtkTransform* getTransform();
21
22                 void Run();
23
24         private:
25                 vtkTransform *_transform;
26                 double a[3];
27                 double b[3];
28                 double o[3];
29
30                 double normal[3];               
31 };