VolumeMapper = 0;
-#if VTK_MAJOR_VERSION >= 5
- #if VTK_MINOR_VERSION >= 6
- vtkGPUVolumeRayCastMapper * volumeMappergpu = vtkGPUVolumeRayCastMapper::New();
-// vtkSmartVolumeMapper * volumeMappergpu = vtkSmartVolumeMapper::New();
-
+#if ( VTK_MAJOR_VERSION >= 5 && VTK_MINOR_VERSION >= 8 )
+
+//EED 10/Nov/2011 vtkGPUVolumeRayCastMapper * volumeMappergpu = vtkGPUVolumeRayCastMapper::New();
+ vtkSmartVolumeMapper * volumeMappergpu = vtkSmartVolumeMapper::New();
+
volumeMappergpu->AutoAdjustSampleDistancesOn();
VolumeMapper = volumeMappergpu;
- #endif
#else
-
- _volumeProperty->SetColor(_ctfun);
-
-
- _compositeFunction = vtkVolumeRayCastCompositeFunction::New();
- _MIPFunction = vtkVolumeRayCastMIPFunction::New();
- vtkVolumeRayCastMapper* volumeMapper = vtkVolumeRayCastMapper::New();
- volumeMapper->SetVolumeRayCastFunction(_compositeFunction);
- volumeMapper->AutoAdjustSampleDistancesOn();
- VolumeMapper = volumeMapper;
+ _volumeProperty->SetColor(_ctfun);
+ _compositeFunction = vtkVolumeRayCastCompositeFunction::New();
+ _MIPFunction = vtkVolumeRayCastMIPFunction::New();
+ vtkVolumeRayCastMapper* volumeMapper = vtkVolumeRayCastMapper::New();
+ volumeMapper->SetVolumeRayCastFunction(_compositeFunction);
+ volumeMapper->AutoAdjustSampleDistancesOn();
+ VolumeMapper = volumeMapper;
#endif