X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicer.cxx;h=c1b3d36b310dd217174b683b8efe828ac23eaba4;hb=f76d7667542120705849be390807ef223061fad1;hp=cfaaf5aaeaa0b0df933028de6874e10d3027e771;hpb=f05dd3a888120632345251a479e953e14a117a58;p=clitk.git diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index cfaaf5a..c1b3d36 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -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::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(); } //----------------------------------------------------------------------------