[vtkusers] Subclassing vtkActor broken?

stoptv stoptv at gmail.com
Tue Apr 18 13:43:23 EDT 2006


replying to oneself is kind of creepy, but perhaps it will benefit someone:

the problem, if I understand correctly, lays in the fact that
vtkObjectFactory is used to create a vtkActor instance.
vtkObjectFactory can override any class with a subclass of that class and
that's exactly what it does in the case
of instantiating vtkActor. either vtkMesaActor or vtkOpenGLActor gets
created. when we subclass vtkActor into
class myActor : public vtkActor .. myActor is NOT a superclass of either
OpenGL or Mesa varieties of vtkActors,
and thus the object eludes rendering.

the solution is to instead subclass vtkOpenGLActor or vtkMesaActor.

--
stoptv at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060418/008d94ee/attachment.htm>


More information about the vtkusers mailing list