X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FInterface_Icons_NDimensions%2FinterfSegmentationMenu.cxx;h=8ec2fa73f27784b86d1e244ca4a9994f3de1383b;hb=3ede91ddd835ef6f6eaf9e72956be7c6ebd69ad4;hp=5491252cd4f44e7c1d6f58cbe269d20e94fb78c1;hpb=b935f54c82b090852001860eb12f5433779c22c4;p=creaContours.git diff --git a/lib/Interface_Icons_NDimensions/interfSegmentationMenu.cxx b/lib/Interface_Icons_NDimensions/interfSegmentationMenu.cxx index 5491252..8ec2fa7 100644 --- a/lib/Interface_Icons_NDimensions/interfSegmentationMenu.cxx +++ b/lib/Interface_Icons_NDimensions/interfSegmentationMenu.cxx @@ -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(); + +} + //------------------------------------------------------------------------------------------------------------