1 /*=========================================================================
4 Module: $RCSfile: wxManualRegistration3D.h,v $
6 Date: $Date: 2009/05/14 13:54:57 $
7 Version: $Revision: 1.1 $
9 Copyright: (c) 2002, 2003
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.
16 =========================================================================*/
18 #ifndef __WX__MANUAL__REGISTRATION__3D__HXX__
19 #define __WX__MANUAL__REGISTRATION__3D__HXX__
24 #include <vtkObjectBase.h>
25 #include <vtkCommand.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>
40 #include "kernel/marInterface.h"
42 #include "wxMPRBaseData.h"
43 #include "wxVtkBaseView.h"
46 #include <vtkImageData.h>
48 #include "wxMPRWidget.h"
51 #include <wx/notebook.h>
54 //------------------------------------------------------------------
55 //------------------------------------------------------------------
56 //------------------------------------------------------------------
59 class wxManualRegistration3D : public wxPanel
62 wxManualRegistration3D(wxWindow* parent,marImageData *marimageData);
63 ~wxManualRegistration3D( );
66 void ConfigureVTK_B();
69 void OnRefreshView(wxCommandEvent & event);
70 void OnPositionRotation(wxScrollEvent& event);
72 void AddPanelControl_B( wxWindow *parent, marImageData *marimagedata);
73 void AddSecondVolume(marImageData *marimagedata);
74 bool GetIfSecondVolumeExist();
75 void OnTracking(wxCommandEvent& event);
77 void OnCutImagaData(wxCommandEvent &event);
81 vtkMPRBaseData *_vtkmprbasedata_A;
83 vtkTransform *_transform;
84 vtkTransform *_transformBak;
86 wxPanelCuttingImageData *_panelCutting;
87 wxCheckBox *_btnCutImageData;
88 wxFrame *_framePanelCutting;
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;
112 wxPanel* Create3DView( wxWindow *parent, vtkMPRBaseData *vtkmprbasedata);
113 wxPanel* CreateRegistration3DControl( wxWindow *parent, vtkMPRBaseData *vtkmprbasedata);
115 DECLARE_EVENT_TABLE( );
120 #endif // __WX__MANUAL__REGISTRATION__3D__HXX__
122 // EOF - wxManualRegistration3D.h