]> Creatis software - clitk.git/blobdiff - vv/vvLandmarks.cxx
add include
[clitk.git] / vv / vvLandmarks.cxx
index 0b5f98a264886c6b11bad1e6a0a488d1557511cd..fed697ebc2a218943ac125b4676e15ac1f3afd70 100644 (file)
@@ -143,6 +143,17 @@ void vvLandmarks::RemoveLandmark(int index)
 }
 //--------------------------------------------------------------------
 
+//--------------------------------------------------------------------
+void vvLandmarks::RemoveAll()
+{
+  for (unsigned int i = 0; i < mLandmarks.size(); i++) {
+    mLandmarks[i].clear();
+    mPoints[i]->SetNumberOfPoints(0);
+    mLabels[i]->SetNumberOfValues(0);
+    mIds[i]->SetNumberOfValues(0);
+  }
+}
+//--------------------------------------------------------------------
 
 //--------------------------------------------------------------------
 void vvLandmarks::ChangeComments(int index, std::string comments)