mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
aded time range to voyager rotations; disabled spice exceptions by default; updated space module to read spiceexpection value;
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -144,6 +144,9 @@ ModuleConfigurations = {
|
||||
-- GuiScale = 2.0,
|
||||
Enabled = true,
|
||||
Visible = true
|
||||
},
|
||||
Space = {
|
||||
ShowExceptions = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user