From: Eduardo Davila Date: Thu, 9 Jun 2011 10:14:45 +0000 (+0000) Subject: no message X-Git-Tag: v1.0.4~99 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=47342e3175606339f367c83b004d740fbcb63e32;p=creaMaracasVisu.git no message --- diff --git a/lib/Kernel/VTKObjects/VolumeRenderer/volumerenderermanagerdata.cxx b/lib/Kernel/VTKObjects/VolumeRenderer/volumerenderermanagerdata.cxx index 70862f2..74dd505 100644 --- a/lib/Kernel/VTKObjects/VolumeRenderer/volumerenderermanagerdata.cxx +++ b/lib/Kernel/VTKObjects/VolumeRenderer/volumerenderermanagerdata.cxx @@ -86,7 +86,7 @@ void VolumeRendererManagerData::Initialize(vtkImageData* vol, std::string datana vtkVolumeMapper *volMapperTmp; if(usegpu && _vol->GetDataDimension() > 2){ - #if (VTK_MAYOR_VERSION>=6 && VTK_MINOR_VERSION>=6) + #if (VTK_MAYOR_VERSION>=5 && VTK_MINOR_VERSION>=6) _volumeMappergpu = vtkGPUVolumeRayCastMapper::New(); _volumeMappergpu->AutoAdjustSampleDistancesOn(); volMapperTmp = _volumeMappergpu; diff --git a/lib/Kernel/VTKObjects/VolumeRenderer/volumerenderermanagerdata.h b/lib/Kernel/VTKObjects/VolumeRenderer/volumerenderermanagerdata.h index b65de91..87b1b74 100644 --- a/lib/Kernel/VTKObjects/VolumeRenderer/volumerenderermanagerdata.h +++ b/lib/Kernel/VTKObjects/VolumeRenderer/volumerenderermanagerdata.h @@ -19,7 +19,7 @@ #include #include -#if (VTK_MAYOR_VERSION>=6 && VTK_MINOR_VERSION>=6) +#if (VTK_MAYOR_VERSION>=5 && VTK_MINOR_VERSION>=6) #include #endif @@ -153,7 +153,7 @@ private: vtkVolumeRayCastMapper *_volumeMapper; -#if (VTK_MAYOR_VERSION>=6 && VTK_MINOR_VERSION>=6) +#if (VTK_MAYOR_VERSION>=5 && VTK_MINOR_VERSION>=6) vtkGPUVolumeRayCastMapper *_volumeMappergpu; #else vtkVolumeRayCastMapper *_volumeMappergpu;