[vtkusers] [Fwd: RE: RenderWindow refresh for Multiple renders in VTK]

lars-friedrich lars-friedrich at gmx.net
Fri Aug 28 01:50:01 EDT 2009


Zhigao,

have you already tried
renderWindow->GetInteractor()->Render()
instead of 
for all renderers
  renderer->Render()
?

For me, that approach usually works ...

regards,
lars



Anka Kochanowska wrote:
> 
> Hi!
> Please, send messages to the list, so others can tell you their ideas.
> 
> I was thinking about invoking event, then, some object has to have 
> observer for this event.  You may find how to use InvokeEvent() in 
> numerous vtk classes and examples.
> 
> I do not know what you mean by renders but, have you tried Update()
> method?
> 
> Anka
> 
> 
> -------- Original Message --------
> Subject: 	RE: [vtkusers] RenderWindow refresh for Multiple renders in VTK
> Date: 	Thu, 27 Aug 2009 13:49:46 +0800
> From: 	Cheng Zhigao <ZGCHENG at ntu.edu.sg>
> To: 	Anka Kochanowska <anka at bic.mni.mcgill.ca>
> References: 
> <B6198CBF2D449E47BDFBBACD63AEAB60013949019F at EXCHANGE32.staff.main.ntu.edu.sg>,<4A951D0C.7060907 at bic.mni.mcgill.ca> 
> 
> 
> 
> 
> Hi Anka,
> 
> Thanks for your replay. If you mean call the Modified method, that does
> not work. I also tried to render all the renders after modification. If
> you mean InvokeEvent, how can I do that?
> 
>  Or any other solution?
> 
> Regards,
> zhigao
> ________________________________________
> From: Anka Kochanowska [anka at bic.mni.mcgill.ca]
> Sent: Wednesday, August 26, 2009 7:31 PM
> To: Cheng Zhigao
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] RenderWindow refresh for Multiple renders in VTK
> 
> Send Modified event.
> Anka
> 
> 
> Cheng Zhigao wrote:
>> Hi,
>>
>>      My codes dynamically adds and removes renders in the RenderWindow.
>> The problem is everytime  i add a new render, the renderwindow will only
>> refresh after i do something on the renderwindow like a mouse click.
>> Anyway so that the renderwindow can refresh as soon as it is updated?
>>
>>    Thanks.
>>
>> Regards,
>> zhigao
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 

-- 
View this message in context: http://www.nabble.com/-Fwd%3A-RE%3A-RenderWindow-refresh-for-Multiple-renders-in-VTK--tp25170958p25184393.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list