]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkClipping3DDataViewer.cxx
Bug #1373
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / vtkClipping3DDataViewer.cxx
index d2524bed7c192c2cbb5c9b92c9591903ef09899c..901a7d7d4c6bb1f5aaa518917c3ef17d57b3b1a7 100644 (file)
@@ -248,8 +248,6 @@ void vtkClipping3DDataViewer::Configure_Volume()
 {
   // Volume
 
-
-
  /** if(_newvol != NULL)
   {
     _newvol->Delete();
@@ -257,15 +255,13 @@ void vtkClipping3DDataViewer::Configure_Volume()
     _volumeProperty->Delete();
   }*/
 
-
-
   _tfun = vtkPiecewiseFunction::New();
   _ctfun = vtkColorTransferFunction::New();
 
        double range[2];
        this->_vtkmprbasedata->GetImageData()->GetScalarRange(range);
        double max = range[1];
-
+       
        /*
        adding the poinst of the transference function
        */
@@ -326,20 +322,14 @@ void vtkClipping3DDataViewer::Configure_Volume()
 
        // EED 13/03/2011
 
-
-
  // _volumeMapper = vtkVolumeRayCastMapper::New();
        _volumeMapper->SetInput( this->GetVtkMPRBaseData()->GetImageData() );
 
-
-
     _volumeMapper->SetVolumeRayCastFunction(_compositeFunction);
 
-
    // _volumeMapper->SetVolumeRayCastFunction(_compositeFunctionMIP);
-
+       
 //
-
        _volumeMapper->SetClippingPlanes( _volumePlanes );
        _volumeMapper->AutoAdjustSampleDistancesOn();
 
@@ -349,17 +339,9 @@ void vtkClipping3DDataViewer::Configure_Volume()
        _volumeProperty->SetScalarOpacity( _tfun );
 
 // EED 31/03/2008
-
        _volumeProperty->DisableGradientOpacityOn();
 
 
-
-//     _
-
-
-//     _
-
-
 //     _volumeProperty->SetInterpolationTypeToNearest();
 //     _volumeProperty->ShadeOff();
 //     _volumeProperty->SetAmbient(0.3);
@@ -371,7 +353,7 @@ void vtkClipping3DDataViewer::Configure_Volume()
        _newvol->SetMapper(_volumeMapper );
        _newvol->SetProperty(_volumeProperty );
 
-  _observerV = boxSurfaceObserver::New();
+    _observerV = boxSurfaceObserver::New();
        _observerV->SetPlanes( _volumePlanes );
        _observerV->SetActor( _newvol );
        _observerV->SetvtkVolumeRayCastMapper( _volumeMapper );
@@ -380,15 +362,12 @@ void vtkClipping3DDataViewer::Configure_Volume()
 
 void vtkClipping3DDataViewer::Configure_VolumeBox()
 {
-    cout<<"JPRG::vtkClipping3DDataViewer::Configure_VolumeBox()"<<endl;
-
        _volumerendererdata->SetImageData(_vtkmprbasedata->GetImageData());
 
 
     vector<double> *gv = this->GetGreyValuesTransferenceFVector();
     vector<double> *op = this->GetIntensityValuesTransferenceFVector();
 
-
     _volumerendererdata->SetLookUpTable((vtkLookupTable*)(_ctfun));
     _volumerendererdata->OpacityChanged(*gv, *op);