]> 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 9eb6ba507ac463c59d0609a2bae61c06c317e69c..a0b370e34d733bfe3db855919bcc6ad38bb953ce 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);
index 8a54048f12789f0c81e7c438597ad5f2f6494764..e520ddfe7ea247b6260fe614809ce17892014630 100644 (file)
@@ -18,7 +18,7 @@
 #include "vtkActor.h"
 #include "vtkOutlineFilter.h"
 
-
+#include "vtkVolumeRayCastMIPFunction.h"
 
 class vtkClipping3DDataViewer {
 public: