[vtkusers] Python wrapping

Yoan BLANC greut.lists at dosimple.ch
Wed Oct 26 03:40:09 EDT 2005


Hi,

I've some extra classes for reading special files like H33. These 
classes were written for VTK 4.2 but I've ported them to VTK 4.4 
especially the float to double modification. But it still a problem that 
I can't understand

 >>> from vtk import *
 >>> dir(vtkImageH33Reader)
['ExecuteInformation', 'GetClassName', 'GetH33FileName', 
'SetH33FileName', '__bases__', '__doc__', '__members__', '__methods__', 
'__module__', '__name__']
 >>> h33img = vtkImageH33Reader()
 >>> h33img
<libvtkIOPython.vtkImageReader vtkobject at 0xb7c776b0>

Why h33img is a vtkImageReader ?!?

vtkImageReader
    |_ vtkImageGzipReader
            |_ vtkImageH33Reader

but with another class that inherits from vtkImageReader like 
vtkBMPReader there is no bug.

 >>> vtkBMPReader()
<libvtkIOPython.vtkBMPReader vtkobject at 0xb7c77698>

I'm a bit lost ??

Yoan




More information about the vtkusers mailing list