Make use of new verifiers (Color and File) (#1510)

* Use codegen for renderable discs

* Utilize color and file verifier

* Add missing property assignment in exoplanets module
This commit is contained in:
Emma Broman
2021-03-02 08:11:49 +01:00
committed by GitHub
parent eec6b15781
commit 29e77534c7
27 changed files with 141 additions and 209 deletions
@@ -86,13 +86,13 @@ documentation::Documentation RenderableCrawlingLine::Documentation() {
new TableVerifier({
{
KeyColorStart,
new DoubleVector4Verifier,
new Color4Verifier,
Optional::No,
"The color at the start of the line",
},
{
KeyColorEnd,
new DoubleVector4Verifier,
new Color4Verifier,
Optional::No,
"The color at the end of the line"
}
@@ -104,7 +104,7 @@ namespace {
"Aberration",
"This value determines the aberration method that is used to compute the shadow "
"cylinder."
};
};
struct [[codegen::Dictionary(RenderableShadowCylinder)]] Parameters {
// [[codegen::verbatim(NumberPointsInfo.description)]]
@@ -114,7 +114,7 @@ namespace {
std::optional<float> shadowLength;
// [[codegen::verbatim(ShadowColorInfo.description)]]
std::optional<glm::vec3> shadowColor;
std::optional<glm::vec3> shadowColor [[codegen::color()]];
enum class TerminatorType {
Umbral [[codegen::key("UMBRAL")]],