[vtkusers] derive a class form vtkRendere
Obada Mahdi
omahdi at gmx.de
Wed Apr 16 08:48:50 EDT 2008
Hello Jalal!
jalal sadeghi wrote:
> I derived a class from vtkRendere.after using it i these message
> appears : cannot instantiate abstract class .
If, by any chance, you are working on an OpenGL-based renderer, you might want
to subclass (or at least have a look at) vtkOpenGLRenderer, which resides in
Rendering/vtkOpenGLRenderer.{cxx,h}
in the VTK source tree.
> i see that DeviceRender=0 must be overridden but after that the
> message appears again.is <http://again.is> there another function that
> must be overridden
There are several other pure virtual functions defined in vtkViewport, the
direct anchestor of vtkRenderer, most of which have to do with picking:
http://www.vtk.org/doc/nightly/html/classvtkViewport.html
HTH,
Obada
More information about the vtkusers
mailing list