One Property Tree (#500)

* Organize properties in one single property tree
* Update scenes to work with one property tree. Fix documentation issues.
This commit is contained in:
Emil Axelsson
2018-03-06 16:59:06 +01:00
committed by GitHub
parent ebd69d1333
commit 4675554471
53 changed files with 527 additions and 603 deletions

View File

@@ -42,6 +42,10 @@ namespace {
namespace openspace {
ModuleEngine::ModuleEngine()
: properties::PropertyOwner({"Modules"})
{}
void ModuleEngine::initialize(const ghoul::Dictionary& moduleConfigurations) {
for (OpenSpaceModule* m : AllModules()) {
const std::string name = m->name();
@@ -84,6 +88,7 @@ void ModuleEngine::registerModule(std::unique_ptr<OpenSpaceModule> m,
LDEBUG("Registering module '" << m->name() << "'");
m->initialize(this, configuration);
addPropertySubOwner(m.get());
LDEBUG("Registered module '" << m->name() << "'");
_modules.push_back(std::move(m));
}