vtkRenderView view not updating (refreshing) after selection
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Click-and dragging the mouse in the render view window, and the region that is selected does not visually update (i.e. don't see the purple outlines around the cells) until you do something else, like rotate, or zoom back and forth, or re-size the window.
Running this python script illustrates the problem (on my Windows system):
from vtk import * source = vtkSphereSource() view = vtkRenderView() surfaceRep = vtkSurfaceRepresentation() surfaceRep.SetInputConnection(source.GetOutputPort()) view.AddRepresentation(surfaceRep) window = vtkRenderWindow() window.SetSize(600, 600) view.SetupRenderWindow(window) window.GetInteractor().Start()
Perhaps vtkRenderView::ProcessEvents() should have a call to "this->Update();" at the end of the block where a selection is detected.