Hi, <br>I quickly gave a watch. Since your class derives from vtkSphereSource, your vtkTypeRevisionMacro should do the same:<br> vtkTypeRevisionMacro( vtkEllipsoidSource, vtkSphereSource );<br><br>If it does'nt, your filter 'tells' that it is -in the oo sense- a vtkPolyDataAlgorithm, but not a vtkSphereSource. So you have conflict between pure C++ and VTK object approach.<br>
- C++ : vtkEllipsoidSource derives from vtkSphereSource, the compiler stays quiet. <br>- VTK : vtkEllipsoidSource "IsA" vtkPolyDataAlgorithm. The error seems to deal with the differences between vtkSphereSource and vtkPolyDataAlgorithm. Especially, Execute is an old method that certainly exists in vtkSphereSource -old old source-, but *maybe* not, or in vtkPolyDataAlgorithm that comes from vtk-5.x design.<br>
<br>For the RequestInformation redefinition in your class, I really don't know. I effectively implement it when I need to pre-define some parameters. In your case, It could be the EllipsoidTransform member's parameters set...<br>
<br>HTH,<br>Jerome<br><br><div class="gmail_quote">2009/10/12 David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>></span><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">I am trying to create an ellipsoid source by simply creating a subclass
of vtkSphereSource and applying a transformation to it. Before even
writing the transformation code, I wanted to make sure the new subclass
was working properly so I created a quick test VisualizeEllipsoid.cpp
(this along with the vtkEllipsoidSource class can be found here: <a href="http://www.rpi.edu/%7Edoriad/VTK_List/vtkEllipsoidSource/" target="_blank">http://www.rpi.edu/~doriad/VTK_List/vtkEllipsoidSource/</a>)<br>
<br>If I do not override RequestData(), the example works properly and
displays a sphere. However if I override RequestData to simply call the
parent class (SphereSource) RequestData function, I get the following
error:<br>
<br>vtkEllipsoidSource (0x8b27df8): Definition of Execute() method
should be in subclass and you should really use the
ExecuteData(vtkInformation *request,...) signature instead<br><br>Can
anyone explain what this means? Also, it looks like the
RequestInformation function of vtkSphereSource is creating a bounding
box. What is this used for? (i.e. do I actually need to override
RequestInformation for the new source to find the ellipsoid's bounding
box?)<br>
<br clear="all">Thanks,<br><font color="#888888"><br>David<br>
</font></div><br>
<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>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>