Ejemplo n.º 1
0
 /**
  * Writes the <code>viewFrom</code> property. The <code>viewFrom</code> property specifies a
  * suggested camera location when viewing this object. The property is specified as a Cartesian
  * position in the East (x), North (y), Up (z) reference frame relative to the objects position
  * property.
  *
  * @param dates The dates at which the vector is specified.
  * @param values The values corresponding to each date.
  * @param startIndex The index of the first element to use in the `values` collection.
  * @param length The number of elements to use from the `values` collection.
  */
 public final void writeViewFrom(
     List<JulianDate> dates, List<Cartesian> values, int startIndex, int length) {
   String PropertyName = ViewFromPropertyName;
   getOutput().writePropertyName(PropertyName);
   CesiumWritingHelper.writeCartesian3(
       getOutput(), PropertyName, dates, values, startIndex, length);
 }
Ejemplo n.º 2
0
 /**
  * Writes the <code>viewFrom</code> property. The <code>viewFrom</code> property specifies a
  * suggested camera location when viewing this object. The property is specified as a Cartesian
  * position in the East (x), North (y), Up (z) reference frame relative to the objects position
  * property.
  *
  * @param value The value.
  */
 public final void writeViewFrom(Cartesian value) {
   String PropertyName = ViewFromPropertyName;
   getOutput().writePropertyName(PropertyName);
   CesiumWritingHelper.writeCartesian3(getOutput(), value);
 }
Ejemplo n.º 3
0
 /**
  * Writes the <code>availability</code> property. The <code>availability</code> property specifies
  * when data for an object is available. If data for an object is known to be available at the
  * current animation time, but the client does not yet have that data (presumably because it will
  * arrive in a later packet), the client will pause with a message like "Buffering..." while it
  * waits to receive the data. The property can be a single string specifying a single interval, or
  * an array of strings representing intervals. A later Cesium packet can update this availability
  * if it changes or is found to be incorrect. For example, an SGP4 propagator may report
  * availability for all time, but then later the propagator throws an exception and the
  * availability needs to be adjusted. If this optional property is not present, the object is
  * assumed to be available for all time. Availability is scoped to a particular CZML stream, so
  * two different streams can list different availability for a single object. Within a single
  * stream, the last availability stated for an object is the one in effect and any availabilities
  * in previous packets are ignored. If an object is available at a time, the client expects the
  * object to have at least one property, and it expects all properties that it needs to be defined
  * at that time. If the object doesn't have any properties, or a needed property is defined but
  * not at the animation time, the client will pause animation and wait for more data.
  *
  * @param value The intervals.
  */
 public final void writeAvailability(List<TimeInterval> value) {
   String PropertyName = AvailabilityPropertyName;
   getOutput().writePropertyName(PropertyName);
   CesiumWritingHelper.writeTimeIntervalCollection(getOutput(), value);
 }