[vtkusers] modify a text in the renderer with the mose move event

David Doria daviddoria+vtk at gmail.com
Wed Nov 18 09:01:52 EST 2009


On Wed, Nov 18, 2009 at 2:25 AM, RimAY <rim.ayari at gmail.com> wrote:
>
> Dear All ,
> Can someone give me an idea how can i change a text in the renderer with the
> mouse move event.
> I try with vtktextactor this is the part of my code:
>
> Tactorx = vtkTextActor()
> Tactorx.SetInput(cx)
> Tactorx.SetDisplayPosition(70,170)
> Tactorx.GetTextProperty().SetJustificationToCentered()
> renderer.AddActor(Tactorx)
> Tactorx.Modified()
>
> cx change its value with the mose move, i get the new value above the ancien
> one, the result is an illegible text :(
>
> Thanks a lot

Can you provide the smallest compilable example of your problem?

Thanks,

David



More information about the vtkusers mailing list