How to dynamically update vtkTextActor input in an animation?

bdemin <[email protected]>
Newsgroups gmane.comp.lib.vtk.user
Message-ID <[email protected]>
I have a 3D simulation done in VTK with a text actor which displays the
current runtime. My inefficient way of doing that is creating a vtkTextActor
object in each frame which holds the current runtime in seconds as input and
deleting the TextActor from the last frame. All of that happens inside a
repeating vtkTimerCallback function. On each frame I create and delete a
vtkTextActor.

Is there a way to dynamically update the SetInput() method of vtkTextActor
and then showing the new text on each execution of vtkTimerCallback? In
other words - using the same vtkTextActor and updating it on each frame
rather than creating\deleting actors.



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.