mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 17:30:04 -05:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user