/** * Copies this instance and returns the copy. * @return The copy. */ @Override public NodeTransformationCesiumWriter clone() { return new NodeTransformationCesiumWriter(this); }
/** * Opens and returns the writer for the {@code rotation} property. The {@code rotation} property defines the rotation to apply to the model node. If not specified, the default value is [0.0, 0.0, 0.0, 1.0]. */ @Nonnull public final RotationCesiumWriter openRotationProperty() { openIntervalIfNecessary(); return this.<RotationCesiumWriter> openAndReturn(getRotationWriter()); }
/** * Opens and returns the writer for the {@code scale} property. The {@code scale} property defines the scaling to apply to the model node. If not specified, the default value is [1.0, 1.0, 1.0]. */ @Nonnull public final ScaleCesiumWriter openScaleProperty() { openIntervalIfNecessary(); return this.<ScaleCesiumWriter> openAndReturn(getScaleWriter()); }
/** * Opens and returns the writer for the {@code translation} property. The {@code translation} property defines the translation to apply to the model node. If not specified, the default value is [0.0, 0.0, 0.0]. */ @Nonnull public final TranslationCesiumWriter openTranslationProperty() { openIntervalIfNecessary(); return this.<TranslationCesiumWriter> openAndReturn(getTranslationWriter()); }
nodeTransformationWriter.writeScaleProperty(new Cartesian(1.0, 2.0, 3.0)); nodeTransformationWriter.writeRotationProperty(new UnitQuaternion(1.0, 0.0, 0.0, 0.0)); nodeTransformationWriter.writeTranslationProperty(new Cartesian(4.0, 5.0, 6.0)); } finally { DisposeHelper.dispose(nodeTransformationWriter); nodeTransformationWriter.writeScaleProperty(new Cartesian(4.0, 5.0, 6.0)); nodeTransformationWriter.writeRotationProperty(new UnitQuaternion(0.0, 0.0, 0.0, 1.0)); nodeTransformationWriter.writeTranslationProperty(new Cartesian(7.0, 8.0, 9.0)); } finally { DisposeHelper.dispose(nodeTransformationWriter);
/** * Writes a value for the {@code scale} property as a {@code cartesian} value. The {@code scale} property specifies the scaling to apply to the model node. If not specified, the default value is [1.0, 1.0, 1.0]. * @param value The value. */ public final void writeScaleProperty(@Nonnull Cartesian value) { { cesiumlanguagewriter.ScaleCesiumWriter writer = openScaleProperty(); try { writer.writeCartesian(value); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code translation} property as a {@code cartesian} value. The {@code translation} property specifies the translation to apply to the model node. If not specified, the default value is [0.0, 0.0, 0.0]. * @param value The value. */ public final void writeTranslationProperty(@Nonnull Cartesian value) { { cesiumlanguagewriter.TranslationCesiumWriter writer = openTranslationProperty(); try { writer.writeCartesian(value); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code rotation} property as a {@code unitQuaternion} value. The {@code rotation} property specifies the rotation to apply to the model node. If not specified, the default value is [0.0, 0.0, 0.0, 1.0]. * @param value The value. */ public final void writeRotationProperty(@Nonnull UnitQuaternion value) { { cesiumlanguagewriter.RotationCesiumWriter writer = openRotationProperty(); try { writer.writeUnitQuaternion(value); } finally { DisposeHelper.dispose(writer); } } }
nodeTransformationWriter.writeScaleProperty(Cartesian.getZero()); nodeTransformationWriter.writeRotationProperty(UnitQuaternion.getIdentity()); nodeTransformationWriter.writeTranslationProperty(new Cartesian(3.0, 3.0, 3.0)); } finally { DisposeHelper.dispose(nodeTransformationWriter);
/** * Writes a value for the {@code scale} property as a {@code reference} value. The {@code scale} property specifies the scaling to apply to the model node. If not specified, the default value is [1.0, 1.0, 1.0]. * @param value The earliest date of the interval. */ public final void writeScalePropertyReference(String value) { { cesiumlanguagewriter.ScaleCesiumWriter writer = openScaleProperty(); try { writer.writeReference(value); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code translation} property as a {@code reference} value. The {@code translation} property specifies the translation to apply to the model node. If not specified, the default value is [0.0, 0.0, 0.0]. * @param value The reference. */ public final void writeTranslationPropertyReference(Reference value) { { cesiumlanguagewriter.TranslationCesiumWriter writer = openTranslationProperty(); try { writer.writeReference(value); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code rotation} property as a {@code reference} value. The {@code rotation} property specifies the rotation to apply to the model node. If not specified, the default value is [0.0, 0.0, 0.0, 1.0]. * @param value The reference. */ public final void writeRotationPropertyReference(Reference value) { { cesiumlanguagewriter.RotationCesiumWriter writer = openRotationProperty(); try { writer.writeReference(value); } finally { DisposeHelper.dispose(writer); } } }
nodeTransformationWriter.writeScaleProperty(new Cartesian(1.0, 2.0, 3.0)); nodeTransformationWriter.writeRotationProperty(UnitQuaternion.getIdentity()); nodeTransformationWriter.writeTranslationProperty(new Cartesian(4.0, 5.0, 6.0)); } finally { DisposeHelper.dispose(nodeTransformationWriter); tempCollection$1.add(new Cartesian(10.0, 12.0, 14.0)); ArrayList<cesiumlanguagewriter.Cartesian> values = tempCollection$1; nodeTransformationWriter.writeScaleProperty(dates, values); } finally { DisposeHelper.dispose(nodeTransformationWriter);
/** * Writes a value for the {@code scale} property as a {@code reference} value. The {@code scale} property specifies the scaling to apply to the model node. If not specified, the default value is [1.0, 1.0, 1.0]. * @param value The reference. */ public final void writeScalePropertyReference(Reference value) { { cesiumlanguagewriter.ScaleCesiumWriter writer = openScaleProperty(); try { writer.writeReference(value); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code translation} property as a {@code reference} value. The {@code translation} property specifies the translation to apply to the model node. If not specified, the default value is [0.0, 0.0, 0.0]. * @param value The earliest date of the interval. */ public final void writeTranslationPropertyReference(String value) { { cesiumlanguagewriter.TranslationCesiumWriter writer = openTranslationProperty(); try { writer.writeReference(value); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code rotation} property as a {@code reference} value. The {@code rotation} property specifies the rotation to apply to the model node. If not specified, the default value is [0.0, 0.0, 0.0, 1.0]. * @param value The earliest date of the interval. */ public final void writeRotationPropertyReference(String value) { { cesiumlanguagewriter.RotationCesiumWriter writer = openRotationProperty(); try { writer.writeReference(value); } finally { DisposeHelper.dispose(writer); } } }
/** * Gets a new writer for a {@code NodeTransformation} property. The returned instance must be opened by calling the {@link CesiumElementWriter#open} method before it can be used for writing. A {@code NodeTransformation} property defines transformations to apply to a particular node in a 3D model. */ public final NodeTransformationCesiumWriter getNodeTransformationWriter(String name) { return new NodeTransformationCesiumWriter(name); }
/** * Writes a value for the {@code scale} property as a {@code cartesian} value. The {@code scale} property specifies the scaling to apply to the model node. If not specified, the default value is [1.0, 1.0, 1.0]. * @param dates The dates at which the value is specified. * @param values The values corresponding to each date. */ public final void writeScaleProperty(List<JulianDate> dates, List<Cartesian> values) { { cesiumlanguagewriter.ScaleCesiumWriter writer = openScaleProperty(); try { writer.writeCartesian(dates, values); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code translation} property as a {@code reference} value. The {@code translation} property specifies the translation to apply to the model node. If not specified, the default value is [0.0, 0.0, 0.0]. * @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 writeTranslationPropertyReference(String identifier, String[] propertyNames) { { cesiumlanguagewriter.TranslationCesiumWriter writer = openTranslationProperty(); try { writer.writeReference(identifier, propertyNames); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code rotation} property as a {@code reference} value. The {@code rotation} property specifies the rotation to apply to the model node. If not specified, the default value is [0.0, 0.0, 0.0, 1.0]. * @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 writeRotationPropertyReference(String identifier, String[] propertyNames) { { cesiumlanguagewriter.RotationCesiumWriter writer = openRotationProperty(); try { writer.writeReference(identifier, propertyNames); } finally { DisposeHelper.dispose(writer); } } }