[vtk-developers] vtkImageToStructuredPoints missing GetOutput function

David Doria daviddoria+vtk at gmail.com
Wed Feb 10 19:58:26 EST 2010


On Wed, Feb 3, 2010 at 6:18 PM, Francois Bertel <francois.bertel at kitware.com
> wrote:

> Hello,
>
> GetOutput() in vtkImageAlgorithm is not virtual so you are not
> overriding. If you make GetOutput virtual in vtkImageAlgorithm then it
> will be a case of overriding with covariant return type (C++98).
> I'm not sure how the VTK wrappers handle that. I remember some red
> dashboard with java in the past because either the VTK wrapper was not
> allowing covariant return type or the JDK at this time was not
> supporting it.
>
> Anyway, some other classes just add a new method instead, like
> "GetStructuredPointsOutput()".
>
> Just my 2 cents. Any other suggestions are welcome.
>

If there are no other suggestions, I will add

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

Thanks,

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


More information about the vtk-developers mailing list