/** * Writes a value for the {@code scaleByDistance} property as a {@code nearFarScalar} value. The {@code scaleByDistance} property specifies how the billboard's scale should change based on the billboard's distance from the camera. This scalar value will be multiplied by {@code scale}. * @param value The value. */ public final void writeScaleByDistanceProperty(@Nonnull NearFarScalar value) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openScaleByDistanceProperty(); try { writer.writeNearFarScalar(value); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code scaleByDistance} property as a {@code reference} value. The {@code scaleByDistance} property specifies how the billboard's scale should change based on the billboard's distance from the camera. This scalar value will be multiplied by {@code scale}. * @param value The reference. */ public final void writeScaleByDistancePropertyReference(Reference value) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openScaleByDistanceProperty(); try { writer.writeReference(value); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code scaleByDistance} property as a {@code reference} value. The {@code scaleByDistance} property specifies how the billboard's scale should change based on the billboard's distance from the camera. This scalar value will be multiplied by {@code scale}. * @param identifier The identifier of the object which contains the referenced property. * @param propertyName The property on the referenced object. */ public final void writeScaleByDistancePropertyReference(String identifier, String propertyName) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openScaleByDistanceProperty(); try { writer.writeReference(identifier, propertyName); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code scaleByDistance} property as a {@code reference} value. The {@code scaleByDistance} property specifies how the billboard's scale should change based on the billboard's distance from the camera. This scalar value will be multiplied by {@code scale}. * @param value The earliest date of the interval. */ public final void writeScaleByDistancePropertyReference(String value) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openScaleByDistanceProperty(); try { writer.writeReference(value); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code scaleByDistance} property as a {@code nearFarScalar} value. The {@code scaleByDistance} property specifies how the billboard's scale should change based on the billboard's distance from the camera. This scalar value will be multiplied by {@code scale}. * @param dates The dates at which the value is specified. * @param values The values corresponding to each date. */ public final void writeScaleByDistanceProperty(List<JulianDate> dates, List<NearFarScalar> values) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openScaleByDistanceProperty(); try { writer.writeNearFarScalar(dates, values); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code scaleByDistance} property as a {@code reference} value. The {@code scaleByDistance} property specifies how the billboard's scale should change based on the billboard's distance from the camera. This scalar value will be multiplied by {@code scale}. * @param identifier The identifier of the object which contains the referenced property. * @param propertyNames The hierarchy of properties to be indexed on the referenced object. */ public final void writeScaleByDistancePropertyReference(String identifier, String[] propertyNames) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openScaleByDistanceProperty(); try { writer.writeReference(identifier, propertyNames); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code scaleByDistance} property as a {@code nearFarScalar} value. The {@code scaleByDistance} property specifies how the billboard's scale should change based on the billboard's distance from the camera. This scalar value will be multiplied by {@code scale}. * @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 writeScaleByDistanceProperty(double nearDistance, double nearValue, double farDistance, double farValue) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openScaleByDistanceProperty(); try { writer.writeNearFarScalar(nearDistance, nearValue, farDistance, farValue); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code scaleByDistance} property as a {@code nearFarScalar} value. The {@code scaleByDistance} property specifies how the billboard's scale should change based on the billboard's distance from the camera. This scalar value will be multiplied by {@code scale}. * @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 writeScaleByDistanceProperty(List<JulianDate> dates, List<NearFarScalar> values, int startIndex, int length) { { cesiumlanguagewriter.NearFarScalarCesiumWriter writer = openScaleByDistanceProperty(); try { writer.writeNearFarScalar(dates, values, startIndex, length); } finally { DisposeHelper.dispose(writer); } } }
try { NearFarScalarCesiumWriter scaleByDistance = interval.openScaleByDistanceProperty(); try { ArrayList<cesiumlanguagewriter.JulianDate> dates = new ArrayList<cesiumlanguagewriter.JulianDate>();