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:
Alexander Bock
2016-10-27 21:45:49 +02:00
parent f4beb5ed6a
commit 18b8aab898
26 changed files with 770 additions and 555 deletions
@@ -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);
}