[vtkusers] Re: Re: Is there anyone who knows how to load a image fileasbackground in a RenderWindow?

Goodwin Lawlor goodwin.lawlor at ucd.ie
Thu Nov 18 06:17:00 EST 2004


Hi Frederic,

> I guess the same idea can be applied in order to visualize a
> logo or small actor in front of everything else in the render
> window.

True, you could reverse the layer order to have the logo on top. See here
for a caveat:
http://public.kitware.com/pipermail/vtkusers/2004-February/071584.html

For a logo, it might be easier to use a vtkImageMapper and vtkActor2D to
control the position in the render window ("actor SetPosition"). So instead
of a vtkImageActor, you could use:

vtkImageMapper imapper
    imapper SetInput [reader GetOutput]
    imapper SetColorLevel 128
    imapper SetColorWindow 255
vtkActor2D actor
    actor SetMapper imapper


hth


Goodwin






More information about the vtkusers mailing list