[vtkusers] vtkActor2D problem in Windows 2000...
Marcelo
amati at cenpra.gov.br
Mon Sep 8 12:08:37 EDT 2003
Hi!
I'm trying to display 2 actors (vtkActor2D) over an imageActor
(vtkImageMapper -> vtkActor2D) but the imageActor always stays over the
actors. I have this problem only in windows 2000 (in Conectiva 8 and
Windows 98 I don't have this problem). I've used SetLayerNumber function
without success. Can anyone help me???
Thank you.
Marcelo
------------------------------------------------------
My code...
ren = vtkOpenGLRenderer()
mapper = vtkTextMapper()
mapper.SetInput("none")
actor = vtkActor2D()
actor.SetMapper(mapper)
actor.GetPositionCoordinate().SetValue(350,490)
actor.SetLayerNumber(1)
imageMapper = vtkImageMapper()
imageMapper.SetInput(reader.GetOutput())
imageMapper.SetZSlice(0)
imageActor = vtkActor2D()
imageActor.SetMapper(imageMapper)
imageActor.SetLayerNumber(0)
line = vtkLineSource()
lineMapper = vtkPolyDataMapper2D()
lineMapper.SetInput(line.GetOutput())
lineActor = vtkActor2D()
lineActor.SetMapper(lineMapper)
lineActor.SetLayerNumber(1)
ren.AddActor(actor)
ren.AddActor(imageActor)
ren.AddActor(lineActor)
More information about the vtkusers
mailing list