3 #ifndef __WX__PROCESSING__CT__WIDGET__
4 #define __WX__PROCESSING__CT__WIDGET__
9 #include <vtkMarchingCubes.h>
10 #include <vtkPolyDataMapper.h>
11 #include <vtkImageThreshold.h>
12 #include <vtkImageData.h>
13 #include <vtkImageSeedConnectivity.h>
18 #include "wxMPRWidget.h"
19 #include "wxVTKRenderWindowInteractor.h"
20 #include <kernel/axisExtractor02.h>
22 #include <kernel/marInterfaceCT.h>
23 #include <kernel/marAxis.h>
29 //------------------------------------------------------------------
30 //------------------------------------------------------------------
31 //------------------------------------------------------------------
33 class wxProcessingCTWidget: public wxPanel{
35 wxProcessingCTWidget(wxWindow *parent, marInterfaceCT *mar);
36 ~wxProcessingCTWidget();
37 void ConfigureVTK(marImageData *marimagedata, int x, int y, int z);
39 void OnLowThreshold(wxScrollEvent& event); // Umbral inferior
40 void OnMidThreshold(wxScrollEvent& event); // Umbral medio
45 // void OnHighThreshold(wxScrollEvent& event); // Umbral alto
46 void OnZSlice(wxScrollEvent& event); // Z Slice
47 void OnExtract(wxCommandEvent& event);
48 void OnRefreshView(wxCommandEvent & event);
50 void SetThreshold(int min ,int max);
51 void GetThreshold(int *min ,int *max);
53 void OnSpinLowThresholdSpin1(wxScrollEvent& event);
54 void OnSpinLowThresholdSpin2(wxScrollEvent& event);
62 vtkMarchingCubes *_mCubes;
63 vtkPolyDataMapper *_surfMapper;
68 // New vtk - thresholding
70 vtkImageThreshold *_thresh; //Lower - Upper
71 vtkImageThreshold *_thresh2; //Lower - Medium
74 vtkImageSeedConnectivity *_connect;
75 vtkImageSeedConnectivity *_connect2;
81 wxSlider *_lowthreshold;
82 wxSlider *_midthreshold;
84 wxSlider *_lowthresholdSpin1;
85 wxSlider *_lowthresholdSpin2;
89 //wxSlider *_highthreshold;
91 wxVtk2DBaseView *_imageviewer2D_1;
92 wxVtk2DBaseView *_imageviewer2D_2;
93 wxVtk2DBaseView *_imageviewer2D_3;
97 vtkBaseData *_vtkbasedata_1;
98 vtkBaseData *_vtkbasedata_2;
99 vtkBaseData *_vtkbasedata_3;
101 wxPanel *CreateControlPanel(wxWindow *parent);
102 wxPanel *CreateViewPanel(wxWindow *parent);
107 DECLARE_EVENT_TABLE( );
112 #endif // __WX__PROCESSING__CT__WIDGET__