/** * Writes the value expressed as a {@code cartesian}, which is the property specified as a three-dimensional Cartesian value {@code [X, Y, Z]}. * @param value The value. */ public final void writeCartesian(@Nonnull Cartesian value) { final String PropertyName = CartesianPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); CesiumWritingHelper.writeCartesian3(getOutput(), value); }
/** * Writes the value expressed as a {@code unitQuaternion}, which is the property specified as a 4-dimensional unit magnitude quaternion, specified as {@code [X, Y, Z, W]}. * @param value The value. */ public final void writeUnitQuaternion(@Nonnull UnitQuaternion value) { final String PropertyName = UnitQuaternionPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); CesiumWritingHelper.writeUnitQuaternion(getOutput(), value); }
/** * Writes the value expressed as a {@code boundingRectangle}, which is the property specified as {@code [X, Y, Width, Height]}. * @param value The value. */ public final void writeBoundingRectangle(@Nonnull BoundingRectangle value) { final String PropertyName = BoundingRectanglePropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); CesiumWritingHelper.writeBoundingRectangle(getOutput(), value); }
/** * Writes the value expressed as a {@code unitCartesian}, which is the property specified as a three-dimensional unit magnitude Cartesian value {@code [X, Y, Z]}. * @param value The value. */ public final void writeUnitCartesian(@Nonnull UnitCartesian value) { final String PropertyName = UnitCartesianPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); CesiumWritingHelper.writeUnitCartesian3(getOutput(), value); }
/** * Writes the value expressed as a {@code unitSpherical}, which is the property specified as a unit spherical value {@code [Clock, Cone]}. The clock angle is measured in the XY plane from the positive X axis toward the positive Y axis. The cone angle is the angle from the positive Z axis toward the negative Z axis. * @param value The value. */ public final void writeUnitSpherical(@Nonnull UnitSpherical value) { final String PropertyName = UnitSphericalPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); CesiumWritingHelper.writeUnitSpherical(getOutput(), value); }
/** * Writes the value expressed as a {@code cartographicRadians}, which is the property specified in Cartographic WGS84 coordinates, {@code [Longitude, Latitude, Height]}, where Longitude and Latitude are in radians. * @param value The interval. */ public final void writeCartographicRadians(@Nonnull Cartographic value) { final String PropertyName = CartographicRadiansPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); CesiumWritingHelper.writeCartographic(getOutput(), value); }
/** * Writes the value expressed as a {@code cartographicDegrees}, which is the property specified in Cartographic WGS84 coordinates, {@code [Longitude, Latitude, Height]}, where Longitude and Latitude are in degrees. * @param value The interval. */ public final void writeCartographicDegrees(@Nonnull Cartographic value) { final String PropertyName = CartographicDegreesPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); CesiumWritingHelper.writeCartographic(getOutput(), value); }
/** * Writes the value expressed as a {@code rgba}, which is the property specified as an array of color components {@code [Red, Green, Blue, Alpha]} where each component is an integer in the range 0-255. * @param color The color. */ public final void writeRgba(@Nonnull Color color) { final String PropertyName = RgbaPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); CesiumWritingHelper.writeRgba(getOutput(), color); }
/** * Writes the value expressed as a {@code wsenDegrees}, which is the property specified as a Cartographic rectangle {@code [WestLongitude, SouthLatitude, EastLongitude, NorthLatitude]}, with values in degrees. * @param value The value. */ public final void writeWsenDegrees(CartographicExtent value) { final String PropertyName = WsenDegreesPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); CesiumWritingHelper.writeCartographicExtent(getOutput(), 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 value expressed as a {@code uri}, which is the property specified as a URI. * @param image The image. A data URI will be created for this image. * @param imageFormat The image format to use to encode the image in the data URI. */ public final void writeUri(RenderedImage image, @Nonnull CesiumImageFormat imageFormat) { final String PropertyName = UriPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(CesiumFormattingHelper.imageToDataUri(image, imageFormat)); }
/** * Writes the value expressed as a {@code colorBlendMode}, which is the property specified as a color blend mode. * @param value The blend mode. */ public final void writeColorBlendMode(@Nonnull CesiumColorBlendMode value) { final String PropertyName = ColorBlendModePropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(CesiumFormattingHelper.colorBlendModeToString(value)); }
/** * Writes the value expressed as a {@code heightReference}, which is the property specified as a height reference. * @param value The height reference. */ public final void writeHeightReference(@Nonnull CesiumHeightReference value) { final String PropertyName = HeightReferencePropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(CesiumFormattingHelper.heightReferenceToString(value)); }
/** * Writes the value expressed as a {@code shadowMode}, which is the property specified as a shadow mode. * @param value The shadow mode. */ public final void writeShadowMode(@Nonnull CesiumShadowMode value) { final String PropertyName = ShadowModePropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(CesiumFormattingHelper.shadowModeToString(value)); }
/** * Writes the value expressed as a {@code uri}, which is the property specified as a URI. * @param uri The URI of the data. * @param resourceBehavior An enumeration describing how to include the URI in the document. For even more control, use the overload that takes a ICesiumUriResolver. */ public final void writeUri(String uri, @Nonnull CesiumResourceBehavior resourceBehavior) { final String PropertyName = UriPropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(CesiumFormattingHelper.getResourceUri(uri, resourceBehavior)); }
/** * 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 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 value expressed as a {@code unitCartesian}, which is the property specified as a three-dimensional unit magnitude Cartesian value {@code [X, Y, Z]}. * @param dates The dates at which the value is specified. * @param values The values corresponding to each date. * @param startIndex The index of the first element to write. * @param length The number of elements to write. */ public final void writeUnitCartesian(List<JulianDate> dates, List<UnitCartesian> values, int startIndex, int length) { final String PropertyName = UnitCartesianPropertyName; openIntervalIfNecessary(); CesiumWritingHelper.writeUnitCartesian3(getOutput(), PropertyName, dates, values, startIndex, length); }
/** * Writes the value expressed as a {@code wsenDegrees}, which is the property specified as a Cartographic rectangle {@code [WestLongitude, SouthLatitude, EastLongitude, NorthLatitude]}, with values in degrees. * @param dates The dates at which the value is specified. * @param values The values corresponding to each date. * @param startIndex The index of the first element to write. * @param length The number of elements to write. */ public final void writeWsenDegrees(List<JulianDate> dates, List<CartographicExtent> values, int startIndex, int length) { final String PropertyName = WsenDegreesPropertyName; openIntervalIfNecessary(); CesiumWritingHelper.writeCartographicExtent(getOutput(), PropertyName, dates, values, startIndex, length); }
/** * 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)); }