/** * Writes the value expressed as a {@code cartographicRadians}, which is the position specified in Cartographic WGS84 coordinates, {@code [Longitude, Latitude, Height]}, where Longitude and Latitude are in radians and Height is in meters. * @param dates The dates at which the value is specified. * @param values The values corresponding to each date. */ public final void writeCartographicRadians(List<JulianDate> dates, List<Cartographic> values) { writeCartographicRadians(dates, values, 0, dates.size()); }
/** * Writes a value for the {@code position} property as a {@code cartographicRadians} value. The {@code position} property specifies the position of the object in the world. The position has no direct visual representation, but it is used to locate billboards, labels, and other graphical items attached to the object. * @param value The interval. */ public final void writePositionPropertyCartographicRadians(@Nonnull Cartographic value) { { cesiumlanguagewriter.PositionCesiumWriter writer = openPositionProperty(); try { writer.writeCartographicRadians(value); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code position} property as a {@code cartographicRadians} value. The {@code position} property specifies the position of the object in the world. The position has no direct visual representation, but it is used to locate billboards, labels, and other graphical items attached to the object. * @param dates The dates at which the value is specified. * @param values The position 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 writePositionPropertyCartographicRadians(List<JulianDate> dates, List<Cartographic> values, int startIndex, int length) { { cesiumlanguagewriter.PositionCesiumWriter writer = openPositionProperty(); try { writer.writeCartographicRadians(dates, values, startIndex, length); } finally { DisposeHelper.dispose(writer); } } }
/** * Writes a value for the {@code position} property as a {@code cartographicRadians} value. The {@code position} property specifies the position of the object in the world. The position has no direct visual representation, but it is used to locate billboards, labels, and other graphical items attached to the object. * @param dates The dates at which the value is specified. * @param values The values corresponding to each date. */ public final void writePositionPropertyCartographicRadians(List<JulianDate> dates, List<Cartographic> values) { { cesiumlanguagewriter.PositionCesiumWriter writer = openPositionProperty(); try { writer.writeCartographicRadians(dates, values); } finally { DisposeHelper.dispose(writer); } } }
dates.add(startDate.addSeconds(120.0)); positions.add(new Cartographic(7.0, 8.0, 9.0)); interval.writeCartographicRadians(dates, positions, 1, 1); } finally { DisposeHelper.dispose(interval);
dates.add(startDate.addSeconds(60.0)); positions.add(new Cartographic(4.4, 5.5, 6.6)); interval.writeCartographicRadians(dates, positions); } finally { DisposeHelper.dispose(interval);
@Test public final void cartographicRadiansValueWritesEmptyArrayAndDoesNotWriteEpochWhenGivenAnEmptyCollection() { { final PacketCesiumWriter usingExpression_8 = (getPacket()); try { { PositionCesiumWriter position = getPacket().openPositionProperty(); try { { PositionCesiumWriter interval = position.openInterval(); try { ArrayList<cesiumlanguagewriter.JulianDate> dates = new ArrayList<cesiumlanguagewriter.JulianDate>(); ArrayList<cesiumlanguagewriter.Cartographic> positions = new ArrayList<cesiumlanguagewriter.Cartographic>(); interval.writeCartographicRadians(dates, positions); } finally { DisposeHelper.dispose(interval); } } } finally { DisposeHelper.dispose(position); } } } finally { DisposeHelper.dispose(usingExpression_8); } } Assert.assertEquals("{\"position\":{\"cartographicRadians\":[]}}", getStringWriter().toString()); }
@Test public final void cartographicRadiansValueWritesSingleCartographicRadiansProperty() { { final PacketCesiumWriter usingExpression_2 = (getPacket()); try { { PositionCesiumWriter position = getPacket().openPositionProperty(); try { { PositionCesiumWriter interval = position.openInterval(); try { interval.writeCartographicRadians(new Cartographic(1100.0, 2200.0, 3.0)); } finally { DisposeHelper.dispose(interval); } } } finally { DisposeHelper.dispose(position); } } } finally { DisposeHelper.dispose(usingExpression_2); } } Assert.assertEquals("{\"position\":{\"cartographicRadians\":[1100,2200,3]}}", getStringWriter().toString()); }
interval.writeCartographicRadians(interval2SampleDates, interval2SamplePositions); } finally { DisposeHelper.dispose(interval);