00001 /*========================================================================= 00002 00003 Program: wxMaracas 00004 Module: $RCSfile: wxManualTree_MPRWidget.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009/05/15 12:59:25 $ 00007 Version: $Revision: 1.3 $ 00008 00009 Copyright: (c) 2002, 2003 00010 License: 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notice for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef __WX__MANUAL__TREE__MPR__WIDGET__HXX__ 00019 #define __WX__MANUAL__TREE__MPR__WIDGET__HXX__ 00020 00021 /* 00022 #include <vector> 00023 00024 #include <vtkObjectBase.h> 00025 #include <vtkCommand.h> 00026 #include <vtkActor.h> 00027 #include <vtkPoints.h> 00028 #include <vtkPolyData.h> 00029 #include <vtkPolyDataMapper.h> 00030 #include <vtkProbeFilter.h> 00031 #include <vtkPlaneSource.h> 00032 #include <vtkImageChangeInformation.h> 00033 #include <vtkStructuredPoints.h> 00034 #include <vtkTransform.h> 00035 #include <vtkImageViewer2.h> 00036 #include <vtkBoxWidget.h> 00037 */ 00038 00039 /* 00040 #include "kernel/marInterface.h" 00041 00042 #include "wxMPRBaseData.h" 00043 #include "wxVtkBaseView.h" 00044 */ 00045 00046 #include "wxMPRWidget.h" 00047 #include "wxMPRWidget2.h" 00048 #include "manualViewPerpPlaneContour.h" 00049 #include "manualContourModel.h" 00050 #include "manualContour3VControler.h" 00051 #include "manualView3VContour.h" 00052 #include "manualContour3V3DControler.h" 00053 #include "manualView3DContour.h" 00054 #include "manualContourPerpPlaneControler.h" 00055 #include "manualViewPerpPlaneContour.h" 00056 00057 #include <wx/notebook.h> 00058 00059 #include "wxVtk3DBaseView.h" 00060 00061 //------------------------------------------------------------------ 00062 //------------------------------------------------------------------ 00063 //------------------------------------------------------------------ 00064 00065 00066 class wxManualTree_MPRWidget : public wxPanel 00067 { 00068 public: 00069 wxManualTree_MPRWidget(wxWindow* parent,marImageData *marimageData,double voxelSize); 00070 ~wxManualTree_MPRWidget( ); 00071 00072 void ConfigureVTK(); 00073 00074 void RefreshView(); 00075 void OnRefreshView(wxCommandEvent & event); 00076 00077 00078 vtkMPRBaseData *GetVtkMPRBaseData(); 00079 vtkPlane2DView *GetVtkPlane2DView(); 00080 00081 manualContourModel *GetManualContourModel(); 00082 00083 00084 private: 00085 double _voxelSize; 00086 marImageData *_marimageData; 00087 wxMPRWidget2 *_MPRWidget2; 00088 00089 // 00090 manualContour3VControler *_manContourControl_0; 00091 manualView3VContour *_mViewContour_0; 00092 00093 manualContour3VControler *_manContourControl_1; 00094 manualView3VContour *_mViewContour_1; 00095 00096 manualContour3VControler *_manContourControl_2; 00097 manualContourModel *_mContourModel_2; 00098 manualView3VContour *_mViewContour_2; 00099 00100 manualContour3V3DControler *_manContourControl_3V3D; 00101 manualView3DContour *_mViewContour_3D; 00102 00103 00104 manualContourPerpPlaneControler *_manContourControl_p; 00105 manualViewPerpPlaneContour *_mViewContour_p; 00106 00107 // 00108 wxVtk3DBaseView *_wxvtk3Dbaseview_Clipping3D_C; 00109 wxVtkMPR3DView *_wxvtkmpr3Dview_C; 00110 wxVtkClipping3DView *_wxvtkclipping3Dview_C; 00111 00112 wxPanel *Create3DViewContour( wxWindow *parent, vtkMPRBaseData *vtkmprbasedata); 00113 void ConfigureContour(); 00114 00115 DECLARE_EVENT_TABLE( ); 00116 00117 00118 00119 }; 00120 00121 00122 00123 00124 #endif // __WX__MANUAL__TREE__MPR__WIDGET__HXX__ 00125 00126 // EOF - wxManualTree_MPRWidget.h