Update Transformationmanager

This commit is contained in:
Alexander Bock
2018-03-14 13:16:32 -04:00
parent 2bfab657f3
commit 600f11b5f6

View File

@@ -28,13 +28,14 @@
namespace openspace {
constexpr const char* _loggerCat = "TransformationManager";
TransformationManager::TransformationManager(){
#ifdef OPENSPACE_MODULE_KAMELEON_ENABLED
_kameleon = std::make_shared<ccmc::Kameleon>();
#else
LWARNING("Kameleon module needed for transformations with dynamic frames");
LWARNINGC(
"TransformationManager",
"Kameleon module needed for transformations with dynamic frames"
);
#endif
_kameleonFrames = {
"J2000", "GEI", "GEO", "MAG", "GSE", "GSM", "SM", "RTN", "GSEQ", //geocentric
@@ -122,7 +123,10 @@ glm::dmat3 TransformationManager::frameTransformationMatrix(
return kameleonTransformation*spiceTransformation;
}
#else
LERROR("Can not transform dynamic frames without kameleon module enabled");
LERRORC(
"TransformationManager",
"Can not transform dynamic frames without kameleon module enabled"
);
#endif
return glm::dmat3(1.0);
}