]> Creatis software - clitk.git/blobdiff - vv/vvSlicer.cxx
Merge branch 'VTK6_Qt5' into VTK6_Qt5_Binarize
[clitk.git] / vv / vvSlicer.cxx
index cfaaf5aaeaa0b0df933028de6874e10d3027e771..c1b3d36b310dd217174b683b8efe828ac23eaba4 100644 (file)
@@ -128,7 +128,7 @@ vvSlicer::vvSlicer()
 #if VTK_MAJOR_VERSION <= 5
   pdm->SetInput(crossCursor->GetOutput());
 #else
-  pdm->SetInputData(crossCursor->GetOutput());
+  pdm->SetInputConnection(crossCursor->GetOutputPort(0));
 #endif
 
   pdmA = vtkSmartPointer<vtkActor2D>::New();
@@ -1549,7 +1549,7 @@ void vvSlicer::GetExtremasAroundMousePointer(double & min, double & max, vtkImag
 #if VTK_MAJOR_VERSION <= 5
   accFilter->SetInput(voiFilter->GetOutput());
 #else
-  accFilter->SetInputData(voiFilter->GetOutput());
+  accFilter->SetInputConnection(voiFilter->GetOutputPort(0));
 #endif
   accFilter->Update();
 
@@ -1593,6 +1593,7 @@ double vvSlicer::GetScalarComponentAsDouble(vtkImageData *image, double X, doubl
 //----------------------------------------------------------------------------
 void vvSlicer::Render()
 { //out << __func__ << endl;
+
   if (this->mFusion && mFusionActor->GetVisibility() && showFusionLegend) {
     legend->SetLookupTable(this->GetFusionMapper()->GetLookupTable());
     legend->UseOpacityOn();
@@ -1748,7 +1749,8 @@ void vvSlicer::Render()
   }
   if (mLandMapper)
     UpdateLandmarks();
-  this->GetRenderWindow()->Render();
+
+    this->GetRenderWindow()->Render();
 }
 //----------------------------------------------------------------------------