X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvAnimatedGIFWriter.cxx;h=026ebe091dd877b5f3547d6c1f6f6df85e2153f9;hb=41796e945c3027937cedda97d1762bc0a5193c3c;hp=5dbf51abc300d251e94d48b880467229ed235f2a;hpb=3a823a03d4a2217e41e4dd3b05a8ea825bb762a5;p=clitk.git diff --git a/vv/vvAnimatedGIFWriter.cxx b/vv/vvAnimatedGIFWriter.cxx index 5dbf51a..026ebe0 100644 --- a/vv/vvAnimatedGIFWriter.cxx +++ b/vv/vvAnimatedGIFWriter.cxx @@ -47,6 +47,11 @@ void vvAnimatedGIFWriter::Write() int *wExtent = this->GetInput()->GetWholeExtent(); this->GetInput()->SetUpdateExtent(wExtent); this->GetInput()->Update(); +#elif VTK_MAJOR_VERSION >= 7 && VTK_MINOR_VERSION >= 1 + this->UpdateInformation(); + int *wExtent = this->GetInput()->GetInformation()->Get(vtkDataObject::DATA_EXTENT()); + this->UpdateExtent(wExtent); + this->Update(); #else this->UpdateInformation(); int *wExtent = this->GetInput()->GetInformation()->Get(vtkDataObject::DATA_EXTENT()); @@ -74,7 +79,7 @@ void vvAnimatedGIFWriter::End() #if VTK_MAJOR_VERSION <= 5 quant->SetInput(RGBvolume->GetOutput()); #else - quant->SetInputData(RGBvolume->GetOutput()); + quant->SetInputConnection(RGBvolume->GetOutputPort()); #endif quant->Update(); @@ -83,7 +88,7 @@ void vvAnimatedGIFWriter::End() #if VTK_MAJOR_VERSION <= 5 cast->SetInput( quant->GetOutput() ); #else - cast->SetInputData( quant->GetOutput() ); + cast->SetInputConnection( quant->GetOutputPort() ); #endif cast->SetOutputScalarTypeToUnsignedChar(); cast->Update();