]> Creatis software - clitk.git/blobdiff - vv/vvSlicer.cxx
Modify Nearest Neighbor interpolation
[clitk.git] / vv / vvSlicer.cxx
index 4c5fcfb44f6fbc08f336ea85a83f904d26f69327..06a59512a1ee5e4ecd81f24bfaa375bc8a5a4e09 100644 (file)
@@ -57,6 +57,7 @@
 #include <vtkLight.h>
 #include <vtkLightCollection.h>
 #include <vtkScalarBarActor.h>
+#include <vtkImageProperty.h>
 #include <vtkLookupTable.h>
 
 #include <vtkRenderer.h>
@@ -322,6 +323,13 @@ double* vvSlicer::GetCurrentPosition()
 }
 //------------------------------------------------------------------------------
 
+//------------------------------------------------------------------------------
+void vvSlicer::SetInterpolationImageReslice(int interpolation)
+{ 
+  mImageReslice->SetInterpolationMode(interpolation);
+}
+//------------------------------------------------------------------------------
+
 //------------------------------------------------------------------------------
 void vvSlicer::SetCurrentPosition(double x, double y, double z, int t)
 {