]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/Contour/ContourVOIWidget.h
2cf11538f62a7d1e3bde955b14f3bfdc073b7c08
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / Contour / ContourVOIWidget.h
1
2 #ifndef __ContourVOIWidget_h_INCLUDED_H__
3 #define __ContourVOIWidget_h_INCLUDED_H__
4
5
6
7 #include <manualRoiControler.h>
8 #include <manualViewRoi.h>
9 #include "wxVtkBaseView.h"
10 #include "mBarRange.h"
11 #include "marTypes.h"
12   
13
14
15   class ContourVOIWidget;
16   //------------------------------------------------------------------------------------------------------------------------------------
17   // Event handling auxiliar class
18   //------------------------------------------------------------------------------------------------------------------------------------
19   class wxWidgetSliderMinMaxVOI : wxEvtHandler
20   {
21   public:
22           //--------------------------------------------------------------------------------------------------------------------------------
23           // Constructors ans destructors
24           //--------------------------------------------------------------------------------------------------------------------------------
25                 wxWidgetSliderMinMaxVOI(ContourVOIWidget *contourtool,mBarRange * modelBarRange);
26                 ~wxWidgetSliderMinMaxVOI();             
27
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);
37
38   private:
39           //--------------------------------------------------------------------------------------------------------------------------------
40           // Attributes
41           //--------------------------------------------------------------------------------------------------------------------------------
42           ContourVOIWidget      *mcontourtool;
43           mBarRange                     *modBarRange;
44   };
45
46
47 //--------------------------------------------------------------------------------------------------------------------------------
48 //--------------------------------------------------------------------------------------------------------------------------------
49 //--------------------------------------------------------------------------------------------------------------------------------
50
51   class creaMaracasVisu_EXPORT ContourVOIWidget : public wxPanel
52   {
53   public:
54         ContourVOIWidget( wxWindow *parent, wxVtkBaseView *wxvtkbaseview , vtkImageData* imagedata);
55     ~ContourVOIWidget();
56     void ConfigureVTK();
57
58         wxVtkBaseView *GetWxVtkBaseView();
59         void GetVOI( int voi[6] );
60
61
62   private:
63         mBarRange                               *mbarrange;
64
65         vtkImageData                    *imagedata;
66         wxVtkBaseView                   *wxvtkbaseview;
67
68         manualRoiControler              *_manRoiControl;
69         manualContourModel              *_mContourModel;
70         manualViewRoi                   *_mViewRoi;
71
72   };
73
74 #endif  // __ContourVOIWidget_h_INCLUDED_H__
75