]> Creatis software - creaContours.git/blobdiff - lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx
RaC Changes that includes a Polygon contour in creaMaracasVisu and creaContours
[creaContours.git] / lib / Interface_Icons_NDimensions / interfNewContourMenu.cxx
index 257fe8ce33f19324cf08bb2b4c39693b42199eda..75660640030e122cc90549e1aa2748fad5948c9c 100644 (file)
@@ -43,12 +43,21 @@ void interfNewContourMenu::initButtons(wxEvtHandler* evtHandler) {
        nom.push_back("Create a Line");
        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); 
@@ -90,8 +99,16 @@ void interfNewContourMenu::onCreateContourCircle( wxCommandEvent& event ){
 void interfNewContourMenu::onCreateContourLine( wxCommandEvent& event ){
        interfMainPanel::getInstance()->onCreateContourLine();
 }
-/*
+
+// RaC 09-09 ---------------------
 void interfNewContourMenu::onCreateContourPoints( wxCommandEvent& event ){
-       interfMainPanel::getInstance()->onCreateContourLine();
+       interfMainPanel::getInstance()->onCreateContourPoints();
 }
-*/
\ No newline at end of file
+// RaC 09-09 ---------------------
+
+// RaC 10-09 ---------------------
+void interfNewContourMenu::onCreateContourPolygon( wxCommandEvent& event ){
+       interfMainPanel::getInstance()->onCreateContourPolygon();
+}
+// RaC 10-09 ---------------------
+