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);
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();
}