View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0003187 | VTK | (No Category) | public | 2006-04-30 13:55 | 2016-08-12 09:54 |
|
Reporter | Adam Hooper | |
Assigned To | Will Schroeder | |
Priority | low | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | |
Platform | | OS | | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
|
Summary | 0003187: Sometimes-spurious Render() in vtkInteractorStyle::StopState() |
Description | In vtkInteractorStyle::StopState(), a Render() is triggered even if the vtkRenderWindow's DesiredUpdateRate isn't changed. The Render() should only occur when the update rate is changed.
Attached is a patch which fixes the problem. |
Tags | No tags attached. |
|
Project | |
Type | |
|
Attached Files | vtk-interactor-style-render.diff [^] (944 bytes) 1969-12-31 19:00 [Show Content] [Hide Content]Index: Rendering/vtkInteractorStyle.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Rendering/vtkInteractorStyle.cxx,v
retrieving revision 1.99
diff -u -r1.99 vtkInteractorStyle.cxx
--- Rendering/vtkInteractorStyle.cxx 27 Jul 2005 15:31:47 -0000 1.99
+++ Rendering/vtkInteractorStyle.cxx 30 Apr 2006 17:43:12 -0000
@@ -387,13 +387,17 @@
{
vtkRenderWindowInteractor *rwi = this->Interactor;
vtkRenderWindow *renwin = rwi->GetRenderWindow();
+ double oldUpdateRate = renwin->GetDesiredUpdateRate();
renwin->SetDesiredUpdateRate(rwi->GetStillUpdateRate());
if (this->UseTimers && !rwi->DestroyTimer())
{
vtkErrorMacro(<< "Timer stop failed"); }
this->InvokeEvent(vtkCommand::EndInteractionEvent, NULL);
- rwi->Render();
+ if (renwin->GetDesiredUpdateRate() != oldUpdateRate)
+ {
+ rwi->Render();
+ }
}
}
|
|