------------------------------------------------------------------------------ new-style group #2 returns non-zero if timer reset
| 888 | //------------------------------------------------------------------------------ |
| 889 | // new-style group #2 returns non-zero if timer reset |
| 890 | int 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 |
no test coverage detected