iMSTK
Interactive Medical Simulation Toolkit
imstkModuleDriver.cpp
1 /*
2 ** This file is part of the Interactive Medical Simulation Toolkit (iMSTK)
3 ** iMSTK is distributed under the Apache License, Version 2.0.
4 ** See accompanying NOTICE for details.
5 */
6 
7 #include "imstkModuleDriver.h"
8 #include "imstkModule.h"
9 
10 namespace imstk
11 {
12 void
14 {
15  bool oneModuleIsNotInitYet = true;
16  while (oneModuleIsNotInitYet)
17  {
18  oneModuleIsNotInitYet = false;
19  for (auto module : m_modules)
20  {
21  if (!module->getInit())
22  {
23  oneModuleIsNotInitYet = true;
24  }
25  }
26  }
27 }
28 } // namespace imstk
Compound Geometry.
void waitForInit()
Wait for all modules to init.