]> 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 4b56e7b2f400f39a3763f855be843f68c63fe019..75660640030e122cc90549e1aa2748fad5948c9c 100644 (file)
@@ -44,6 +44,20 @@ void interfNewContourMenu::initButtons(wxEvtHandler* evtHandler) {
        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); 
@@ -86,3 +100,15 @@ 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 ---------------------
+