X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FInterface_Icons_NDimensions%2FinterfNewContourMenu.cxx;h=75660640030e122cc90549e1aa2748fad5948c9c;hb=40033c782c0c68ecc676bb59de5c7fe9eb3cac44;hp=35cb02bfd61a3b774ecb2a6f11092817d5007383;hpb=0e1f4d7eb6ea17c3a9abd809801d699bf0fe0846;p=creaContours.git diff --git a/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx b/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx index 35cb02b..7566064 100644 --- a/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx +++ b/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx @@ -51,6 +51,13 @@ void interfNewContourMenu::initButtons(wxEvtHandler* evtHandler) { hand.push_back(this); // RaC 09-09 --------------------- + // RaC 10-09 --------------------- + path.push_back(datadir + "/Polygon.png"); + nom.push_back("Create Polygon"); + funct.push_back((wxObjectEventFunction) &interfNewContourMenu::onCreateContourPolygon); + hand.push_back(this); + // RaC 10-09 --------------------- + this->addButtons(path, nom); this->setVectorFunction(funct); @@ -99,3 +106,9 @@ void interfNewContourMenu::onCreateContourPoints( wxCommandEvent& event ){ } // RaC 09-09 --------------------- +// RaC 10-09 --------------------- +void interfNewContourMenu::onCreateContourPolygon( wxCommandEvent& event ){ + interfMainPanel::getInstance()->onCreateContourPolygon(); +} +// RaC 10-09 --------------------- +