2 #ifndef __ContourVOIWidget_h_INCLUDED_H__
3 #define __ContourVOIWidget_h_INCLUDED_H__
7 #include <manualRoiControler.h>
8 #include <manualViewRoi.h>
9 #include "wxVtkBaseView.h"
10 #include "mBarRange.h"
15 class ContourVOIWidget;
16 //------------------------------------------------------------------------------------------------------------------------------------
17 // Event handling auxiliar class
18 //------------------------------------------------------------------------------------------------------------------------------------
19 class wxWidgetSliderMinMaxVOI : wxEvtHandler
22 //--------------------------------------------------------------------------------------------------------------------------------
23 // Constructors ans destructors
24 //--------------------------------------------------------------------------------------------------------------------------------
25 wxWidgetSliderMinMaxVOI(ContourVOIWidget *contourtool,mBarRange * modelBarRange);
26 ~wxWidgetSliderMinMaxVOI();
28 //--------------------------------------------------------------------------------------------------------------------------------
29 // Min-Max Barrange received events
30 //--------------------------------------------------------------------------------------------------------------------------------
31 void onBarrange(wxCommandEvent& event);
32 void onActualChange_Bar(wxCommandEvent& event);
33 void onStartChange_Bar(wxCommandEvent& event);
34 void onEndChange_Bar(wxCommandEvent& event);
35 void onSelectionEnd(wxCommandEvent& event);
36 void onMovedBar(wxCommandEvent& event);
39 //--------------------------------------------------------------------------------------------------------------------------------
41 //--------------------------------------------------------------------------------------------------------------------------------
42 ContourVOIWidget *mcontourtool;
43 mBarRange *modBarRange;
47 //--------------------------------------------------------------------------------------------------------------------------------
48 //--------------------------------------------------------------------------------------------------------------------------------
49 //--------------------------------------------------------------------------------------------------------------------------------
51 class creaMaracasVisu_EXPORT ContourVOIWidget : public wxPanel
54 ContourVOIWidget( wxWindow *parent, wxVtkBaseView *wxvtkbaseview , vtkImageData* imagedata);
58 wxVtkBaseView *GetWxVtkBaseView();
59 void GetVOI( int voi[6] );
65 vtkImageData *imagedata;
66 wxVtkBaseView *wxvtkbaseview;
68 manualRoiControler *_manRoiControl;
69 manualContourModel *_mContourModel;
70 manualViewRoi *_mViewRoi;
74 #endif // __ContourVOIWidget_h_INCLUDED_H__