/** * Writes the value of a property or element in a sequence. * @param value The value to write. */ public final void writeValue(@Nonnull URI value) { if (value == null) { throw new ArgumentNullException("value"); } writeValue(value.toString()); }
/** * Writes a {@link Bounds} value as an array in LowerBound, UpperBound order. * @param output The stream to which to write the value. * @param value The value to write. */ public static void writeBounds(CesiumOutputStream output, @Nonnull Bounds value) { output.writeStartSequence(); output.writeValue(value.getLowerBound()); output.writeValue(value.getUpperBound()); output.writeEndSequence(); }
/** * Writes the value expressed as a {@code parent}, which is the ID of the parent object, if any. * @param value The value. */ public final void writeParent(String value) { final String PropertyName = ParentPropertyName; getOutput().writePropertyName(PropertyName); getOutput().writeValue(value); }
/** * Writes the value expressed as a {@code cornerType}, which is the property specified as a corner style. * @param value The style of a corner. */ public final void writeCornerType(@Nonnull CesiumCornerType value) { final String PropertyName = CornerTypePropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(CesiumFormattingHelper.cornerTypeToString(value)); }
/** * Writes the value expressed as a {@code horizontalOrigin}, which is the property specified as a horizontal origin. * @param value The horizontal origin. */ public final void writeHorizontalOrigin(@Nonnull CesiumHorizontalOrigin value) { final String PropertyName = HorizontalOriginPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(CesiumFormattingHelper.horizontalOriginToString(value)); }
/** * Writes the amount of time to extrapolate forward before the property becomes undefined. A value of 0 will extrapolate forever. * @param duration The duration. */ public final void writeForwardExtrapolationDuration(@Nonnull Duration duration) { openIntervalIfNecessary(); getOutput().writePropertyName("forwardExtrapolationDuration"); getOutput().writeValue(duration.getTotalSeconds()); }
/** * Writes the value expressed as a {@code stripeOrientation}, which is the property specified as an orientation of stripes in the stripe material. * @param value The orientation. */ public final void writeStripeOrientation(@Nonnull CesiumStripeOrientation value) { final String PropertyName = StripeOrientationPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(CesiumFormattingHelper.stripeOrientationToString(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)); }
/** * Writes the type of extrapolation to perform when a value is requested at a time after any available samples. * @param extrapolationType The extrapolation type. */ public final void writeForwardExtrapolationType(@Nonnull CesiumExtrapolationType extrapolationType) { openIntervalIfNecessary(); getOutput().writePropertyName("forwardExtrapolationType"); getOutput().writeValue(CesiumFormattingHelper.extrapolationTypeToString(extrapolationType)); }
/** * Writes the value expressed as a {@code labelStyle}, which is the property specified as a label style. * @param value The label style. */ public final void writeLabelStyle(@Nonnull CesiumLabelStyle value) { final String PropertyName = LabelStylePropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(CesiumFormattingHelper.labelStyleToString(value)); }
/** * Writes the value expressed as a {@code verticalOrigin}, which is the property specified as a vertical origin. * @param value The vertical origin. */ public final void writeVerticalOrigin(@Nonnull CesiumVerticalOrigin value) { final String PropertyName = VerticalOriginPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(CesiumFormattingHelper.verticalOriginToString(value)); }
/** * Writes the type of extrapolation to perform when a value is requested at a time before any available samples. * @param extrapolationType The extrapolation type. */ public final void writeBackwardExtrapolationType(@Nonnull CesiumExtrapolationType extrapolationType) { openIntervalIfNecessary(); getOutput().writePropertyName("backwardExtrapolationType"); getOutput().writeValue(CesiumFormattingHelper.extrapolationTypeToString(extrapolationType)); }
/** * 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 interpolation algorithm to use to interpolate the sampled data in this interval. * @param interpolationAlgorithm The interpolation algorithm. */ public final void writeInterpolationAlgorithm(@Nonnull CesiumInterpolationAlgorithm interpolationAlgorithm) { openIntervalIfNecessary(); getOutput().writePropertyName("interpolationAlgorithm"); getOutput().writeValue(CesiumFormattingHelper.interpolationAlgorithmToString(interpolationAlgorithm)); }
/** * Writes a {@link TimeInterval} as an ISO 8601 interval string. * @param output The stream to which to write the value. * @param interval The interval to write. */ public static void writeTimeInterval(CesiumOutputStream output, TimeInterval interval) { output.writeValue(CesiumFormattingHelper.toIso8601Interval(interval.getStart(), interval.getStop(), output.getPrettyFormatting() ? Iso8601Format.EXTENDED : Iso8601Format.COMPACT)); }
/** * Writes the value expressed as a {@code string}, which is the property specified as a string. * @param value The value. */ public final void writeString(String value) { final String PropertyName = StringPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(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 number}, which is the property specified as a number. * @param value The value. */ public final void writeNumber(double value) { final String PropertyName = NumberPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(value); }
/** * Writes the degree of polynomial to use to interpolate sampled data in this interval. * @param degree The degree. */ public final void writeInterpolationDegree(int degree) { openIntervalIfNecessary(); getOutput().writePropertyName("interpolationDegree"); getOutput().writeValue(degree); }
/** * Writes the value expressed as a {@code uri}, which is the property specified as a URI. * @param uri The URI of the data. The provided ICesiumUriResolver will be used to build the final URI embedded in the document. * @param resolver An ICesiumUriResolver used to build the final URI that will be embedded in the document. */ public final void writeUri(String uri, ICesiumUriResolver resolver) { final String PropertyName = UriPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(resolver.resolveUri(uri)); }