MCPcopy Create free account
hub / github.com/Kitware/VTK / StopState

Method StopState

Rendering/Core/vtkInteractorStyle.cxx:437–458  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

435
436//------------------------------------------------------------------------------
437void vtkInteractorStyle::StopState()
438{
439 this->State = VTKIS_NONE;
440 if (this->AnimState == VTKIS_ANIM_OFF)
441 {
442 vtkRenderWindowInteractor* rwi = this->Interactor;
443 vtkRenderWindow* renwin = rwi->GetRenderWindow();
444 renwin->SetDesiredUpdateRate(rwi->GetStillUpdateRate());
445 if (this->UseTimers &&
446 // FIXME: This comment doesn't match the logic of the code. There is
447 // one test failing with it like it is, but more failing if the
448 // comparison is inverted.
449 // vtkTestingInteractor cannot create timers
450 std::string(rwi->GetClassName()) != "vtkTestingInteractor" &&
451 !rwi->DestroyTimer(this->TimerId))
452 {
453 vtkErrorMacro(<< "Timer stop failed");
454 }
455 this->InvokeEvent(vtkCommand::EndInteractionEvent, nullptr);
456 rwi->Render();
457 }
458}
459
460//------------------------------------------------------------------------------
461// JCP animation control

Callers 15

EndRotateMethod · 0.95
EndZoomMethod · 0.95
EndPanMethod · 0.95
EndSpinMethod · 0.95
EndDollyMethod · 0.95
EndUniformScaleMethod · 0.95
EndTimerMethod · 0.95
EndTwoPointerMethod · 0.95
EndGestureMethod · 0.95
EndEnvRotateMethod · 0.95
EndForwardFlyMethod · 0.80
EndReverseFlyMethod · 0.80

Calls 8

InvokeEventMethod · 0.80
RenderMethod · 0.65
stringClass · 0.50
GetRenderWindowMethod · 0.45
SetDesiredUpdateRateMethod · 0.45
GetStillUpdateRateMethod · 0.45
GetClassNameMethod · 0.45
DestroyTimerMethod · 0.45

Tested by

no test coverage detected