]> Creatis software - creaContours.git/blob - lib/Interface_Icons_NDimensions/interfSegmentationMenu.h
a01a9098df1140b3147b7f1a2dfd2e7ddd54f2f5
[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 private:
32
33         //wxContourEventHandler* contourevent;
34         wxPanel* configPanel;
35         wxWindow* infoWin;
36         
37         wxPanel* spreadPanel;
38         wxPanel* segmentPanelITK;
39         bool axisshown;
40
41         wxPanel* getSegmentationPanel(wxWindow* parent);
42
43         void onSegmentationOneSlice( wxCommandEvent& event );
44
45         void onSegmentationAllSlice( wxCommandEvent& event );
46
47         
48         
49 };
50
51 #endif
52  
53