]> 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 fb791dc5ae3216cf6fa5f49008334b1ccefa97e6..901a7d7d4c6bb1f5aaa518917c3ef17d57b3b1a7 100644 (file)
@@ -166,8 +166,6 @@ void vtkClipping3DDataViewer::SetVisibleVolume(bool visiblevolume)
        _visibleVolume = visiblevolume;
 }
 
-
-
 bool vtkClipping3DDataViewer::GetVisibleVolumeBox()
 {
        return _visibleVolumeBox;
@@ -178,8 +176,6 @@ void vtkClipping3DDataViewer::SetVisibleVolumeBox(bool visibleBox)
        _visibleVolumeBox = visibleBox;
 }
 
-
-
 //-------------------------------------------------------------------
 void vtkClipping3DDataViewer::Configure_Tissue()
 {
@@ -252,8 +248,6 @@ void vtkClipping3DDataViewer::Configure_Volume()
 {
   // Volume
 
-
-
  /** if(_newvol != NULL)
   {
     _newvol->Delete();
@@ -261,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
        */
@@ -330,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();
 
@@ -353,17 +339,9 @@ void vtkClipping3DDataViewer::Configure_Volume()
        _volumeProperty->SetScalarOpacity( _tfun );
 
 // EED 31/03/2008
-
        _volumeProperty->DisableGradientOpacityOn();
 
 
-
-//     _
-
-
-//     _
-
-
 //     _volumeProperty->SetInterpolationTypeToNearest();
 //     _volumeProperty->ShadeOff();
 //     _volumeProperty->SetAmbient(0.3);
@@ -375,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 );
@@ -384,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);