int *wExtent = this->GetInput()->GetWholeExtent();
this->GetInput()->SetUpdateExtent(wExtent);
this->GetInput()->Update();
+#elif VTK_MAJOR_VERSION >= 8 || (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());
#if VTK_MAJOR_VERSION <= 5
quant->SetInput(RGBvolume->GetOutput());
#else
- quant->SetInputData(RGBvolume->GetOutput());
+ quant->SetInputConnection(RGBvolume->GetOutputPort());
#endif
quant->Update();
#if VTK_MAJOR_VERSION <= 5
cast->SetInput( quant->GetOutput() );
#else
- cast->SetInputData( quant->GetOutput() );
+ cast->SetInputConnection( quant->GetOutputPort() );
#endif
cast->SetOutputScalarTypeToUnsignedChar();
cast->Update();