]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxManualRegistration3D.h
BUG macOs
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxManualRegistration3D.h
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: wxManualRegistration3D.h,v $
5   Language:  C++
6   Date:      $Date: 2008/10/31 16:32:42 $
7   Version:   $Revision: 1.1 $
8
9   Copyright: (c) 2002, 2003
10   License:
11   
12      This software is distributed WITHOUT ANY WARRANTY; without even 
13      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14      PURPOSE.  See the above copyright notice for more information.
15
16 =========================================================================*/
17
18 #ifndef __WX__MANUAL__REGISTRATION__3D__HXX__
19 #define __WX__MANUAL__REGISTRATION__3D__HXX__
20
21 /*
22 #include <vector>
23
24 #include <vtkObjectBase.h>
25 #include <vtkCommand.h>
26 #include <vtkActor.h>
27 #include <vtkPoints.h>
28 #include <vtkPolyData.h>
29 #include <vtkPolyDataMapper.h>
30 #include <vtkProbeFilter.h>
31 #include <vtkPlaneSource.h> 
32 #include <vtkImageChangeInformation.h>
33 #include <vtkStructuredPoints.h> 
34 #include <vtkTransform.h> 
35 #include <vtkImageViewer2.h> 
36 #include <vtkBoxWidget.h>
37 */
38              
39 /*
40 #include "kernel/marInterface.h"
41
42 #include "wxMPRBaseData.h"
43 #include "wxVtkBaseView.h"
44 */
45
46 #include <vtkImageData.h> 
47
48 #include "wxMPRWidget.h"
49
50 #include <wx/panel.h>
51 #include <wx/notebook.h>
52
53
54 //------------------------------------------------------------------
55 //------------------------------------------------------------------
56 //------------------------------------------------------------------
57
58
59 class wxManualRegistration3D : public wxPanel
60 {
61 public:
62     wxManualRegistration3D(wxWindow* parent,marImageData *marimageData);
63         ~wxManualRegistration3D( );
64
65         void            ConfigureVTK();
66         void            ConfigureVTK_B();
67
68         void            RefreshView();
69         void            OnRefreshView(wxCommandEvent & event);
70         void            OnPositionRotation(wxScrollEvent& event);
71
72         void            AddPanelControl_B( wxWindow *parent, marImageData *marimagedata);
73         void            AddSecondVolume(marImageData *marimagedata);
74         bool            GetIfSecondVolumeExist();
75         void            OnTracking(wxCommandEvent& event);
76         
77         void            OnCutImagaData(wxCommandEvent &event);
78
79 private:
80
81         vtkMPRBaseData                                          *_vtkmprbasedata_A;
82
83         vtkTransform                                            *_transform;
84         vtkTransform                                            *_transformBak;
85
86         wxPanelCuttingImageData                         *_panelCutting; 
87         wxCheckBox                                                      *_btnCutImageData;
88         wxFrame                                                         *_framePanelCutting; 
89
90         double                                                          xBak;
91         double                                                          yBak;
92         double                                                          zBak;
93         wxSlider                                                        *_posX;
94         wxSlider                                                        *_posY;
95         wxSlider                                                        *_posZ; 
96         wxSlider                                                        *_scaleX; 
97         wxSlider                                                        *_scaleY; 
98         wxSlider                                                        *_scaleZ; 
99         wxSlider                                                        *_angAlfa; 
100         wxSlider                                                        *_angBeta;
101         wxSlider                                                        *_angGama; 
102         wxCheckBox                                                      *_btnTrack;
103         wxPanel                                                         *_panelControl_B;
104         marImageData                                            *_marimageData; 
105 //      vtkImageData                                            *_imageData_B; 
106         wxVtk3DBaseView                                         *_wxvtk3Dbaseview_Clipping3D;
107         wxVtkMPR3DView                                          *_wxvtkmpr3Dview_A;
108         wxVtkClipping3DView                                     *_wxvtkclipping3Dview_A;
109         wxVtkMPR3DView                                          *_wxvtkmpr3Dview_B;
110         wxVtkClipping3DView                                     *_wxvtkclipping3Dview_B;
111
112         wxPanel*        Create3DView( wxWindow *parent, vtkMPRBaseData *vtkmprbasedata);
113         wxPanel*        CreateRegistration3DControl( wxWindow *parent, vtkMPRBaseData *vtkmprbasedata);
114
115         DECLARE_EVENT_TABLE( );
116 };
117
118
119
120 #endif // __WX__MANUAL__REGISTRATION__3D__HXX__
121
122 // EOF - wxManualRegistration3D.h