]> Creatis software - clitk.git/commitdiff
Ensure compatibility with VTK6
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Mon, 8 Feb 2016 10:47:44 +0000 (11:47 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Mon, 8 Feb 2016 10:47:44 +0000 (11:47 +0100)
itk/itkVTKImageToImageFilter.txx

index 27a6595385a3fc2ef2daf2b8d36b318c0edc07e9..5fddba28f6d49f17db81cd18ae91f8435a234e88 100644 (file)
@@ -77,7 +77,11 @@ void
 VTKImageToImageFilter<TOutputImage>
 ::SetInput( vtkImageData * inputImage )
 {
+#if VTK_MAJOR_VERSION <= 5
   m_Exporter->SetInput( inputImage );
+#else
+  m_Exporter->SetInputData( inputImage );
+#endif
 }