Modularize the newhorizons and volume classes

This commit is contained in:
Alexander Bock
2015-05-20 21:08:21 +02:00
parent 523abd6529
commit 59e474d5cd
26 changed files with 250 additions and 25 deletions

View File

@@ -28,6 +28,10 @@
#include <ghoul/logging/logmanager.h>
#include <modules/base/basemodule.h>
#include <modules/newhorizons/newhorizonsmodule.h>
#include <modules/volume/volumemodule.h>
namespace {
const std::string _loggerCat = "ModuleEngine";
}
@@ -36,6 +40,11 @@ namespace openspace {
bool ModuleEngine::initialize() {
LDEBUG("Initializing modules");
registerModule(new BaseModule);
registerModule(new NewHorizonsModule);
registerModule(new VolumeModule);
for (OpenSpaceModule* m : _modules) {
bool success = m->initialize();
if (!success) {