]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/figureCuttingModel.h
63215526e28472c42bde5e53501c73ac5296b8b5
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / figureCuttingModel.h
1 #ifndef FIGURECUTTINGMODEL_H_
2 #define FIGURECUTTINGMODEL_H_
3
4 #include "vtkTransform.h"
5
6 class figureCuttingModel
7 {
8 public:
9         figureCuttingModel();
10         virtual ~figureCuttingModel();
11
12         void                    SetPosition(double x,double y, double z);
13         double                  GetPositionX();
14         double                  GetPositionY();
15         double                  GetPositionZ();
16
17         void                    SetScale(double sx,double sy, double sz);
18         double                  GetScaleX();
19         double                  GetScaleY();
20         double                  GetScaleZ();
21
22         void                    SetRotation(double alfa,double beta, double teta);
23         double                  GetAngleAlfa();
24         double                  GetAngleBeta();
25         double                  GetAngleTeta();
26
27         void                    SetSpacing(double spcX,double spcY, double spcZ);
28
29         void                    CalculeMatrix();
30         void                    CalculeInversMatrix();
31         virtual bool    IfPointInside(double x, double y, double z);
32         vtkTransform    *GetVtkTransform();
33 //      void                    SetVtkTransform(vtkTransform *matrix);
34         virtual double  GetTheoricVolume();
35         virtual                 const char *GetName();
36
37 private:
38         double                  _px;
39         double                  _py;
40         double                  _pz;
41         double                  _alfa;
42         double                  _beta;
43         double                  _teta;
44         double                  _spcX;
45         double                  _spcY;
46         double                  _spcZ;
47 protected:
48         double                  _sx;
49         double                  _sy;
50         double                  _sz;
51         vtkTransform    *_inversModel;
52         vtkTransform    *_matrixModel;
53         vtkTransform    *_matrixVisual;
54
55 };
56
57 #endif /*FIGURECUTTINGMODEL_H_*/