[vtk-developers] Change to Widgets

Sebastien BARRE sebastien.barre at kitware.com
Mon Sep 24 12:56:42 EDT 2007


At 9/24/2007 11:53 AM, Utkarsh Ayachit wrote:
>The reason for this change is Paraview. In ParaView when interacting 
>the client switches into a low-detail rendering mode and switched 
>out of it when EndInteractionEvent is fired by the interactor style 
>or the widget. If the widget fires the event before render than 
>paraview switches out of the interactive mode (to full res mode) and 
>renders in full res.

I'm with Tim on this one, the event probably should be fired before 
Render() (the way it is now).
What is not clear is how the situation you describe in PV is a 
problem: in most case you *want* to get out of low-detail at 
EndInteraction, so that the scene is re-rendered correctly by the 
Render() call after it, wouldn't you? Actually if I recall that's how 
it's done in VolView... The situation you describe seems to be a side 
effect of you explicitly calling Render() when intercepting 
EndInteractionEvent (i.e. you switch to full res, then re-Render() 
manually?). But in most case, I would say that VTK users would 
probably just use the StartInteraction and EndInteraction to set an 
"I'm interacting" flag or setup the LOD's correctly, and expect the 
Render() to be called for them in a reasonable way (the way it is now I'd say).




More information about the vtk-developers mailing list