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

Method StopAnimate

Rendering/Core/vtkInteractorStyle.cxx:478–490  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

476
477//------------------------------------------------------------------------------
478void vtkInteractorStyle::StopAnimate()
479{
480 vtkRenderWindowInteractor* rwi = this->Interactor;
481 this->AnimState = VTKIS_ANIM_OFF;
482 if (this->State == VTKIS_NONE)
483 {
484 rwi->GetRenderWindow()->SetDesiredUpdateRate(rwi->GetStillUpdateRate());
485 if (this->UseTimers && !rwi->DestroyTimer(this->TimerId))
486 {
487 vtkErrorMacro(<< "Timer stop failed");
488 }
489 }
490}
491
492// JCP Animation control
493//------------------------------------------------------------------------------

Callers 1

OnCharMethod · 0.95

Calls 4

SetDesiredUpdateRateMethod · 0.45
GetRenderWindowMethod · 0.45
GetStillUpdateRateMethod · 0.45
DestroyTimerMethod · 0.45

Tested by

no test coverage detected