/** * Writes the value expressed as a {@code currentTime}, which is the current time, specified in ISO8601 format. * @param value The time. */ public final void writeCurrentTime(@Nonnull JulianDate value) { final String PropertyName = CurrentTimePropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); CesiumWritingHelper.writeDate(getOutput(), value); }
/** * Writes the value expressed as a {@code multiplier}, which is the multiplier. When {@code step} is set to {@code TICK_DEPENDENT}, this is the number of seconds to advance each tick. When {@code step} is set to {@code SYSTEM_CLOCK_DEPENDENT}, this is multiplied by the elapsed system time between ticks. This value is ignored in {@code SYSTEM_CLOCK} mode. If not specified, the default value is 1.0. * @param value The value. */ public final void writeMultiplier(double value) { final String PropertyName = MultiplierPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(value); }
/** * Writes the value expressed as a {@code step}, which is how the current time advances each tick. If not specified, the default value is SYSTEM_CLOCK_MULTIPLIER. * @param value The clock step. */ public final void writeStep(@Nonnull ClockStep value) { final String PropertyName = StepPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(CesiumFormattingHelper.clockStepToString(value)); } }
/** * Writes the value expressed as a {@code range}, which is the behavior when the current time reaches its start or end times. If not specified, the default value is LOOP_STOP. * @param value The clock range. */ public final void writeRange(@Nonnull ClockRange value) { final String PropertyName = RangePropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(CesiumFormattingHelper.clockRangeToString(value)); }