[vtkusers] How to update render window programmatically taking into account the desired update rate...
AGPX
agpxnet at yahoo.it
Sun Jul 4 05:29:57 EDT 2010
Found the solution:
On MouseButtonPress event of the slider (I use QT), I do the following:
GetInteractor()->SetStillUpdateRate(15.0);
GetInteractor()->InvokeEvent(vtkCommand::LeftButtonPressEvent, NULL);
GetInteractor()->InvokeEvent(vtkCommand::LeftButtonReleaseEvent, NULL);
and on MouseButtonRelease I restore the still update rate:
GetInteractor()->SetStillUpdateRate(0.0001);
GetInteractor()->InvokeEvent(vtkCommand::LeftButtonPressEvent, NULL);
GetInteractor()->InvokeEvent(vtkCommand::LeftButtonReleaseEvent,
NULL);
Hope this can help any other one.
________________________________
Da: AGPX <agpxnet at yahoo.it>
A: vtk vtk <vtkusers at vtk.org>
Inviato: Sab 3 luglio 2010, 20:17:20
Oggetto: [vtkusers] How to update render window programmatically taking into account the desired update rate...
Hello,
I have a render window with a 3D volume (rendered with a desired update rate). I have (in the same window) a plane widget. Finally, I have a slider that I can use to move the plane. When I move the plane through the slider, I need to update the render window to show the new plane position. I perform this through the method Render of the vtkRenderWindow. This works, but the desired update rate isn't respected, that is no degradation are perfomed. There's any way to obtain this result when I interact with the window programmatically (instead of the mouse interactions)?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100704/28d3cff3/attachment.htm>
More information about the vtkusers
mailing list