X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FInterface_Icons_NDimensions%2FinterfSegmentationMenu.cxx;h=8ec2fa73f27784b86d1e244ca4a9994f3de1383b;hb=29d20b730ae0aaabfb6328f36aaec34cb22cc56e;hp=545db77fce00c34d161d0f0dca816ba66f645784;hpb=6e3c929c883c405e0075fa8df10b12a935979367;p=creaContours.git diff --git a/lib/Interface_Icons_NDimensions/interfSegmentationMenu.cxx b/lib/Interface_Icons_NDimensions/interfSegmentationMenu.cxx index 545db77..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); @@ -69,7 +77,19 @@ void interfSegmentationMenu::onSegmentationPressedITK(wxCommandEvent& event){ void interfSegmentationMenu::onSnakePressed(wxCommandEvent& event){ - //contourevent->onSnakePressed(this); + interfMainPanel::getInstance()->onSnakePressed(); + +} + +void interfSegmentationMenu::onMirrorPressed(wxCommandEvent& event){ + + interfMainPanel::getInstance()->onMirrorPressed(); + +} + +void interfSegmentationMenu::onThreshold(wxCommandEvent& event){ + + interfMainPanel::getInstance()->onThresholdPressed(); }