/** * 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 cartesian2}, which is the pixel offset specified as a two-dimensional Cartesian value {@code [X, Y]}, in viewport coordinates in pixels, where X is pixels to the right and Y is pixels up. * @param x The X component. * @param y The Y component. */ public final void writeCartesian2(double x, double y) { writeCartesian2(new Rectangular(x, y)); }
/** * Writes the end of the JSON object representing the packet. */ @Override protected void onClose() { getOutput().writeEndObject(); }
/** * Writes the value expressed as a {@code nearFarScalar}, which is the value specified as four values {@code [NearDistance, NearValue, FarDistance, FarValue]}, with distances in eye coordinates in meters. * @param nearDistance The lower bound of the camera distance range. * @param nearValue The value to use at the lower bound of the camera distance range. * @param farDistance The upper bound of the camera distance range. * @param farValue The value to use at the upper bound of the camera distance range. */ public final void writeNearFarScalar(double nearDistance, double nearValue, double farDistance, double farValue) { writeNearFarScalar(new NearFarScalar(nearDistance, nearValue, farDistance, farValue)); }
/** * Writes the value expressed as a {@code uri}, which is the URI value. * @param resource A resource object describing external data. */ public final void writeUri(CesiumResource resource) { writeUri(resource.getUri(), resource.getBehavior()); }
/** * Writes the value expressed as a {@code referenceFrame}, which is the reference frame in which cartesian positions are specified. Possible values are "FIXED" and "INERTIAL". If not specified, the default value is FIXED. * @param value The value. */ public final void writeReferenceFrame(String value) { final String PropertyName = ReferenceFramePropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(value); }
/** * Writes the value expressed as a {@code referenceFrame}, which is the reference frame in which cartesian positions are specified. Possible values are "FIXED" and "INERTIAL". If not specified, the default value is FIXED. * @param value The value. */ public final void writeReferenceFrame(String value) { final String PropertyName = ReferenceFramePropertyName; openIntervalIfNecessary(); getOutput().writePropertyName(PropertyName); getOutput().writeValue(value); }
/** * Writes the value expressed as a {@code delete}, which is whether the client should delete all existing data for this object, identified by ID. If true, all other properties in this packet will be ignored. * @param value The value. */ public final void writeDelete(boolean value) { final String PropertyName = DeletePropertyName; getOutput().writePropertyName(PropertyName); getOutput().writeValue(value); }
/** * Writes the start of a JSON sequence representing the interval list. */ @Override protected void onOpen() { getOutput().writeStartSequence(); }
/** * Writes the value expressed as a {@code cartesian2}, which is the property specified as a two-dimensional Cartesian value {@code [X, Y]}. * @param x The X component. * @param y The Y component. */ public final void writeCartesian2(double x, double y) { writeCartesian2(new Rectangular(x, y)); }
/** * Opens and returns a new writer for a {@code NodeTransformation} property. A {@code NodeTransformation} property defines transformations to apply to a particular node in a 3D model. * @param name The name of the new property writer. */ public final NodeTransformationCesiumWriter openNodeTransformationProperty(String name) { openIntervalIfNecessary(); return this.<NodeTransformationCesiumWriter> openAndReturn(new NodeTransformationCesiumWriter(name)); } }
/** * Writes the value expressed as a {@code cartesian2}, which is the number of grid lines along each axis. * @param x The X component. * @param y The Y component. */ public final void writeCartesian2(double x, double y) { writeCartesian2(new Rectangular(x, y)); }
/** * Writes the end of a JSON array representing the interval list. */ @Override protected void onClose() { getOutput().writeEndSequence(); }
/** * Writes the value expressed as a {@code cartesian2}, which is the offset of grid lines along each axis, specified as a percentage from 0 to 1. * @param x The X component. * @param y The Y component. */ public final void writeCartesian2(double x, double y) { writeCartesian2(new Rectangular(x, y)); }
/** * Writes the value expressed as a {@code wsen}, which is the property specified as a Cartographic rectangle {@code [WestLongitude, SouthLatitude, EastLongitude, NorthLatitude]}, with values in radians. * @param west The westernmost longitude. * @param south The southernmost latitude. * @param east The easternmost longitude. * @param north The northernmost latitude. */ public final void writeWsen(double west, double south, double east, double north) { writeWsen(new CartographicExtent(west, south, east, north)); }
/** * Writes the value expressed as a {@code distanceDisplayCondition}, which is the value specified as two values {@code [NearDistance, FarDistance]}, with distances in meters. * @param lowerBound The lower bound. * @param upperBound The upper bound. */ public final void writeDistanceDisplayCondition(double lowerBound, double upperBound) { writeDistanceDisplayCondition(new Bounds(lowerBound, upperBound)); }
/** * 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 west The westernmost longitude. * @param south The southernmost latitude. * @param east The easternmost longitude. * @param north The northernmost latitude. */ public final void writeWsenDegrees(double west, double south, double east, double north) { writeWsenDegrees(new CartographicExtent(west, south, east, north)); }
/** * Writes the value expressed as a {@code wsenDegrees}, which is the set of coordinates specified as Cartographic values {@code [WestLongitude, SouthLatitude, EastLongitude, NorthLatitude]}, with values in degrees. * @param west The westernmost longitude. * @param south The southernmost latitude. * @param east The easternmost longitude. * @param north The northernmost latitude. */ public final void writeWsenDegrees(double west, double south, double east, double north) { writeWsenDegrees(new CartographicExtent(west, south, east, north)); }
/** * 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 version}, which is the CZML version being written. Only valid on the document object. * @param value The value. */ public final void writeVersion(String value) { final String PropertyName = VersionPropertyName; getOutput().writePropertyName(PropertyName); getOutput().writeValue(value); }