1 #ifndef __interfSegmentationMenuH__
2 #define __interfSegmentationMenuH__
7 #include "interfMenuBar.h"
9 class interfSegmentationMenu
10 : public interfMenuBar
13 interfSegmentationMenu(wxWindow * parent, int sizex, int sizey,wxEvtHandler* evtHandler, std::string datdir = "data/Icons");
14 ~interfSegmentationMenu();
16 virtual void initButtons(wxEvtHandler* evtHandler) ;
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*)
25 void onSegmentationPressed(wxCommandEvent& event);
27 void onSegmentationPressedITK(wxCommandEvent& event);
29 void onSnakePressed(wxCommandEvent& event);
31 void onMirrorPressed(wxCommandEvent& event);
33 void onThreshold(wxCommandEvent& event);
37 //wxContourEventHandler* contourevent;
42 wxPanel* segmentPanelITK;
45 wxPanel* getSegmentationPanel(wxWindow* parent);
47 void onSegmentationOneSlice( wxCommandEvent& event );
49 void onSegmentationAllSlice( wxCommandEvent& event );