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

Method StartInteractor

Rendering/Parallel/vtkParallelRenderManager.cxx:351–380  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

349
350//------------------------------------------------------------------------------
351void 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//------------------------------------------------------------------------------
383void vtkParallelRenderManager::StartServices()

Callers 15

TestPOpenFOAMReaderFunction · 0.80
processFunction · 0.80
ExecuteMethod · 0.80
TestPProbeFunction · 0.80
MyMainFunction · 0.80

Calls 6

StopServicesMethod · 0.95
StartServicesMethod · 0.95
GetLocalProcessIdMethod · 0.45
GetInteractorMethod · 0.45
InitializeMethod · 0.45
StartMethod · 0.45