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