Move the mapping target->frame from SpiceManager to SpacecraftInstrumentModule (#closes 21)

This commit is contained in:
Alexander Bock
2019-12-28 00:25:17 +01:00
parent 207db3c824
commit e3afd82c47
6 changed files with 49 additions and 101 deletions

View File

@@ -24,8 +24,10 @@
#include <modules/spacecraftinstruments/rendering/renderableplaneprojection.h>
#include <modules/spacecraftinstruments/spacecraftinstrumentsmodule.h>
#include <modules/spacecraftinstruments/util/imagesequencer.h>
#include <openspace/engine/globals.h>
#include <openspace/engine/moduleengine.h>
#include <openspace/rendering/renderengine.h>
#include <openspace/scene/scenegraphnode.h>
#include <openspace/scene/scene.h>
@@ -309,7 +311,8 @@ void RenderablePlaneProjection::setTarget(std::string body) {
return;
}
_target.frame = SpiceManager::ref().frameFromBody(body);
_target.frame =
global::moduleEngine.module<SpacecraftInstrumentsModule>()->frameFromBody(body);
_target.body = std::move(body);
}