<div class="gmail_quote">2011/10/3 David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

2011/10/2 Rong Xu &lt;<a href="mailto:xurong1981@gmail.com" target="_blank">xurong1981@gmail.com</a>&gt;:<br>
<div><div></div><div>&gt; Hi, David Doria :<br>
&gt;<br>
&gt; Thank you very much for your response!<br>
&gt;<br>
&gt; 2011/10/3 David Doria &lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; 2011/10/2 Rong Xu &lt;<a href="mailto:xurong1981@gmail.com" target="_blank">xurong1981@gmail.com</a>&gt;:<br>
&gt;&gt; &gt; Hi:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I am a new man in using VTK library, and I want to realize refreshing<br>
&gt;&gt; &gt; the<br>
&gt;&gt; &gt; VTK windows when I change the opacity value of the object shown in VTK<br>
&gt;&gt; &gt; windows. Does anybody have experience about refreshing of VTK windows?<br>
&gt;&gt; &gt; Could<br>
&gt;&gt; &gt; you please tell me how to refreshing the Object shown in VTK windows<br>
&gt;&gt; &gt; efficiently when I change the attribute of the object, such as the value<br>
&gt;&gt; &gt; of<br>
&gt;&gt; &gt; opacity?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I will appreciate your advice ! Thank you!<br>
&gt;&gt;<br>
&gt;&gt; Can you send a code snippet and explain how it behaves vs how you want<br>
&gt;&gt; it to behave?<br>
&gt;<br>
&gt; I think there are no special code, now I just renew the variables of<br>
&gt; vtkRenderer, vtkRenderWindow, and vtkRenderWindowInteractor, then show the<br>
&gt; windows again after I changed the parameters of vtkActor.<br>
&gt;<br>
&gt; But I give 2 pictures to show what I want to do. In Model-01.jpg, I set the<br>
&gt; value of opacity as 0.4, and in Model-02.jpg, I set the value of opacity as<br>
&gt; 1.0. So I want to realize refreshing the windows as soon as possible when I<br>
&gt; change the value of opacity from 0.4 to 1.0. Because when I renew the<br>
&gt; variables of vtkRenderer, vtkRenderWindow, and vtkRenderWindowInteractor, it<br>
&gt; takes some time to re-draw the VTK windows. Is there any method for this<br>
&gt; purpose, such as refreshing of vtkActor or vtkRenderWindow?<br>
&gt;<br>
<br>
</div></div>Please keep the discussion on the mailing list so that everyone can<br>
help and benefit from the discussion.<br>
<br>
What do you mean by &quot;renew the variables&quot;? I think you might just not<br>
be calling Render() on the vtkRenderWindow?<br></blockquote><div><br>I mean I use the following codes to initialize these variables again.<br><br>m_ren = vtkSmartPointer&lt;vtkRenderer&gt;::New();<br>m_renWin = vtkSmartPointer&lt;vtkRenderWindow&gt;::New();<br>
m_iren = vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<br>&nbsp;</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<font color="#888888"><br>
David<br>
</font></blockquote></div><br><br clear="all"><br>-- <br><br> ---------------------<br>Best Regards!<br><br>===============================================<br>Rong Xu,&nbsp; Ph.D Student<br>Ohya Lab<br>Graduate School of Global Information
and Telecommunication<br>Studies (GITS), Waseda University<br>1-6-1 Nishi Waseda, Shinjuku-ku,
Tokyo, Japan (¨“169-8050)<br><br>Tel:&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <a href="tel:%2B81-80-4208-1207" value="+818042081207" target="_blank">+81-80-4208-1207</a><br>E-mail:&nbsp; &nbsp;&nbsp; <a href="mailto:xurong1981@gmail.com" target="_blank">xurong1981@gmail.com</a><br>
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; <a href="mailto:xurong@fuji.waseda.jp" target="_blank">xurong@fuji.waseda.jp</a><br>
===============================================<br><br>