Is there any reason we can't have a templated single input, single output filter?<div><br></div><div>Currently, it looks like the preferred method is to derive from the class *Algorithm of the intended output type and change the input type in the FillInputPortInformation function.</div>

<div><br></div><div>Lets take an example of a filter which takes as input a vtkPointSet and produces a vtkPolyData:</div><div><br></div><div><u><b>Current method:</b></u></div><div><br></div><div>class MyFilter : vtkPolyDataAlgorithm</div>

<div><br></div><div><div>int MyFilter::FillInputPortInformation( int port, vtkInformation* info )</div><div>{</div><div>  if (port == 0)</div><div>    {</div><div>    info->Set( vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(), "vtkPointSet" );</div>

<div>    return 1;</div><div>    }</div><div><br></div><div>  return 0;</div><div>}</div><div><br></div><div><b><u>Proposed method:</u></b></div><div><b><u><br></u></b></div><div>class MyFilter : vtkFilter<vtkPointSet, vtkPolyData></div>

<div><b><u><br></u></b></div><div><b><u><br></u></b></div><div>Thoughts? I may be over my head in template programming and pipeline stuff, but maybe the experts can discuss/comment?</div><div><br></div></div><div>Thanks,<br>
<br>David<br>

</div>