1 #ifndef WXSPHEREVIEW_H_
2 #define WXSPHEREVIEW_H_
4 #include "wxVtk2DBaseView.h"
6 #include "vtkInteractorStyleSphere.h"
7 #include "vtkTransform.h"
11 class wxSphereView : public wxVtk2DBaseView
14 wxSphereView( wxWindow *parent, vtkMPRBaseData *vtkmprbasedata, vtkImageData *imageData);
16 virtual void Configure();
18 void RotationStart(double vx, double vy, bool ok_v, bool ok_ang);
19 virtual void RefreshView();
20 virtual void SetVoxel(double i, double j, int delta, double id, unsigned short gris);
21 void SetDeltaVoxel(int delta);
23 void SetRadio(double radio);
24 int GetIdOfImage(double radio);
25 void SetXYZtoParent(double i, double j);
29 std::vector<idAlBeRa*> _lstId;
42 vtkImageData *_imageDataOriginal;
43 vtkImageData *_imageSphere;
45 vtkMPRBaseData *_vtkmprbasedata;
46 vtkInteractorStyleSphere *_vtkinteractorstylesphere;
48 vtkTransform *_transform;
49 vtkTransform *_transform1;
50 vtkTransform *_transform2;
52 void FiltreImage(int id, double radio);
53 void FiltreImageB(int id, double radio, bool ok,int deltaTMP);
54 void DefineImageSphere();
57 void InitSphere(double points[4][3]);
58 double SphereFindCenter(double P[4][3], double cc[3]);
59 double determinant(double a[4][4], int n);
61 void GetPointSphere(double p[3],double r1,double angA,double angB);
62 void RotatePointOverTheSphere( double pp[3], double p[3],double cc[3]);
63 void TransferePoints(double pp1[3],double pp2[3],double AngX,double AngY,vtkImageData *image);
66 #endif /*WXSPHEREVIEW_H_*/