[vtkusers] how to clear the screen in renderer window?

Veerapuram Varadhan v.varadhan at californiadigital.com
Mon May 3 03:31:25 EDT 2004


Read the new image and the set it as input to the already added
actor/mapper which is holding the previous image data.

HTH,

V. Varadhan.

> 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.
>
> Yang
>
>
> -----Original Message-----
> From: varshini varshini [mailto:vvarshini at hotmail.com]
> Sent: Friday, April 23, 2004 11:42 AM
> To: Yang at AGIUSA.COM
> Subject: RE: [vtkusers] how to clear the screen in renderer window?
>
>
> I tried doing
>
> RenWin->GetRenderer()->RemoveAllProps();
>
> as u mentioned. I am using vtkWin32OpenGLRenderWindow for displaying the
> renderer window in the dialog box. So I get errors saying that
> GetRenderer()
>
> is n ot a member.Is there any othere way to remove the actors and clear
> the
> screen?
>
> Thanks in advance
>
> varshini
>
>
>>From: Xianjin Yang <Yang at AGIUSA.COM>
>>To: vtkusers at vtk.org
>>CC: 'varshini varshini' <vvarshini at hotmail.com>
>>Subject: RE: [vtkusers] how to clear the screen in renderer window?
>>Date: Fri, 23 Apr 2004 11:17:35 -0500
>>
>>You may have to remove all existing actors first.
>>
>>RenWin->GetRenderer()->RemoveAllProps();
>>
>>Yang
>>
>>-----Original Message-----
>>From: varshini varshini [mailto:vvarshini at hotmail.com]
>>Sent: Friday, April 23, 2004 11:14 AM
>>To: vtkusers at vtk.org
>>Subject: [vtkusers] how to clear the screen in renderer window?
>>
>>
>>Hai all,
>>
>>I am opening and displaying an image in a renderer window in a dialog
>>box.When I try to open and load another image the previous image
>>appears on the screen and is not cleared. I tried using
>>
>>renWin->Clean();
>>and
>>ren->Clear();
>>
>>to clear the previous image , but still I wasn't able to solve it. Am I
>>missing something or is there a different option to get this done.Any
>>help will be greatly appretiated.
>>
>>Thanks in advance
>>
>>Varshini
>>
>>_________________________________________________________________
>>FREE pop-up blocking with the new MSN Toolbar - get it now!
>>http://toolbar.msn.com/go/onm00200415ave/direct/01/
>>
>>_______________________________________________
>>This is the private VTK discussion list.
>>Please keep messages on-topic. Check the FAQ at:
>><http://public.kitware.com/cgi-bin/vtkfaq>
>>Follow this link to subscribe/unsubscribe:
>>http://www.vtk.org/mailman/listinfo/vtkusers
>
> _________________________________________________________________
> Lose those love handles! MSN Fitness shows you two moves to slim your
> waist.
>
> http://fitness.msn.com/articles/feeds/article.aspx?dept=exercise&article=et_
> pv_030104_lovehandles
>




More information about the vtkusers mailing list