mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-28 07:59:37 -06:00
Update Transformationmanager
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user