Thanks, I have it working now.<br><br>I looked at the vtkPassInputTypeAlgorithm and noticed the following in RequestDataObject:<br><br>
<meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin: 0px; text-indent: 0px;"> if (!output || !output->IsA(input->GetClassName())) </p>
<p style="margin: 0px; text-indent: 0px;"> {</p>
<p style="margin: 0px; text-indent: 0px;"> vtkDataObject* newOutput = input->NewInstance();</p>
<p style="margin: 0px; text-indent: 0px;"> newOutput->SetPipelineInformation(info);</p>
<p style="margin: 0px; text-indent: 0px;"><b> newOutput->Delete();</b></p>
<p style="margin: 0px; text-indent: 0px;"> this->GetOutputPortInformation(0)->Set(</p>
<p style="margin: 0px; text-indent: 0px;"> vtkDataObject::DATA_EXTENT_TYPE(), <b>newOutput->GetExtentType()</b>);</p>
<p style="margin: 0px; text-indent: 0px;"> }</p><br>Is there a reason why Delete is called before GetExtentType? Or is this a bug? (although it doesn't crash on me....)<br><br>Regards,<br>Paul<br><br><div class="gmail_quote">
2009/8/24 Moreland, Kenneth <span dir="ltr"><<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">You might also consider subclassing vtkPassInputTypeAlgorithm instead. That should set up the output object the way you want (the same type as the input) for you.<br>
<br>
-Ken<div><div></div><div class="h5"><br>
<br>
<br>
On 8/24/09 11:35 AM, "burlen" <<a href="http://burlen.loring@gmail.com" target="_blank">burlen.loring@gmail.com</a>> wrote:<br>
<br>
</div></div></span></font><div><div></div><div class="h5"><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">How did you implement RequestDataObject?<br>
Did you set the keys:<br>
<br>
vtkDataObject::DATA_TYPE_NAME()<br>
vtkDataObject::DATA_OBJECT()<br>
vtkDataObject::DATA_EXTENT_TYPE()<br>
<br>
?<br>
<br>
<br>
Paul Edwards wrote:<br>
> Hi,<br>
><br>
> I am creating a filter that calculates the difference between all<br>
> scalar values for two inputs. The filter assumes that both the inputs<br>
> have the sames number of points (and same block structure if<br>
> multi-block). I want to work with both single and multi-block so I<br>
> have subclassed vtkDataObjectAlgorithm but when I just set the output<br>
> as a DeepCopy of the first input I just get an empty output with an<br>
> "Unknown type". Does anyone know what I am doing wrong?<br>
><br>
> Thanks,<br>
> Paul<br>
><br>
><br>
> ------------------------------------------------------------------------<br>
><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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
> <br>
<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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
<br>
</span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font></div></div><font size="2"><font face="Consolas, Courier New, Courier"><span style="font-size: 10pt;"><br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
*********** <br>
*** *** *** email: <a href="http://kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a><br>
** *** ** phone: (505) 844-8919<br>
*** web: <a href="http://www.cs.unm.edu/%7Ekmorel" target="_blank">http://www.cs.unm.edu/~kmorel</a><br>
</span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font>
</div>
</blockquote></div><br>