00001 00002 #ifndef __ContourVOIWidget_h_INCLUDED_H__ 00003 #define __ContourVOIWidget_h_INCLUDED_H__ 00004 00005 00006 #include "manualContourModelRoi.h" 00007 #include "manualRoiControler.h" 00008 #include "manualViewRoi.h" 00009 #include "wxVtkBaseView.h" 00010 #include "wxVtk2DBaseView.h" 00011 #include "mBarRange.h" 00012 #include "marTypes.h" 00013 00014 #include "vtkImageMapToColors.h" 00015 #include "vtkImageActor.h" 00016 00017 00018 00019 00020 class ContourVOIWidget; 00021 //------------------------------------------------------------------------------------------------------------------------------------ 00022 // Event handling auxiliar class 00023 //------------------------------------------------------------------------------------------------------------------------------------ 00024 class wxWidgetSliderMinMaxVOI : wxEvtHandler 00025 { 00026 public: 00027 //-------------------------------------------------------------------------------------------------------------------------------- 00028 // Constructors ans destructors 00029 //-------------------------------------------------------------------------------------------------------------------------------- 00030 wxWidgetSliderMinMaxVOI(ContourVOIWidget *contourtool,mBarRange * modelBarRange); 00031 ~wxWidgetSliderMinMaxVOI(); 00032 00033 //-------------------------------------------------------------------------------------------------------------------------------- 00034 // Min-Max Barrange received events 00035 //-------------------------------------------------------------------------------------------------------------------------------- 00036 void onBarrange(wxCommandEvent& event); 00037 void onActualChange_Bar(wxCommandEvent& event); 00038 void onStartChange_Bar(wxCommandEvent& event); 00039 void onEndChange_Bar(wxCommandEvent& event); 00040 void onSelectionEnd(wxCommandEvent& event); 00041 void onMovedBar(wxCommandEvent& event); 00042 00043 private: 00044 //-------------------------------------------------------------------------------------------------------------------------------- 00045 // Attributes 00046 //-------------------------------------------------------------------------------------------------------------------------------- 00047 ContourVOIWidget *mcontourtool; 00048 mBarRange *modBarRange; 00049 }; 00050 00051 00052 //-------------------------------------------------------------------------------------------------------------------------------- 00053 //-------------------------------------------------------------------------------------------------------------------------------- 00054 //-------------------------------------------------------------------------------------------------------------------------------- 00055 00056 class creaMaracasVisu_EXPORT ContourVOIWidget : public wxPanel 00057 { 00058 public: 00059 ContourVOIWidget( wxWindow *parent, wxVtkBaseView *wxvtkbaseview , vtkImageData* imagedata); 00060 ~ContourVOIWidget(); 00061 void ConfigureVTK(); 00062 00063 wxVtkBaseView *GetWxVtkBaseView(); 00064 void GetVOI( int voi[6] ); 00065 00066 00067 private: 00068 mBarRange *mbarrange; 00069 00070 vtkImageData *imagedata; 00071 wxVtkBaseView *wxvtkbaseview; 00072 00073 manualRoiControler *_manRoiControl; 00074 manualContourModel *_mContourModel; 00075 manualViewRoi *_mViewRoi; 00076 00077 }; 00078 00079 #endif // __ContourVOIWidget_h_INCLUDED_H__ 00080