https://public.kitware.com/Wiki/index.php?title=VTK/Tutorials/PipelineInput&feed=atom&action=historyVTK/Tutorials/PipelineInput - Revision history2024-03-29T10:12:46ZRevision history for this page on the wikiMediaWiki 1.38.6https://public.kitware.com/Wiki/index.php?title=VTK/Tutorials/PipelineInput&diff=47718&oldid=prevDaviddoria: Created page with "** Reader beware: This is a very high level, "get it to work" set of instructions, not a lesson in the workings of the VTK pipeline. ** In VTK 4, there were functions like: fil..."2012-06-11T22:27:15Z<p>Created page with "** Reader beware: This is a very high level, "get it to work" set of instructions, not a lesson in the workings of the VTK pipeline. ** In VTK 4, there were functions like: fil..."</p>
<p><b>New page</b></p><div>** Reader beware: This is a very high level, "get it to work" set of instructions, not a lesson in the workings of the VTK pipeline. **<br />
<br />
In VTK 4, there were functions like:<br />
<br />
filter->SetInput(vtkPolyData*)<br />
<br />
In VTK 5, many of these functions still work, but they were supposed to have been deprecated in favor of:<br />
filter->SetInputConnection(anotherFilter->GetOutputPort());<br />
<br />
What do you do if you don't have anotherFilter, but rather just a dataSet? You can use the GetProducerPort() function of the dataSet:<br />
filter->SetInputConnection(dataSet->GetProducerPort());<br />
<br />
which "fakes" as if it were the output of a filter.<br />
<br />
In VTK 6, we are back to being able to pass a non-filter output (a dataSet) directly to a filter, but it is now called SetInputData:<br />
filter->SetInputData(vtkPolyData*)</div>Daviddoria