<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">How is that
possible.<br>
I'm not understanding the syntax of the callback function.<br>
I'm afraid I can't alter it myself ...<br>
</font></font><br>
Am 05.03.2010 14:39, schrieb David Doria:
<blockquote
cite="mid:c19fcadc1003050539g1e42b27cuf4866ad211b2cbd1@mail.gmail.com"
type="cite">
<div class="gmail_quote">On Fri, Mar 5, 2010 at 5:50 AM, Sebastian
Gatzka <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:sebastian.gatzka@stud.tu-darmstadt.de">sebastian.gatzka@stud.tu-darmstadt.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 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 moz-do-not-send="true"
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>
</blockquote>
</body>
</html>