<div dir="ltr">Shakthi,<div><br></div><div>Have you made any progress on this? I tried to run your code example, but don't have Paho installed. Maybe you could modify your code to not use multiprocessing and get the Render() function to work serially. This will rule out some unknown interaction with the multiprocessing module.<br></div><div><br></div><div>Thanks,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 25, 2015 at 2:31 PM, Shakthi Kannan <span dir="ltr"><<a href="mailto:shakthimaan@gmail.com" target="_blank">shakthimaan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am now able to get data from a separate process on to a queue, and<br>
send it to vtkTimerCallback(), but, the image is not rendering. I have<br>
used self.actor.GetProperty().SetColor() and<br>
iren.GetRenderWindow().Render() in the callback.<br>
<br>
How else can I force it to render the image?<br>
<br>
The latest code is available at:<br>
<br>
  <a href="https://gist.github.com/shakthimaan/d8e4f51f3d074926e244" rel="noreferrer" target="_blank">https://gist.github.com/shakthimaan/d8e4f51f3d074926e244</a><br>
<br>
Thanks!<br>
<span class="HOEnZb"><font color="#888888"><br>
SK<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Thu, Sep 24, 2015 at 10:34 PM, Shakthi Kannan <<a href="mailto:shakthimaan@gmail.com">shakthimaan@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I would like to render lines using a Python callback method and VTK. I<br>
> am using the following code snippet as a template:<br>
><br>
>  <a href="http://www.vtk.org/Wiki/VTK/Examples/Python/GeometricObjects/Display/LongLine" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Python/GeometricObjects/Display/LongLine</a><br>
><br>
> and the follow examples for a callback function:<br>
><br>
>   <a href="http://cmake.org/Wiki/VTK/Examples/Python/Animation" rel="noreferrer" target="_blank">http://cmake.org/Wiki/VTK/Examples/Python/Animation</a><br>
><br>
>   <a href="http://public.kitware.com/pipermail/vtkusers/2010-January/056316.html" rel="noreferrer" target="_blank">http://public.kitware.com/pipermail/vtkusers/2010-January/056316.html</a><br>
><br>
> Changing the colour of the line using the callback method after 5s<br>
> works fine. But, I am not sure how to add more points and lines to the<br>
> existing image. My hacked up code is here:<br>
><br>
>   <a href="https://gist.github.com/shakthimaan/588af4b6d0facdf2cc89" rel="noreferrer" target="_blank">https://gist.github.com/shakthimaan/588af4b6d0facdf2cc89</a><br>
><br>
> How do I incrementally add lines to an existing drawing, and render them?<br>
><br>
> Appreciate your help in this regard,<br>
><br>
> Thanks!<br>
><br>
> SK<br>
><br>
> --<br>
> Shakthi Kannan<br>
> <a href="http://www.shakthimaan.com" rel="noreferrer" target="_blank">http://www.shakthimaan.com</a><br>
<br>
<br>
--<br>
Shakthi Kannan<br>
<a href="http://www.shakthimaan.com" rel="noreferrer" target="_blank">http://www.shakthimaan.com</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>