/** * Copies this instance and returns the copy. * @return The copy. */ @Override public BillboardCesiumWriter clone() { return new BillboardCesiumWriter(this); }
/** * Opens and returns the writer for the {@code alignedAxis} property. The {@code alignedAxis} property defines the aligned axis is the unit vector, in world coordinates, that the billboard up vector points towards. The default is the zero vector, which means the billboard is aligned to the screen up vector. If not specified, the default value is [0.0, 0.0, 0.0]. */ @Nonnull public final AlignedAxisCesiumWriter openAlignedAxisProperty() { openIntervalIfNecessary(); return this.<AlignedAxisCesiumWriter> openAndReturn(getAlignedAxisWriter()); }
/** * Opens and returns the writer for the {@code color} property. The {@code color} property defines the color of the billboard. This color value is multiplied with the values of the billboard's "image" to produce the final color. If not specified, the default value is white. */ @Nonnull public final ColorCesiumWriter openColorProperty() { openIntervalIfNecessary(); return this.<ColorCesiumWriter> openAndReturn(getColorWriter()); }
/** * Opens and returns the writer for the {@code heightReference} property. The {@code heightReference} property defines the height reference of the billboard, which indicates if the position is relative to terrain or not. If not specified, the default value is NONE. */ @Nonnull public final HeightReferenceCesiumWriter openHeightReferenceProperty() { openIntervalIfNecessary(); return this.<HeightReferenceCesiumWriter> openAndReturn(getHeightReferenceWriter()); }
/** * 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 show} property as a {@code boolean} value. The {@code show} property specifies whether or not the billboard is shown. If not specified, the default value is {@code true}. * @param value The value. */ public final void writeShowProperty(boolean value) { { cesiumlanguagewriter.BooleanCesiumWriter writer = openShowProperty(); try { writer.writeBoolean(value); } finally { DisposeHelper.dispose(writer); } } }
/** * Opens and returns the writer for the {@code distanceDisplayCondition} property. The {@code distanceDisplayCondition} property defines the display condition specifying the distance from the camera at which this billboard will be displayed. */ @Nonnull public final DistanceDisplayConditionCesiumWriter openDistanceDisplayConditionProperty() { openIntervalIfNecessary(); return this.<DistanceDisplayConditionCesiumWriter> openAndReturn(getDistanceDisplayConditionWriter()); }
/** * Opens and returns the writer for the {@code disableDepthTestDistance} property. The {@code disableDepthTestDistance} property defines the distance from the camera at which to disable the depth test. This can be used to prevent clipping against terrain, for example. When set to zero, the depth test is always applied. When set to Infinity, the depth test is never applied. If not specified, the default value is 0.0. */ @Nonnull public final DoubleCesiumWriter openDisableDepthTestDistanceProperty() { openIntervalIfNecessary(); return this.<DoubleCesiumWriter> openAndReturn(getDisableDepthTestDistanceWriter()); }
/** * Opens and returns the writer for the {@code eyeOffset} property. The {@code eyeOffset} property defines the eye offset of the billboard, which is the offset in eye coordinates at which to place the billboard relative to the {@code position} property. Eye coordinates are a left-handed coordinate system where the X-axis points toward the viewer's right, the Y-axis points up, and the Z-axis points into the screen. If not specified, the default value is [0.0, 0.0, 0.0]. */ @Nonnull public final EyeOffsetCesiumWriter openEyeOffsetProperty() { openIntervalIfNecessary(); return this.<EyeOffsetCesiumWriter> openAndReturn(getEyeOffsetWriter()); }
/** * Opens and returns the writer for the {@code height} property. The {@code height} property defines the height of the billboard, in pixels (or meters, if {@code sizeInMeters} is true). By default, the native height of the image is used. */ @Nonnull public final DoubleCesiumWriter openHeightProperty() { openIntervalIfNecessary(); return this.<DoubleCesiumWriter> openAndReturn(getHeightWriter()); }
try { BillboardCesiumWriter interval = billboard.openInterval(); try { NearFarScalarCesiumWriter scaleByDistance = interval.openScaleByDistanceProperty(); try { ArrayList<cesiumlanguagewriter.JulianDate> dates = new ArrayList<cesiumlanguagewriter.JulianDate>();
/** * 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 show} property as a {@code reference} value. The {@code show} property specifies whether or not the billboard is shown. If not specified, the default value is {@code true}. * @param value The reference. */ public final void writeShowPropertyReference(Reference value) { { cesiumlanguagewriter.BooleanCesiumWriter writer = openShowProperty(); 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 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 show} property as a {@code reference} value. The {@code show} property specifies whether or not the billboard is shown. If not specified, the default value is {@code true}. * @param value The earliest date of the interval. */ public final void writeShowPropertyReference(String value) { { cesiumlanguagewriter.BooleanCesiumWriter writer = openShowProperty(); try { writer.writeReference(value); } finally { DisposeHelper.dispose(writer); } } }
public cesiumlanguagewriter.BillboardCesiumWriter invoke() { return new BillboardCesiumWriter(BillboardPropertyName); } }, false);
/** * 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 show} property as a {@code reference} value. The {@code show} property specifies whether or not the billboard is shown. If not specified, the default value is {@code true}. * @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 writeShowPropertyReference(String identifier, String[] propertyNames) { { cesiumlanguagewriter.BooleanCesiumWriter writer = openShowProperty(); try { writer.writeReference(identifier, propertyNames); } finally { DisposeHelper.dispose(writer); } } }
@Override protected CesiumPropertyWriter<BillboardCesiumWriter> createPropertyWriter(String propertyName) { return new BillboardCesiumWriter(propertyName); }
/** * 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); } } }