From: tbaudier Date: Mon, 8 Feb 2016 10:47:44 +0000 (+0100) Subject: Ensure compatibility with VTK6 X-Git-Tag: v1.4.0~69 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5e1d24efaf9887c6e13518c3ab6aea233db14869;p=clitk.git Ensure compatibility with VTK6 --- 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 }