From 5e1d24efaf9887c6e13518c3ab6aea233db14869 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Mon, 8 Feb 2016 11:47:44 +0100 Subject: [PATCH] Ensure compatibility with VTK6 --- itk/itkVTKImageToImageFilter.txx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/itk/itkVTKImageToImageFilter.txx b/itk/itkVTKImageToImageFilter.txx index 27a6595..5fddba2 100644 --- a/itk/itkVTKImageToImageFilter.txx +++ b/itk/itkVTKImageToImageFilter.txx @@ -77,7 +77,11 @@ void VTKImageToImageFilter ::SetInput( vtkImageData * inputImage ) { +#if VTK_MAJOR_VERSION <= 5 m_Exporter->SetInput( inputImage ); +#else + m_Exporter->SetInputData( inputImage ); +#endif } -- 2.47.1