[vtk-developers] vtkImageToStructuredPoints missing GetOutput function

David Doria daviddoria+vtk at gmail.com
Wed Feb 3 17:45:06 EST 2010


The GetOutput function is not overriden in vtkImageToStructuredPoints, so if
you try to do this:

vtkStructuredPoints* structuredPoints = i2sp->GetOutput();

it complains that it can't convert from vtkImageData* to
vtkStructuredPoints*

This is fixed by adding:

vtkStructuredPoints* GetOutput();

to vtkImageToStructuredPoints.h

and

vtkStructuredPoints* vtkImageToStructuredPoints::GetOutput()
{
  return vtkStructuredPoints::SafeDownCast(this->GetOutputDataObject(0));
}

to vtkImageToStructuredPoints.cxx

Any objections?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100203/38362e2c/attachment.html>


More information about the vtk-developers mailing list