]> Creatis software - clitk.git/commitdiff
Missing test on VTK version for vtkMapper
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 3 Jul 2012 07:27:14 +0000 (09:27 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 3 Jul 2012 07:27:14 +0000 (09:27 +0200)
vv/vvSlicer.cxx

index a3712a0975865921e194e0c13c3bc8a4b764a29f..1e133d6f863cfd8dcad8ec52fa6c02a01cbe8296 100644 (file)
@@ -66,7 +66,9 @@
 #include <vtkAssignAttribute.h>
 #include <vtkImageAccumulate.h>
 #include <vtkImageReslice.h>
-#include <vtkImageMapper3D.h>
+#if VTK_MAJOR_VERSION >= 6 || (VTK_MAJOR_VERSION >= 5 && VTK_MINOR_VERSION >= 10)
+#  include <vtkImageMapper3D.h>
+#endif
 
 vtkCxxRevisionMacro(vvSlicer, "DummyRevision");
 vtkStandardNewMacro(vvSlicer);