00001 00002 00003 #ifndef EMPTY_PANEL_WIDGET_H 00004 #define EMPTY_PANEL_WIDGET_H 00005 00006 00007 00008 #include <vtkActor.h> 00009 #include <vtkMarchingCubes.h> 00010 #include <vtkPolyDataMapper.h> 00011 #include <vtkImageData.h> 00012 00013 00014 00015 #include "wxVtkBaseView.h" 00016 #include "wxVTKRenderWindowInteractor.h" 00017 #include <kernel/axisExtractor02.h> 00018 00019 #include <wx/wx.h> 00020 #include <wx/panel.h> 00021 00022 //------------------------------------------------------------------ 00023 //------------------------------------------------------------------ 00024 //------------------------------------------------------------------ 00025 00026 class wxEmptyPanelWidget: public wxPanel{ 00027 public: 00028 wxEmptyPanelWidget(wxWindow *parent); 00029 ~wxEmptyPanelWidget(); 00030 void ConfigureVTK(vtkImageData *imagedata, int x, int y, int z); 00031 void Refresh(); 00032 void OnOpacity1(wxScrollEvent& event); // Original Volume 00033 void OnOpacity2(wxScrollEvent& event); // Result Volume 00034 void OnIsoValue(wxScrollEvent& event); 00035 private: 00036 00037 // Original Volume 00038 vtkMarchingCubes *_mCubes; 00039 vtkPolyDataMapper *_surfMapper; 00040 vtkActor *_surfActor; 00041 00042 // Result volume + Axis 00043 axisExtractor02 *_prgov; 00044 vtkPolyDataMapper *_mapfinal; 00045 vtkActor *_stripfinal; 00046 vtkPolyDataMapper *_isoMapperMC6; 00047 vtkActor *_isoActorMC6; 00048 vtkMarchingCubes *_isoMC6; 00049 00050 00051 wxSlider *_opacity1; 00052 wxSlider *_opacity2; 00053 wxSlider *_isoValue; 00054 wxVtk3DBaseView *_imageviewer3D; 00055 wxPanel *CreateControlPanel(wxWindow *parent); 00056 wxPanel *CreateViewPanel(wxWindow *parent); 00057 }; 00058 00059 #endif // EMPTY_PANEL_WIDGET_H 00060 00061 00062 00063