In my application I have a similar option as in Paraview “Hover over cells” to show cell property using balloon widget and highlight hovered cell using vtkExtractSelection to extract cell from grid and update actor. The second part updating an actor to show hovered cell in VTK 6.3 and also in Paraview is almost instant no delay, but using 9.2 there is a delay about 1-2 seconds( depending on number of cells in the grid). I thought this will be solved in 9.2 but it’s the same as in 9.1, so I wonder if there are any other settings in vtkRenderWindow, vtkRenderer or vtkRenderWindowInteractor that I’m not aware of that need to be adjusted in order to improve performance, or there is potentially another bug in the latest release?
here is the code that use to update actor every time mouse is moved of top of the cell
vtkSelectionNode selectionNode = new vtkSelectionNode();
selectionNode.SetFieldType(0);
selectionNode.SetContentType(3);
selectionNode.SetSelectionList(hoverIDS);
vtkSelection selection = new vtkSelection();
selection.SetNode("Hover", selectionNode);
vtkExtractSelection extractSelection = new vtkExtractSelection();
extractSelection.SetInputData(Grid);
extractSelection.SetInputData(1, selection);
//extractSelection.Update();
MapperInteractive.SetInputConnection(extractSelection.GetOutputPort());
RenWin.Render();
and here are current rendering settings.
RenWin.GetRenderers().GetFirstRenderer().SetMaximumNumberOfPeels(4);
RenWin.GetRenderers().GetFirstRenderer().SetOcclusionRatio(0.1);
RenWin.SetAlphaBitPlanes(1);
RenWin.SetMultiSamples(0);
I spend couple days with different settings, but no success so far.
Please share any ideas
Thanks
MK