// imagedata->GetExtent(x1,x2,y1,y2,z1,z2);
// _volumePlanes->SetBounds(x1,x2,y1,y2,z1,z2);
+ // EED 13/03/2011
+
_compositeFunction = vtkVolumeRayCastCompositeFunction::New();
+ vtkVolumeRayCastMIPFunction* _compositeFunctionMIP = vtkVolumeRayCastMIPFunction::New();
+
_volumeMapper = vtkVolumeRayCastMapper::New();
_volumeMapper->SetInput( this->GetVtkMPRBaseData()->GetImageData() );
+
_volumeMapper->SetVolumeRayCastFunction(_compositeFunction);
+// _volumeMapper->SetVolumeRayCastFunction(_compositeFunctionMIP);
+
_volumeMapper->SetClippingPlanes( _volumePlanes );
_volumeMapper->AutoAdjustSampleDistancesOn();
- _volumeProperty = vtkVolumeProperty::New();
+ _volumeProperty = vtkVolumeProperty::New();
_volumeProperty->SetColor(_ctfun);
_volumeProperty->SetScalarOpacity( _tfun );
+
// EED 31/03/2008
+
+ _volumeProperty->DisableGradientOpacityOn();
+
_volumeProperty->SetInterpolationTypeToLinear();
+// _volumeProperty->SetInterpolationTypeToNearest();
+
_volumeProperty->ShadeOn();
- _volumeProperty->DisableGradientOpacityOn();
-
+// _volumeProperty->ShadeOff();
+
+
// _volumeProperty->SetInterpolationTypeToNearest();
// _volumeProperty->ShadeOff();
// _volumeProperty->SetAmbient(0.3);