------------------------------------------------------------------------------
| 435 | |
| 436 | //------------------------------------------------------------------------------ |
| 437 | void 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 |
no test coverage detected