]> Creatis software - creaContours.git/blobdiff - lib/Interface_Icons_NDimensions/interfSegmentationMenu.cxx
*** empty log message ***
[creaContours.git] / lib / Interface_Icons_NDimensions / interfSegmentationMenu.cxx
index 5491252cd4f44e7c1d6f58cbe269d20e94fb78c1..8ec2fa73f27784b86d1e244ca4a9994f3de1383b 100644 (file)
@@ -33,6 +33,14 @@ void interfSegmentationMenu::initButtons(wxEvtHandler* evtHandler) {
        nom.push_back("Find shapes using border snake interaction");
        funct.push_back((wxObjectEventFunction) &interfSegmentationMenu:: onSnakePressed);
 
+       path.push_back(datadir + "/Mirror.png");
+       nom.push_back("Create an Axis and select a contour to mirror it accordingly");
+       funct.push_back((wxObjectEventFunction) &interfSegmentationMenu:: onMirrorPressed);
+
+       path.push_back(datadir + "/Threshold.png");
+       nom.push_back("Superpose a 'Red Image' to the selected Image Threshold");
+       funct.push_back((wxObjectEventFunction)&interfSegmentationMenu::onThreshold);
+
        this->addButtons(path, nom);    
        this->setVectorFunction(funct);
 
@@ -73,5 +81,17 @@ void  interfSegmentationMenu::onSnakePressed(wxCommandEvent& event){
 
 }
 
+void interfSegmentationMenu::onMirrorPressed(wxCommandEvent& event){
+
+  interfMainPanel::getInstance()->onMirrorPressed();
+
+}
+
+void interfSegmentationMenu::onThreshold(wxCommandEvent& event){
+       
+       interfMainPanel::getInstance()->onThresholdPressed();
+
+}
+
 //------------------------------------------------------------------------------------------------------------