From fa62829e9a53b389933687e6baea92c0a0dafa1b Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Thu, 17 Mar 2011 15:48:29 +0000 Subject: [PATCH] no message --- .../widgets/vtkClipping3DDataViewer.cxx | 20 ++++++++++++++++--- .../widgets/vtkClipping3DDataViewer.h | 2 +- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkClipping3DDataViewer.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkClipping3DDataViewer.cxx index 9eb6ba5..a0b370e 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkClipping3DDataViewer.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkClipping3DDataViewer.cxx @@ -292,22 +292,36 @@ void vtkClipping3DDataViewer::Configure_Volume() // 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); diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkClipping3DDataViewer.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkClipping3DDataViewer.h index 8a54048..e520ddf 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkClipping3DDataViewer.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkClipping3DDataViewer.h @@ -18,7 +18,7 @@ #include "vtkActor.h" #include "vtkOutlineFilter.h" - +#include "vtkVolumeRayCastMIPFunction.h" class vtkClipping3DDataViewer { public: -- 2.46.1