]> Creatis software - creaContours.git/blob - lib/Interface_Icons_NDimensions/interfSegmentationPanels.h
Version with out wxEventHandler
[creaContours.git] / lib / Interface_Icons_NDimensions / interfSegmentationPanels.h
1 #ifndef __interfSegmentationPanelsH__
2 #define __interfSegmentationPanelsH__
3
4 #include <wx/wx.h>
5 #include "mBarRange.h"
6
7
8 class interfSegmentationPanelVTK 
9         : public wxPanel
10 {
11 public:
12         interfSegmentationPanelVTK(wxWindow * parent);          
13         ~interfSegmentationPanelVTK();
14
15         /**
16         **      Responds to the events of the buttons, when the same panel is responsible for it. It gets the name
17         **      of the button corresponding to the method that has to be executed,
18         **      it uses attribute eventHandler to call the methods define by the application.
19         **      see setEventHandler(wxEventHandler*)
20         **/
21         
22         void  onSegmentationPressed(wxCommandEvent& event);
23
24         void  onSegmentationPressedITK(wxCommandEvent& event);
25
26         void  onSnakePressed(wxCommandEvent& event);
27
28         void setLabel(wxString tmpString);
29
30 private:
31
32         //wxContourEventHandler* contourevent;
33         wxPanel* configPanel;
34         wxWindow* infoWin;
35         wxPanel* segmentPanel;
36         wxPanel* spreadPanel;
37         wxPanel* segmentPanelITK;
38         bool axisshown;
39
40         void hideAxis();
41
42         wxPanel* getSegmentationPanel(wxWindow* parent);
43
44         void onSegmentationOneSlice( wxCommandEvent& event );
45
46         void onSegmentationAllSlice( wxCommandEvent& event );
47
48         wxSlider* _isovalue;
49
50         mBarRange* _mbarrange;
51         
52         wxSlider* _sampling;
53
54         wxStaticText* _staticTextSegmentation;
55
56         wxRadioBox* methodRadiobox;
57 };
58
59 class interfSegmentationPanelITK
60         : public wxPanel
61 {
62 public:
63         interfSegmentationPanelITK(wxWindow * parent);          
64         ~interfSegmentationPanelITK();
65
66         
67 private:
68
69         wxSlider* _isovalue;
70
71         mBarRange* _mbarrange;
72         
73         wxSlider* _sampling;
74
75         wxStaticText* _staticTextSegmentation;
76
77         wxRadioBox* methodRadiobox;
78 };
79
80 #endif
81  
82