[vtkusers] Python vtk extend mapper

Nil Goyette nil.goyette at imeka.ca
Mon Jul 21 14:37:44 EDT 2014


Hi all, Is it possible to extend a mapper in Python VTK? I did a simple 
test, extending vtkPolyDataMapper, overriding RenderPiece with a "1/0" 
statement and a call to the real RenderPiece, and replacing in my code 
the real mapper with this fake mapper. It did nothing. It still draws 
what it was drawing before my test without failing. I did the same in a 
C++ project and it's working perfectly. I also tested extending 
vtkOpenGLPolyDataMapper, just in case. Still nothing.

So, is there any restrictions to overriding vtk classes in Python VTK? 
Thanks for your time.

-- 
Logo Imeka <http://imeka.ca/> 	Nil Goyette, M.Sc.
www.imeka.ca <http://imeka.ca/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140721/5b0797e9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Imeka.png
Type: image/png
Size: 6630 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140721/5b0797e9/attachment.png>


More information about the vtkusers mailing list