[vtkusers] Refreshing the vtkRenderWindow
Vivek Gupta
vivekg at mac.com
Mon Apr 26 12:30:33 EDT 2004
Hello All,
I have a case where I have a separate thread that is running and interfaces with a device. I use the devices coordinates to update the location of an actor (3D cursor on the screen). I also have vtkRenderWindowInteractor associated with vtkRenderWindow so that in the window I can use the built-in abilities to manipulate the camera. What I'd like to be able to do is as I manipulate my device is refresh the vtkRenderWindow to display the actor at the updated coordinates.
I've tried a variety of methods to do this (vtkRenderWindow->Render(), this gives some form of openGL error, which I haven't been able to read) and none of them seems to work. Is there a specific way I have to go about getting the reference to vtkRenderWindow or some other way to notify it that the actor has been modified so refresh the drawing. Do I have use LevelOfDetail in order to set an auto-refresh rate?
Thanks,
Vivek
More information about the vtkusers
mailing list