<div dir="ltr">Hi Kent,<div><br></div><div>Can you share the piece of the code that is leading to this error? The easiest thing would be to run this in a debugger and set a breakpoint in <span style="font-family:arial,sans-serif;font-size:13px">vtkDemandDrivenPipeline.cxx:715. It looks like someone is calling SetInputConnection() or one of the related functions on the reader. Also, if you could post the old and the new versions of the reader, I might have some more specific suggestions on the conversion.</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Best,</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">-berk</span></div>

<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 18, 2013 at 11:44 AM, Kent Williams <span dir="ltr"><<a href="mailto:nkwmailinglists@gmail.com" target="_blank">nkwmailinglists@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have spent several hours puzzling over this.<div><br></div><div>There is a class vtkITKArchetypeImageSeriesReader that is part of Slicer.</div>

<div><br></div><div>In the process of converting BRAINSTools to be compatible with VTK6, I ran into this issue: vtkImageSource is gone, and vtkITKArchetypeImageSeriesReader derives from it.</div>
<div><br></div><div>As far as I can tell from reading the Pipeline migration guide, things that were once derived from vtkSource are now supposed to be derived from vtkAlgorithm.</div><div><br></div><div>
So I changed the superclass for vtkITKArchetypeImageSeriesReader to vtkImageAlgorithm.</div><div><br></div><div>This compiles OK but at runtime it has this error message:</div><div><div><br></div><div>118: ERROR: In /scratch/kent/BRAINSTools/build/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx, line 715</div>


<div>118: vtkCompositeDataPipeline (0x7f946c916190): Input port 0 of algorithm vtkITKArchetypeImageSeriesScalarReader(0x7f946c914990) has 0 connections but is not optional.</div><div><br></div><div>Now something that is a source, doesn't need any inputs -- the input in this case is the name of the file or files to read to generate an image.</div>


<div><br></div><div>I don't understand the VTK pipeline in general, or this problem specifically, and frankly I was trying to do this conversion on a 'need to know' basis -- only learn what I need to know in order to get the conversion done.</div>


<div><br></div><div>So the question is -- if something was working fine before derived from vtkImageSource, what is the least-effort path to getting it functional in VTK6?</div></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>