]> Creatis software - creaContours.git/blob - lib/Interface_Icons_NDimensions/interfSegmentationMenu.h
no newline at eof
[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         wxPanel* segmentPanel;
37         wxPanel* spreadPanel;
38         wxPanel* segmentPanelITK;
39         bool axisshown;
40
41         void hideAxis();
42         
43 };
44
45 #endif
46  
47