[vtk-developers] vtkPoints as input to a filter?

pat marion pat.marion at kitware.com
Fri Feb 5 13:34:41 EST 2010


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.

Pat

On Fri, Feb 5, 2010 at 1:11 PM, David Doria
<daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> wrote:

> On Fri, Feb 5, 2010 at 12:38 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:
>
>> Sorry, I meant AppendFilter
>>
>
> Yea, that outputs an unstructured grid.
>
> So I have a filter that derives from vtkPointSetAlgorithm.
>
> I can SetInput(vtkPointSet*)
>
> Then I do some processing and the last step is a vtkAppendFilter.
>
> I want to do
>
> vtkPointSet* output = the output object of the filter;
>
> output->ShallowCopy(appendFilter->GetOutput());
>
> It says "no matching function call
> vtkPointSet::ShallowCopy(vtkUnstructuredGrid*)
> candidates are vtkPointSet::ShallowCopy(vtkDataObject*)
>
> An unstructured grid IS a DataObject, right? So shouldn't this copy be
> allowed?
>
> Maybe this is a silly computer science question - my EE background is
> failing me here :(
>
> Thanks,
>
> David
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100205/201142fe/attachment.html>


More information about the vtk-developers mailing list