Did you include vtkUnstructuredGrid.h?  Sometimes there is a forward declaration like "class vtkUnstructuredGrid;" but the compiler does not know that vtkUnstructuredGrid derives from vtkDataObject until you actually include vtkUnstructuredGrid.h.<br>
<br>Pat<br><br><div class="gmail_quote">On Fri, Feb 5, 2010 at 1:11 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@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;">
<div class="gmail_quote">On Fri, Feb 5, 2010 at 12:38 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;">


Sorry, I meant AppendFilter<br>
<div><div></div><div></div></div></blockquote></div><br><div>Yea, that outputs an unstructured grid.</div><div><br></div><div>So I have a filter that derives from vtkPointSetAlgorithm.</div><div><br></div><div>I can SetInput(vtkPointSet*)</div>

<div><br></div><div>Then I do some processing and the last step is a vtkAppendFilter. </div><div><br></div><div>I want to do</div><div><br></div><div>vtkPointSet* output = the output object of the filter;</div><div><br></div>

<div>output->ShallowCopy(appendFilter->GetOutput());</div><div><br></div><div>It says "no matching function call vtkPointSet::ShallowCopy(vtkUnstructuredGrid*)</div><div>candidates are vtkPointSet::ShallowCopy(vtkDataObject*)</div>

<div><br></div><div>An unstructured grid IS a DataObject, right? So shouldn't this copy be allowed?</div><div><br></div><div>Maybe this is a silly computer science question - my EE background is failing me here :(</div>

<div><br clear="all">Thanks,<br><font color="#888888"><br>David</font></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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br>