X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FInterface_Icons_NDimensions%2FinterfNewContourMenu.cxx;h=75660640030e122cc90549e1aa2748fad5948c9c;hb=9cfc8937ca83d9bd9937ddb0275294f98fcf453d;hp=db374f0f6a347fbe10cc9f3b8d64b43620812979;hpb=6e3c929c883c405e0075fa8df10b12a935979367;p=creaContours.git diff --git a/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx b/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx index db374f0..7566064 100644 --- a/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx +++ b/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx @@ -39,6 +39,25 @@ void interfNewContourMenu::initButtons(wxEvtHandler* evtHandler) { funct.push_back((wxObjectEventFunction) &interfNewContourMenu::onCreateContourBullseye); hand.push_back(this); + path.push_back(datadir + "/Line.png"); + nom.push_back("Create a Line"); + funct.push_back((wxObjectEventFunction) &interfNewContourMenu::onCreateContourLine); + hand.push_back(this); + + // 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); @@ -77,4 +96,19 @@ void interfNewContourMenu::onCreateContourRectangle( wxCommandEvent& event ){ void interfNewContourMenu::onCreateContourCircle( wxCommandEvent& event ){ interfMainPanel::getInstance()->onCreateContourCircle(); } +void interfNewContourMenu::onCreateContourLine( wxCommandEvent& event ){ + interfMainPanel::getInstance()->onCreateContourLine(); +} + +// RaC 09-09 --------------------- +void interfNewContourMenu::onCreateContourPoints( wxCommandEvent& event ){ + interfMainPanel::getInstance()->onCreateContourPoints(); +} +// RaC 09-09 --------------------- + +// RaC 10-09 --------------------- +void interfNewContourMenu::onCreateContourPolygon( wxCommandEvent& event ){ + interfMainPanel::getInstance()->onCreateContourPolygon(); +} +// RaC 10-09 ---------------------