------------------------------------------------------------------------------
| 349 | |
| 350 | //------------------------------------------------------------------------------ |
| 351 | void vtkParallelRenderManager::StartInteractor() |
| 352 | { |
| 353 | vtkDebugMacro("StartInteractor"); |
| 354 | |
| 355 | if ((this->Controller == nullptr) || (this->RenderWindow == nullptr)) |
| 356 | { |
| 357 | vtkErrorMacro("Must set Controller and RenderWindow before starting interactor."); |
| 358 | return; |
| 359 | } |
| 360 | |
| 361 | if (this->Controller->GetLocalProcessId() == this->RootProcessId) |
| 362 | { |
| 363 | vtkRenderWindowInteractor* inter = this->RenderWindow->GetInteractor(); |
| 364 | if (!inter) |
| 365 | { |
| 366 | vtkErrorMacro("Render window does not have an interactor."); |
| 367 | } |
| 368 | else |
| 369 | { |
| 370 | inter->Initialize(); |
| 371 | inter->Start(); |
| 372 | } |
| 373 | // By the time we reach here, the interaction is finished. |
| 374 | this->StopServices(); |
| 375 | } |
| 376 | else |
| 377 | { |
| 378 | this->StartServices(); |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | //------------------------------------------------------------------------------ |
| 383 | void vtkParallelRenderManager::StartServices() |