[vtkusers] Sorry, Updating Scene Continously

Vodka Vodka vodka at hkem.com
Fri Jun 2 10:30:55 EDT 2000


Sorry, I don't know why there are 2 of my previous posts about 
"Updating Scene Continously". I just click "Send" once but 
there are 2 posts.
I find there is a mistyping in my previous post. It shpuld be
"I'm thinking of something relataed to "Timer", "onTimer" which can be used to read in new data and then trigger "renWin->Render
()" in a specific time interval. But how to set this kind of 
timer? Can anyone help??"

Thanks a lot.  



I'm using vtk to display my simulation result. 
I want the simulated result to be display on the screen 
continously. My simulation program will write data in a 
specific file(xxx.1, xxx.2, xxx.3) in every step of the 
simulation and a small vtk program is being written to display the data. 

I'm using vtkPolydata for carrying the data read in. 
Due to the architecture of vtk, I do know that, once the 
content in my vtkPolydata change and if renWin->Render() is 
triggered. Then the scene will be updated. But my problem is 
how to trigger 
renWin->Render() after the "iren->Start()"??? 


I know think of something "Timer", "onTimer" which read in new data and trigger "renWin->Render()" in specific time interval. But how to set this kind of timer? Can anyone help?? 

Also, does anyone has another better approach to my problem?? 
_____________________________________________________ 

_____________________________________________________
Sent by Hong Kong E-Mail at http://www.hkem.com
It's free. It's easy. Sign up your account Now! 





More information about the vtkusers mailing list