]> Creatis software - creaContours.git/blob - lib/Interface_Icons_NDimensions/interfSegmentationPanels.h
ad0055a37d645f403b6d2417b326abee68444f07
[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 setLabel(wxString tmpString);
27
28 private:
29
30         //wxContourEventHandler* contourevent;
31         wxPanel* configPanel;
32         wxWindow* infoWin;
33         wxPanel* segmentPanel;
34         wxPanel* spreadPanel;
35         wxPanel* segmentPanelITK;
36         bool axisshown;
37
38         void hideAxis();
39
40         wxPanel* getSegmentationPanel(wxWindow* parent);
41
42         void onSegmentationOneSlice( wxCommandEvent& event );
43
44         void onSegmentationAllSlice( wxCommandEvent& event );
45
46         wxSlider* _isovalue;
47
48         mBarRange* _mbarrange;
49         
50         wxSlider* _sampling;
51
52         wxStaticText* _staticTextSegmentation;
53
54         wxRadioBox* methodRadiobox;
55 };
56
57 class interfSegmentationPanelITK
58         : public wxPanel
59 {
60 public:
61         interfSegmentationPanelITK(wxWindow * parent);          
62         ~interfSegmentationPanelITK();
63
64
65         void onSegmentationOneSlice( wxCommandEvent& event );
66
67         void onSegmentationAllSlice( wxCommandEvent& event );
68         
69 private:
70
71         wxTextCtrl * _distance;
72         wxTextCtrl * _sigma;
73         wxTextCtrl * _alfa;
74         wxTextCtrl * _beta;
75         wxTextCtrl * _propagation;
76         wxTextCtrl * _iterations;
77         wxTextCtrl * _infStrength;
78 };
79
80
81 class interfMirrorPanel
82         : public wxPanel
83 {
84 public:
85         interfMirrorPanel(wxWindow * parent);           
86         ~interfMirrorPanel();
87
88 private:
89
90         wxSlider* _thickness;
91
92         bool _axisStatus;
93
94         void onAxisShow(wxCommandEvent& event);
95
96         void onMirrorGo(wxCommandEvent& event);
97
98         void onChangeWidth(wxScrollEvent& event);
99
100         DECLARE_EVENT_TABLE()
101 };
102
103
104 #endif
105  
106