VTKFIG  0.20.20181114
Easy VTK based in situ visualization
void vtkfig::internals::MainThread::DeleteMainThread ( )
staticprivate

Kill the thread.

Definition at line 28 of file vtkfigMainThread-2018-01-26-2205.cxx.

29  {
30 
31  if (mainthread==0) return;
32  for (auto& frame :mainthread->framemap)
33  {
34  for (auto & subframe: frame.second->subframes)
35  subframe.renderer->RemoveAllViewProps();
36  frame.second->window->Finalize();
37 
38  }
39  mainthread->framemap.clear();
40  mainthread->interactor->TerminateApp();
41  }
static MainThread * mainthread
"This" thread
vtkSmartPointer< vtkRenderWindowInteractor > interactor
std::map< int, Frame * > framemap
Map of all frames handeled by thread.