X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FInterface_Icons_NDimensions%2FinterfNewContourMenu.cxx;h=75660640030e122cc90549e1aa2748fad5948c9c;hb=eadfc36256b2a77d2c3073d9249ce3020c2f554b;hp=697ed9823649578540fafbef8efcf6fb94cfe103;hpb=b759327567c5102f13a565e54f8c8663c2458816;p=creaContours.git diff --git a/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx b/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx index 697ed98..7566064 100644 --- a/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx +++ b/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx @@ -44,11 +44,20 @@ void interfNewContourMenu::initButtons(wxEvtHandler* evtHandler) { funct.push_back((wxObjectEventFunction) &interfNewContourMenu::onCreateContourLine); hand.push_back(this); - path.push_back(datadir + "/Line.png"); + // RaC 09-09 --------------------- + path.push_back(datadir + "/Points.png"); nom.push_back("Create Points"); funct.push_back((wxObjectEventFunction) &interfNewContourMenu::onCreateContourPoints); 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); @@ -91,6 +100,15 @@ void interfNewContourMenu::onCreateContourLine( wxCommandEvent& event ){ interfMainPanel::getInstance()->onCreateContourLine(); } +// RaC 09-09 --------------------- void interfNewContourMenu::onCreateContourPoints( wxCommandEvent& event ){ - interfMainPanel::getInstance()->onCreateContourLine(); + interfMainPanel::getInstance()->onCreateContourPoints(); +} +// RaC 09-09 --------------------- + +// RaC 10-09 --------------------- +void interfNewContourMenu::onCreateContourPolygon( wxCommandEvent& event ){ + interfMainPanel::getInstance()->onCreateContourPolygon(); } +// RaC 10-09 --------------------- +