[vtkusers] Set Image position on vtkActor2D

Matteo sendtomatteo at yahoo.it
Wed Mar 2 08:28:24 EST 2011


Hi
I need to display an image in a part of the screen.
I'm using the chain:
vtkImageImport->vtkImageMapToColors->vtkImageMapper->vtkActor2D->vtkRenderer

I have set Position and Position2 of vtkActor2D to set the image box.

It looks is not enough...

So I set vtkImageMapper::RenderToRectangleOn() hoping for a solution, 
but only Position2 is rightly imported, the image starts always from 
(0,0) (any 'Position' looks ignored)

[I check into vtkImageMapper.cxx and the flag RenderToRectangle is never 
used...this is also strange...]

Any help?
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110302/568f1e3f/attachment.htm>


More information about the vtkusers mailing list