mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-27 22:40:41 -05:00
Changes in ProjectionComponent initialization
- Remove parsing function - Make ProjectionComponent accept sub-dictionary Remove "Rotation" key-value from RenderableModelProjection - Information moved into RenderableFOV to do conversion between object and frame Changes in mod files to reflect ProjectionComponent and RenderableModelProjection changes Added Documentation to - RenderablePlanetProjection - RenderableModelProjection - ProjectionComponent - PlanetGeometry - ModelGeometry
This commit is contained in:
@@ -46,6 +46,7 @@ namespace {
|
||||
const std::string keyInstrumentMethod = "Instrument.Method";
|
||||
const std::string keyInstrumentAberration = "Instrument.Aberration";
|
||||
const std::string keyPotentialTargets = "PotentialTargets";
|
||||
const std::string keyFrameConversions = "FrameConversions";
|
||||
|
||||
const int InterpolationSteps = 10;
|
||||
const int Stride = 8;
|
||||
@@ -94,6 +95,17 @@ RenderableFov::RenderableFov(const ghoul::Dictionary& dictionary)
|
||||
_potentialTargets[i] = target;
|
||||
}
|
||||
|
||||
ghoul::Dictionary frameConversions;
|
||||
success = dictionary.getValue(keyFrameConversions, frameConversions);
|
||||
if (success) {
|
||||
for (const std::string& key : frameConversions.keys()) {
|
||||
openspace::SpiceManager::ref().addFrame(
|
||||
key,
|
||||
frameConversions.value<std::string>(key)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
addProperty(_lineWidth);
|
||||
addProperty(_drawSolid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user