TimeFrame specification and status (#3553)

* Makes Translation/Scale/Rotation all able to have a TimeFrame, not just the SpiceRotation.  Add read-only BoolProperty to the TimeFrame that indicates whether the current time is a in the timeframe

---------

Co-authored-by: Emma Broman <emma.broman@liu.se>
This commit is contained in:
Alexander Bock
2025-03-10 13:53:32 +01:00
committed by GitHub
parent 842b63f6ea
commit 7328a94fb1
47 changed files with 440 additions and 206 deletions
+4 -10
View File
@@ -55,20 +55,14 @@ documentation::Documentation StaticScale::Documentation() {
}
StaticScale::StaticScale(const ghoul::Dictionary& dictionary)
: StaticScale()
: Scale(dictionary)
, _scaleValue(ScaleInfo, 1.0, 0.1, 100.0)
{
const Parameters p = codegen::bake<Parameters>(dictionary);
_scaleValue = p.scale;
_type = "StaticScale";
}
StaticScale::StaticScale()
: _scaleValue(ScaleInfo, 1.0, 0.1, 100.0)
{
addProperty(_scaleValue);
_scaleValue.onChange([this]() { requireUpdate(); });
_type = "StaticScale";
addProperty(_scaleValue);
}
glm::dvec3 StaticScale::scaleValue(const UpdateData&) const {