[vtkusers] newcomer getting trouble with 2dImage rendering

Mohamed.Mzali at cmm.ensmp.fr Mohamed.Mzali at cmm.ensmp.fr
Mon Apr 18 11:35:21 EDT 2005


Hi everyone, this first posting of mine shouldn't be too tricky for
some of you vtk old school users.

This mailing list sounds efficient, and i'm really counting in it for i've
been blocked several days long.
To the point then, I'm dealing with images and python. To render my image
variable, I convert it to raw data string and I import it with
vtkImageImport.CopyImportVoidPointer (void *ptr, int size)

That works when Mapped with a 'vtkDataSetMapper' which is a 3d mapper.
Actually I need to display 2d models so I tried using 'vtkImageMapper'
instead, i didn't change the program, as this Mapper implements the
setInput(vtkImageData *input) method (well it's abstract here but not
implemented neither by its subclasses OpenGL and Mesa Mappers). The
only additionnal change was setting my vtkActors as vtkActors2d.
It doesn't work. And that I couldn't fix.

Thanks

momo






More information about the vtkusers mailing list