]> Creatis software - clitk.git/blobdiff - vv/vvLandmarks.cxx
Add the profile display and the saving a text file
[clitk.git] / vv / vvLandmarks.cxx
index fed697ebc2a218943ac125b4676e15ac1f3afd70..d0f2c916daa2fcc6224f248740e26e3436631cfb 100644 (file)
@@ -23,6 +23,7 @@
 #include <string>
 #include <locale.h>
 
+#include <vtkVersion.h>
 #include "vtkPolyData.h"
 #include "vtkPoints.h"
 #include "vtkFloatArray.h"
@@ -451,7 +452,11 @@ void vvLandmarks::SetTime(int time)
     mPolyData->GetPointData()->SetScalars(mIds[time]);
     mPolyData->GetPointData()->AddArray(mLabels[time]);
     mPolyData->Modified();
+#if VTK_MAJOR_VERSION <= 5
     mPolyData->Update();
+#else
+    //mPolyData->Update();
+#endif
     mTime = time;
   }
 }