Hi,<br>Please &quot;Reply all&quot; when you answer, so that me, David and anybody interested could follow the *whole* thread!<br><br>Well, if you remove your text actor after creating it, you certainly won&#39;t have text displayed...<br>
For the first solution, you obviously have to memorize the previous added actor, then you can remove it when you want:<br>It seems that you dont use the Object Oriented capability of python, so you can forget the second solution.<br>
<br>Jerome<br><br><div class="gmail_quote">2009/11/18 Rim AYARI <span dir="ltr">&lt;<a href="mailto:rim.ayari@gmail.com">rim.ayari@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Thanks a lot for your reply,<br><br>I tried to remove the actor before adding a new one but when i add renderer.RemoveActor(textActor) after creating a new one the result is no text in the renderer <br><br>
 for the second solution i use python not C++ i will try to make a list of actor.<br>

<br>thanks agin<br clear="all">----------------<br>Rim AYARI<br>Computer Science Engineer, Master ATS Student <br>Focus of Interest: Medical Image Processing<br>Ecole Nationale d&#39;Ingénieurs de Tunis<br><br>
<br><br><div class="gmail_quote">2009/11/18 Jérôme <span dir="ltr">&lt;<a href="mailto:jerome.velut@gmail.com" target="_blank">jerome.velut@gmail.com</a>&gt;</span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Hi,<br><br>If this part of code is inside your MoveMouse callback function, then you create a new actor as soon as you move, without hiding/removing the previous one.<br><br>2 solutions, if this is the problem:<br>- remove the actor before adding a new one <br>



- make Tactorx a member and instanciate it only once<br><br>HTH<br>Jerome<br><br><div class="gmail_quote">2009/11/18 RimAY <span dir="ltr">&lt;<a href="mailto:rim.ayari@gmail.com" target="_blank">rim.ayari@gmail.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Dear All ,<br>
Can someone give me an idea how can i change a text in the renderer with the<br>
mouse move event.<br>
I try with vtktextactor this is the part of my code:<br>
<br>
Tactorx = vtkTextActor()<br>
Tactorx.SetInput(cx)<br>
Tactorx.SetDisplayPosition(70,170)<br>
Tactorx.GetTextProperty().SetJustificationToCentered()<br>
renderer.AddActor(Tactorx)<br>
Tactorx.Modified()<br>
<br>
cx change its value with the mose move, i get the new value above the ancien<br>
one, the result is an illegible text :(<br>
<br>
Thanks a lot<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://old.nabble.com/modify-a-text-in-the-renderer-with-the-mose-move-event-tp26403090p26403090.html" target="_blank">http://old.nabble.com/modify-a-text-in-the-renderer-with-the-mose-move-event-tp26403090p26403090.html</a><br>




Sent from the VTK - Users mailing list archive at Nabble.com.<br>
</font><div><div></div><div><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br>
</blockquote></div></div></div><br></div>
</blockquote></div><br>