2 #ifndef __ContourVOIWidget_h_INCLUDED_H__
3 #define __ContourVOIWidget_h_INCLUDED_H__
6 #include <manualContour.h>
12 class ContourVOIWidget;
13 //------------------------------------------------------------------------------------------------------------------------------------
14 // Event handling auxiliar class
15 //------------------------------------------------------------------------------------------------------------------------------------
16 class wxWidgetSliderMinMaxVOI : wxEvtHandler
19 //--------------------------------------------------------------------------------------------------------------------------------
20 // Constructors ans destructors
21 //--------------------------------------------------------------------------------------------------------------------------------
22 wxWidgetSliderMinMaxVOI(ContourVOIWidget *contourtool,mBarRange * modelBarRange);
23 ~wxWidgetSliderMinMaxVOI();
25 //--------------------------------------------------------------------------------------------------------------------------------
26 // Min-Max Barrange received events
27 //--------------------------------------------------------------------------------------------------------------------------------
28 void onBarrange(wxCommandEvent& event);
29 void onActualChange_Bar(wxCommandEvent& event);
30 void onStartChange_Bar(wxCommandEvent& event);
31 void onEndChange_Bar(wxCommandEvent& event);
32 void onSelectionEnd(wxCommandEvent& event);
33 void onMovedBar(wxCommandEvent& event);
36 //--------------------------------------------------------------------------------------------------------------------------------
38 //--------------------------------------------------------------------------------------------------------------------------------
39 ContourVOIWidget *mcontourtool;
40 mBarRange *modBarRange;
44 //--------------------------------------------------------------------------------------------------------------------------------
45 //--------------------------------------------------------------------------------------------------------------------------------
46 //--------------------------------------------------------------------------------------------------------------------------------
48 class MARACASVISULIB_EXPORTS ContourVOIWidget : public wxPanel
51 ContourVOIWidget( wxWindow *parent, wxVtkBaseView *wxvtkbaseview , vtkImageData* imagedata);
55 wxVtkBaseView *GetWxVtkBaseView();
56 void GetVOI( int voi[6] );
62 vtkImageData *imagedata;
63 wxVtkBaseView *wxvtkbaseview;
65 manualRoiControler *_manRoiControl;
66 manualContourModel *_mContourModel;
67 manualViewRoi *_mViewRoi;
71 #endif // __ContourVOIWidget_h_INCLUDED_H__