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