]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ModelShowNPoints.cxx
#3544 Mesh Application - Smooth - Refresh contours bug
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ModelShowNPoints.cxx
index 41cb959f1b812edf5d0867c54ab65b241283886f..ee247b6819bd6d602baa9b9fc884f30d0d5adc89 100644 (file)
@@ -381,6 +381,7 @@ int ModelShowNPoints::IdInsidePoint()
                return id;
        } // if
 }
+
 //------------------------------------------------------------------------
 void ModelShowNPoints::SetPointById(int id, std::vector<double> point)
 {
@@ -393,6 +394,23 @@ void ModelShowNPoints::SetPointById(int id, std::vector<double> point)
                printf("WidgetShowNPoints::SetPointById  Invalid pointid, id is outside range\n");
        }
 }
+
+std::vector<double> ModelShowNPoints::GetPointById( int id )
+{
+    std::vector<double> point;
+    if(id >= 0 && id < lstPointsX.size())
+    {
+        point.push_back ( lstPointsX[id] );
+        point.push_back ( lstPointsY[id] );
+        point.push_back ( lstPointsZ[id] );
+    }
+    else{
+        printf("WidgetShowNPoints::GetPointById  Invalid pointid, id is outside range\n");
+    }
+    return point;
+}
+
+
 //------------------------------------------------------------------------     
 int ModelShowNPoints::RenamePoint(std::string label)
 {