<div class="gmail_quote">On Sat, Nov 28, 2009 at 1:37 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
David,<br>
<br>
find . -name \*.h -exec grep vtkAlgorithm {} /dev/null \; | grep public<br>
<br>
shows 40 classes that derive from vtkAlgorithm. Two of these are<br>
source's. Maybe one of them will help.<br>
<font color="#888888"><br>
Bill<br>
</font><div><div></div><div><br></div></div></blockquote><div><br>Bill,<br><br>I spent quite a while paring some of those down and combining them trying to get the desired functionality. However, I'm still having some issues. The pipeline code gets pretty complex in a big hurry.<br>
<br>Here is the latest attempt:<br><a href="http://www.rpi.edu/%7Edoriad/VTK_List/vtkAlgorithmSource/" target="_blank">http://www.rpi.edu/~doriad/VTK_List/vtkAlgorithmSource/</a><br><br>It compiles, but when it is run I get <br>
<br>NewDataObject(): You are trying to instantiate DataObjectType "vtkTest" which does not exist.<br>
<br>Another thing is that in RequestData() when I do this :<br></div>
<div><br> vtkInformation* info = outputVector->GetInformationObject(0);<br>
<br> vtkTest *output = <br>
vtkTest::SafeDownCast(info->Get(vtkDataObject::DATA_OBJECT()));<br>
<br>output is NULL. If I do <br>output = vtkTest::New();<br><br>then the algorithm no longer has the correct address for the output, right? How is this typically handled?<br><br>It's very tough to debug these things as a non-expert because they are all errors from deep down in the pipeline.<br>
<br clear="all">Thanks,<br><br>David<br></div></div>