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

Method ResetTimer

Rendering/Core/vtkRenderWindowInteractor.cxx:890–909  ·  view source on GitHub ↗

------------------------------------------------------------------------------ new-style group #2 returns non-zero if timer reset

Source from the content-addressed store, hash-verified

888//------------------------------------------------------------------------------
889// new-style group #2 returns non-zero if timer reset
890int vtkRenderWindowInteractor::ResetTimer(int timerId)
891{
892 vtkTimerIdMapIterator iter = this->TimerMap->find(timerId);
893 if (iter != this->TimerMap->end())
894 {
895 this->InternalDestroyTimer((*iter).second.Id);
896 int platformTimerId =
897 this->InternalCreateTimer(timerId, (*iter).second.Type, (*iter).second.Duration);
898 if (platformTimerId != 0)
899 {
900 (*iter).second.Id = platformTimerId;
901 return 1;
902 }
903 else
904 {
905 this->TimerMap->erase(iter);
906 }
907 }
908 return 0;
909}
910
911//------------------------------------------------------------------------------
912// new-style group #2 returns non-zero if timer destroyed

Callers 2

OnTimerMethod · 0.80
TimerEventMethod · 0.80

Calls 5

InternalDestroyTimerMethod · 0.95
InternalCreateTimerMethod · 0.95
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected