<div class="gmail_quote">2011/10/3 David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></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 <<a href="mailto:xurong1981@gmail.com" target="_blank">xurong1981@gmail.com</a>>:<br>
<div><div></div><div>> Hi, David Doria :<br>
><br>
> Thank you very much for your response!<br>
><br>
> 2011/10/3 David Doria <<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>><br>
>><br>
>> 2011/10/2 Rong Xu <<a href="mailto:xurong1981@gmail.com" target="_blank">xurong1981@gmail.com</a>>:<br>
>> > Hi:<br>
>> ><br>
>> > I am a new man in using VTK library, and I want to realize refreshing<br>
>> > the<br>
>> > VTK windows when I change the opacity value of the object shown in VTK<br>
>> > windows. Does anybody have experience about refreshing of VTK windows?<br>
>> > Could<br>
>> > you please tell me how to refreshing the Object shown in VTK windows<br>
>> > efficiently when I change the attribute of the object, such as the value<br>
>> > of<br>
>> > opacity?<br>
>> ><br>
>> > I will appreciate your advice ! Thank you!<br>
>><br>
>> Can you send a code snippet and explain how it behaves vs how you want<br>
>> it to behave?<br>
><br>
> I think there are no special code, now I just renew the variables of<br>
> vtkRenderer, vtkRenderWindow, and vtkRenderWindowInteractor, then show the<br>
> windows again after I changed the parameters of vtkActor.<br>
><br>
> But I give 2 pictures to show what I want to do. In Model-01.jpg, I set the<br>
> value of opacity as 0.4, and in Model-02.jpg, I set the value of opacity as<br>
> 1.0. So I want to realize refreshing the windows as soon as possible when I<br>
> change the value of opacity from 0.4 to 1.0. Because when I renew the<br>
> variables of vtkRenderer, vtkRenderWindow, and vtkRenderWindowInteractor, it<br>
> takes some time to re-draw the VTK windows. Is there any method for this<br>
> purpose, such as refreshing of vtkActor or vtkRenderWindow?<br>
><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 "renew the variables"? 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<vtkRenderer>::New();<br>m_renWin = vtkSmartPointer<vtkRenderWindow>::New();<br>
m_iren = vtkSmartPointer<vtkRenderWindowInteractor>::New();<br> </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, 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: <a href="tel:%2B81-80-4208-1207" value="+818042081207" target="_blank">+81-80-4208-1207</a><br>E-mail: <a href="mailto:xurong1981@gmail.com" target="_blank">xurong1981@gmail.com</a><br>
<a href="mailto:xurong@fuji.waseda.jp" target="_blank">xurong@fuji.waseda.jp</a><br>
===============================================<br><br>