2 #ifndef __ContourVOIWidget_h_INCLUDED_H__
3 #define __ContourVOIWidget_h_INCLUDED_H__
6 #include "manualContourModelRoi.h"
7 #include "manualRoiControler.h"
8 #include "manualViewRoi.h"
9 #include "wxVtkBaseView.h"
10 #include "wxVtk2DBaseView.h"
11 #include "mBarRange.h"
14 #include "vtkImageMapToColors.h"
15 #include "vtkImageActor.h"
20 class ContourVOIWidget;
21 //------------------------------------------------------------------------------------------------------------------------------------
22 // Event handling auxiliar class
23 //------------------------------------------------------------------------------------------------------------------------------------
24 class wxWidgetSliderMinMaxVOI : wxEvtHandler
27 //--------------------------------------------------------------------------------------------------------------------------------
28 // Constructors ans destructors
29 //--------------------------------------------------------------------------------------------------------------------------------
30 wxWidgetSliderMinMaxVOI(ContourVOIWidget *contourtool,mBarRange * modelBarRange);
31 ~wxWidgetSliderMinMaxVOI();
33 //--------------------------------------------------------------------------------------------------------------------------------
34 // Min-Max Barrange received events
35 //--------------------------------------------------------------------------------------------------------------------------------
36 void onBarrange(wxCommandEvent& event);
37 void onActualChange_Bar(wxCommandEvent& event);
38 void onStartChange_Bar(wxCommandEvent& event);
39 void onEndChange_Bar(wxCommandEvent& event);
40 void onSelectionEnd(wxCommandEvent& event);
41 void onMovedBar(wxCommandEvent& event);
44 //--------------------------------------------------------------------------------------------------------------------------------
46 //--------------------------------------------------------------------------------------------------------------------------------
47 ContourVOIWidget *mcontourtool;
48 mBarRange *modBarRange;
52 //--------------------------------------------------------------------------------------------------------------------------------
53 //--------------------------------------------------------------------------------------------------------------------------------
54 //--------------------------------------------------------------------------------------------------------------------------------
56 class creaMaracasVisu_EXPORT ContourVOIWidget : public wxPanel
59 ContourVOIWidget( wxWindow *parent, wxVtkBaseView *wxvtkbaseview , vtkImageData* imagedata);
63 wxVtkBaseView *GetWxVtkBaseView();
64 void GetVOI( int voi[6] );
70 vtkImageData *imagedata;
71 wxVtkBaseView *wxvtkbaseview;
73 manualRoiControler *_manRoiControl;
74 manualContourModel *_mContourModel;
75 manualViewRoi *_mViewRoi;
79 #endif // __ContourVOIWidget_h_INCLUDED_H__