#if VTK_MAJOR_VERSION <= 5
sts->SetInput(extrude->GetOutput());
#else
- sts->SetInputData(extrude->GetOutput());
+ sts->SetInputConnection(extrude->GetOutputPort());
#endif
// When extrude ScaleFactor indicate the extrusion scaling (default = 1)
#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();
#if VTK_MAJOR_VERSION <= 5
writer->SetInput(windowToImageFilter->GetOutput());
#else
- writer->SetInputData(windowToImageFilter->GetOutput());
+ writer->SetInputConnection(windowToImageFilter->GetOutputPort());
#endif
writer->Write();
}
#if VTK_MAJOR_VERSION <= 5
imgwriter->SetInput(image);
#else
- imgwriter->SetInputData(image);
+ imgwriter->SetInputConnection(w2i->GetOutputPort());
#endif
imgwriter->SetFileName(fileName.toStdString().c_str());
imgwriter->Write();
#if VTK_MAJOR_VERSION <= 5
vidwriter->SetInput(image);
#else
- vidwriter->SetInputData(image);
+ vidwriter->SetInputConnection(w2i->GetOutputPort());
#endif
vidwriter->SetFileName(fileName.toStdString().c_str());
vidwriter->Start();
#if VTK_MAJOR_VERSION <= 5
vidwriter->SetInput(w2i->GetOutput());
#else
- vidwriter->SetInputData(w2i->GetOutput());
+ vidwriter->SetInputConnection(w2i->GetOutputPort());
#endif
vidwriter->Write();
}
#if VTK_MAJOR_VERSION <= 5
sts->SetInput(extrude->GetOutput());
#else
- sts->SetInputData(extrude->GetOutput());
+ sts->SetInputConnection(extrude->GetOutputPort());
#endif
} else {
#if VTK_MAJOR_VERSION <= 5
#if VTK_MAJOR_VERSION <= 5
mMapper->SetInput(mMarching->GetOutput());
#else
- mMapper->SetInputData(mMarching->GetOutput());
+ mMapper->SetInputConnection(mMarching->GetOutputPort());
#endif
//The following line allows to display the contour over the image
//(http://www.nabble.com/What-happens-when-two-actors-are-at-the-same-depth--td23175458.html)
#if VTK_MAJOR_VERSION <= 5
pdm->SetInput(crossCursor->GetOutput());
#else
- pdm->SetInputData(crossCursor->GetOutput());
+ pdm->SetInputConnection(crossCursor->GetOutputPort(0));
#endif
pdmA = vtkSmartPointer<vtkActor2D>::New();
#if VTK_MAJOR_VERSION <= 5
accFilter->SetInput(voiFilter->GetOutput());
#else
- accFilter->SetInputData(voiFilter->GetOutput());
+ accFilter->SetInputConnection(voiFilter->GetOutputPort(0));
#endif
accFilter->Update();
#if VTK_MAJOR_VERSION <= 5
mMapper->SetInput(mReaders[mCurrentTime]->GetOutput());
#else
- mMapper->SetInputData(mReaders[mCurrentTime]->GetOutput());
+ mMapper->SetInputConnection(mReaders[mCurrentTime]->GetOutputPort());
#endif
if (!mActor) {
#if VTK_MAJOR_VERSION <= 5
mMapper->SetInput(mReaders[mCurrentTime]->GetOutput());
#else
- mMapper->SetInputData(mReaders[mCurrentTime]->GetOutput());
+ mMapper->SetInputConnection(mReaders[mCurrentTime]->GetOutputPort());
#endif
mMapper->Modified();
renderWidget->GetRenderWindow()->Render();
#if VTK_MAJOR_VERSION <= 5
mMapper->SetInput(mReaders[mCurrentTime]->GetOutput());
#else
- mMapper->SetInputData(mReaders[mCurrentTime]->GetOutput());
+ mMapper->SetInputConnection(mReaders[mCurrentTime]->GetOutputPort());
#endif
mMapper->Modified();
renderWidget->GetRenderWindow()->Render();