<div class="gmail_quote">On Fri, Mar 5, 2010 at 5:50 AM, Sebastian Gatzka <span dir="ltr"><<a href="mailto:sebastian.gatzka@stud.tu-darmstadt.de">sebastian.gatzka@stud.tu-darmstadt.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Hello world.<br>
<br>
Is it possible to update a vtkTextActor during a Callback function?<br>
<br>
I'm using the callback function like the one from the
vtkImplicitPlaneWidget2 example:
<a href="http://www.cmake.org/Wiki/VTK/Examples/Widgets/ImplicitPlaneWidget2" target="_blank">http://www.cmake.org/Wiki/VTK/Examples/Widgets/ImplicitPlaneWidget2</a><br>
I want to be able to display the current center of the widget and its
normal direction in text form!<br>
<br>
Any ideas?<br>
Sebastian<br>
</font></font>
</div><div bgcolor="#ffffff" text="#000000"><font size="-1"><font face="Helvetica, Arial, sans-serif"><br></font></font></div></blockquote><div class="gmail_quote"><br></div><div class="gmail_quote">Sure - you just have to make the text actor a member of the callback (there is currently a vtkPlane and a vtkActor in the example, copy the way those were done) and set the pointer from main like this:</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">myCallback->Plane = plane;</div><div><br></div><div>Good luck,</div><div><br></div><div>David</div></div>