Skip to content
Snippets Groups Projects
Commit 5e791b5c authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

Miscellaneous vtkContextInteractorStyle fixes.

1. Fixed TimerId type. vtkRenderWindowInteractor defines the TimerId
type as int. vtkContextInteractorStyle now uses the same type.

2. Fixed timer creation. OnSceneModifed() was repeatedly creating new
timers even when previous one hadn't timed out yet. Fixed that. Also,
RenderNow() ensures that old timers are destroyed.

3. RenderNow() now uses Interactor->Render() rather than
Interactor->GetRenderWindow()->Render(). vtkRenderWindowInteractor has
API to control how and if an interaction should trigger a render on the
window. Calling RenderWindow->Render() bypasses all that logic resulting
is mismatch between how interactions work in Render views and Chart views.
This fixes that issue.

Change-Id: I58798615070d97ba9a00ccc21919a5d518bdac22
parent 6a100d34
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment