]> Creatis software - creaContours.git/blob - lib/Interface_Icons_NDimensions/interfSegmentationMenu.h
b8a334ae45afa99e1dc0f6240d7470fe9b75faa4
[creaContours.git] / lib / Interface_Icons_NDimensions / interfSegmentationMenu.h
1 #ifndef __interfSegmentationMenuH__
2 #define __interfSegmentationMenuH__
3
4 #include <wx/wx.h>
5
6
7 #include "interfMenuBar.h"
8
9 class interfSegmentationMenu 
10         : public interfMenuBar
11 {
12 public:
13         interfSegmentationMenu(wxWindow * parent, int sizex, int sizey,wxEvtHandler* evtHandler, std::string datdir = "data/Icons");            
14         ~interfSegmentationMenu();
15
16     virtual void initButtons(wxEvtHandler* evtHandler) ;
17
18         /**
19         **      Responds to the events of the buttons, when the same panel is responsible for it. It gets the name
20         **      of the button corresponding to the method that has to be executed,
21         **      it uses attribute eventHandler to call the methods define by the application.
22         **      see setEventHandler(wxEventHandler*)
23         **/
24         
25         void  onSegmentationPressed(wxCommandEvent& event);
26
27         void  onSegmentationPressedITK(wxCommandEvent& event);
28
29         void  onSnakePressed(wxCommandEvent& event);
30
31         void onMirrorPressed(wxCommandEvent& event);
32
33         void onThreshold(wxCommandEvent& event);
34
35 private:
36
37         //wxContourEventHandler* contourevent;
38         wxPanel* configPanel;
39         wxWindow* infoWin;
40         
41         wxPanel* spreadPanel;
42         wxPanel* segmentPanelITK;
43         bool axisshown;
44
45         wxPanel* getSegmentationPanel(wxWindow* parent);
46
47         void onSegmentationOneSlice( wxCommandEvent& event );
48
49         void onSegmentationAllSlice( wxCommandEvent& event );
50
51         
52         
53 };
54
55 #endif
56  
57