]> Creatis software - creaMaracasVisu.git/commitdiff
no message
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 17 Mar 2011 15:48:29 +0000 (15:48 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 17 Mar 2011 15:48:29 +0000 (15:48 +0000)
lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkClipping3DDataViewer.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkClipping3DDataViewer.h

index 9eb6ba5..a0b370e 100644 (file)
@@ -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);