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