<br><div class="gmail_quote">On Wed, Feb 3, 2010 at 6:18 PM, Francois Bertel <span dir="ltr"><<a href="mailto:francois.bertel@kitware.com">francois.bertel@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
GetOutput() in vtkImageAlgorithm is not virtual so you are not<br>
overriding. If you make GetOutput virtual in vtkImageAlgorithm then it<br>
will be a case of overriding with covariant return type (C++98).<br>
I'm not sure how the VTK wrappers handle that. I remember some red<br>
dashboard with java in the past because either the VTK wrapper was not<br>
allowing covariant return type or the JDK at this time was not<br>
supporting it.<br>
<br>
Anyway, some other classes just add a new method instead, like<br>
"GetStructuredPointsOutput()".<br>
<br>
Just my 2 cents. Any other suggestions are welcome.<br>
<div><div></div><div class="h5"></div></div></blockquote></div><br><div>If there are no other suggestions, I will add </div><div><br></div><div><div>vtkStructuredPoints* vtkImageToStructuredPoints::GetStructuredPointsOutput()</div>
<div>{</div><div>  return vtkStructuredPoints::SafeDownCast(this->GetOutputDataObject(0));</div><div>}</div></div><div><br clear="all">Thanks,<br><br>David</div>