iMSTK
Interactive Medical Simulation Toolkit
Source
Common
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
13
ModuleDriver::waitForInit
()
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
imstk
Compound Geometry.
Definition:
OctreeDebugModel.cpp:10
imstk::ModuleDriver::waitForInit
void waitForInit()
Wait for all modules to init.
Definition:
imstkModuleDriver.cpp:13
Generated by
1.8.13