<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [vtkusers] how to clear the screen in renderer window?</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Instead of using RenWin->GetRenderer(), you should call RenWin->GetRenderers(). So you get vtkRendererCollection. You may have to loop through all renderers in the collection to clean up the render window. I have never done so before. There must be an easy way to go. Someone else please share your thoughts.</FONT></P>
<P><FONT SIZE=2>Yang</FONT>
</P>
<BR>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: varshini varshini [<A HREF="mailto:vvarshini@hotmail.com">mailto:vvarshini@hotmail.com</A>] </FONT>
<BR><FONT SIZE=2>Sent: Friday, April 23, 2004 11:42 AM</FONT>
<BR><FONT SIZE=2>To: Yang@AGIUSA.COM</FONT>
<BR><FONT SIZE=2>Subject: RE: [vtkusers] how to clear the screen in renderer window?</FONT>
</P>
<BR>
<P><FONT SIZE=2>I tried doing</FONT>
</P>
<P><FONT SIZE=2>RenWin->GetRenderer()->RemoveAllProps();</FONT>
</P>
<P><FONT SIZE=2>as u mentioned. I am using vtkWin32OpenGLRenderWindow for displaying the </FONT>
<BR><FONT SIZE=2>renderer window in the dialog box. So I get errors saying that GetRenderer() </FONT>
<BR><FONT SIZE=2>is n ot a member.Is there any othere way to remove the actors and clear the </FONT>
<BR><FONT SIZE=2>screen?</FONT>
</P>
<P><FONT SIZE=2>Thanks in advance</FONT>
</P>
<P><FONT SIZE=2>varshini</FONT>
</P>
<BR>
<P><FONT SIZE=2>>From: Xianjin Yang <Yang@AGIUSA.COM></FONT>
<BR><FONT SIZE=2>>To: vtkusers@vtk.org</FONT>
<BR><FONT SIZE=2>>CC: 'varshini varshini' <vvarshini@hotmail.com></FONT>
<BR><FONT SIZE=2>>Subject: RE: [vtkusers] how to clear the screen in renderer window?</FONT>
<BR><FONT SIZE=2>>Date: Fri, 23 Apr 2004 11:17:35 -0500</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>You may have to remove all existing actors first.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>RenWin->GetRenderer()->RemoveAllProps();</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Yang</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>-----Original Message-----</FONT>
<BR><FONT SIZE=2>>From: varshini varshini [<A HREF="mailto:vvarshini@hotmail.com">mailto:vvarshini@hotmail.com</A>]</FONT>
<BR><FONT SIZE=2>>Sent: Friday, April 23, 2004 11:14 AM</FONT>
<BR><FONT SIZE=2>>To: vtkusers@vtk.org</FONT>
<BR><FONT SIZE=2>>Subject: [vtkusers] how to clear the screen in renderer window?</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Hai all,</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>I am opening and displaying an image in a renderer window in a dialog </FONT>
<BR><FONT SIZE=2>>box.When I try to open and load another image the previous image </FONT>
<BR><FONT SIZE=2>>appears on the screen and is not cleared. I tried using</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>renWin->Clean();</FONT>
<BR><FONT SIZE=2>>and</FONT>
<BR><FONT SIZE=2>>ren->Clear();</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>to clear the previous image , but still I wasn't able to solve it. Am I </FONT>
<BR><FONT SIZE=2>>missing something or is there a different option to get this done.Any </FONT>
<BR><FONT SIZE=2>>help will be greatly appretiated.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Thanks in advance</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Varshini</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>_________________________________________________________________</FONT>
<BR><FONT SIZE=2>>FREE pop-up blocking with the new MSN Toolbar - get it now! </FONT>
<BR><FONT SIZE=2>><A HREF="http://toolbar.msn.com/go/onm00200415ave/direct/01/" TARGET="_blank">http://toolbar.msn.com/go/onm00200415ave/direct/01/</A></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>_______________________________________________</FONT>
<BR><FONT SIZE=2>>This is the private VTK discussion list.</FONT>
<BR><FONT SIZE=2>>Please keep messages on-topic. Check the FAQ at: </FONT>
<BR><FONT SIZE=2>><<A HREF="http://public.kitware.com/cgi-bin/vtkfaq" TARGET="_blank">http://public.kitware.com/cgi-bin/vtkfaq</A>></FONT>
<BR><FONT SIZE=2>>Follow this link to subscribe/unsubscribe: </FONT>
<BR><FONT SIZE=2>><A HREF="http://www.vtk.org/mailman/listinfo/vtkusers" TARGET="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</A></FONT>
</P>
<P><FONT SIZE=2>_________________________________________________________________</FONT>
<BR><FONT SIZE=2>Lose those love handles! MSN Fitness shows you two moves to slim your waist. </FONT>
<BR><FONT SIZE=2><A HREF="http://fitness.msn.com/articles/feeds/article.aspx?dept=exercise&article=et_pv_030104_lovehandles" TARGET="_blank">http://fitness.msn.com/articles/feeds/article.aspx?dept=exercise&article=et_pv_030104_lovehandles</A></FONT>
</P>
</BODY>
</HTML>