void VolumeRenderer::bbUserSetDefaultValues()
{
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
mRayCastFunction = NULL;
+#else
+ //
+#endif
mMapper = NULL;
mVolume = NULL;
bbSetInputColorFunction(0);
// mMIP = vtkVolumeRayCastMIPFunction::New();
// mMIP->SetMaximizeMethodToScalarValue();
+//EED 2018-07-20 Migration VTK8
+#if (VTK_MAJOR_VERSION <= 7)
mRayCastFunction = vtkVolumeRayCastCompositeFunction::New();
mMapper = vtkVolumeRayCastMapper::New();
mMapper->SetVolumeRayCastFunction(mRayCastFunction);
mMapper->AutoAdjustSampleDistancesOn();
-
+#else
+ mMapper = vtkFixedPointVolumeRayCastMapper::New();
+#endif
+
_volumeProperty = vtkVolumeProperty::New();
_volumeProperty->SetInterpolationTypeToLinear();
_volumeProperty->ShadeOn();
//---------------------------------------------------------------------
void VolumeRenderer::bbUserFinalizeProcessing()
{
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
if (mRayCastFunction!=NULL)
{
mRayCastFunction->Delete();
mRayCastFunction=NULL;
}
+#else
+ //
+#endif
if (mMapper!=NULL)
{
mMapper->Delete();
bool changed = false;
if ( bbGetInputStatus("In") != bbtk::UPTODATE )
{
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
mMapper->SetInput( bbGetInputIn() );
+#else
+ mMapper->SetInputData( bbGetInputIn() );
+#endif
changed = true;
}