Merge pull request #1169 from OpenSpace/issue/1057

aded time range to voyager rotations
This commit is contained in:
Alexander Bock
2020-06-09 14:50:37 +02:00
committed by GitHub
4 changed files with 20 additions and 3 deletions

View File

@@ -61,7 +61,12 @@ local Voyager1 = {
Rotation = {
Type = "SpiceRotation",
SourceFrame = "VG1_SC_BUS",
DestinationFrame = "GALACTIC"
DestinationFrame = "GALACTIC",
TimeFrame = {
Type = "TimeFrameInterval",
Start = "1977-SEP-05 14:10:11.786",
End = "2027-DEC-27"
}
}
},
GUI = {

View File

@@ -64,7 +64,12 @@ local Voyager2 = {
Rotation = {
Type = "SpiceRotation",
SourceFrame = "VG2_SC_BUS",
DestinationFrame = "GALACTIC"
DestinationFrame = "GALACTIC",
TimeFrame = {
Type = "TimeFrameInterval",
Start = "1977-AUG-20 16:07:06.535",
End = "2027-DEC-27"
}
}
},
GUI = {

View File

@@ -68,7 +68,7 @@ SpaceModule::SpaceModule()
addProperty(_showSpiceExceptions);
}
void SpaceModule::internalInitialize(const ghoul::Dictionary&) {
void SpaceModule::internalInitialize(const ghoul::Dictionary& dictionary) {
FactoryManager::ref().addFactory(
std::make_unique<ghoul::TemplateFactory<planetgeometry::PlanetGeometry>>(),
"PlanetGeometry"
@@ -106,6 +106,10 @@ void SpaceModule::internalInitialize(const ghoul::Dictionary&) {
auto fGeometry = FactoryManager::ref().factory<planetgeometry::PlanetGeometry>();
ghoul_assert(fGeometry, "Planet geometry factory was not created");
fGeometry->registerClass<planetgeometry::SimpleSphereGeometry>("SimpleSphere");
if (dictionary.hasKeyAndValue<bool>(SpiceExceptionInfo.identifier)) {
_showSpiceExceptions = dictionary.value<bool>(SpiceExceptionInfo.identifier);
}
}
void SpaceModule::internalDeinitializeGL() {

View File

@@ -144,6 +144,9 @@ ModuleConfigurations = {
-- GuiScale = 2.0,
Enabled = true,
Visible = true
},
Space = {
ShowExceptions = false
}
}