Class

cesium

SampledProperty

Related Doc: package cesium

Permalink

class SampledProperty extends Object with Property

A Property whose value is interpolated for a given time from the provided set of samples and specified interpolation algorithm and degree. alias SampledProperty

- {Number|Packable} type The type of property. - {Packable[]} [derivativeTypes] When supplied, indicates that samples will contain derivative information of the specified types.

Annotations
@RawJSType() @native() @JSName( "Cesium.SampledProperty" )
Examples:
  1. //Create a simple numeric SampledProperty that uses third degree Hermite Polynomial Approximation var property = new Cesium.SampledProperty(Number); property.setInterpolationOptions({ interpolationDegree : 3, interpolationAlgorithm : Cesium.HermitePolynomialApproximation }); //Populate it with data property.addSample(Cesium.JulianDate.fromIso8601(2012-08-01T00:00:00.00Z), 1.0); property.addSample(Cesium.JulianDate.fromIso8601(2012-08-01T00:01:00.00Z), 6.0); property.addSample(Cesium.JulianDate.fromIso8601(2012-08-01T00:02:00.00Z), 12.0); property.addSample(Cesium.JulianDate.fromIso8601(2012-08-01T00:03:30.00Z), 5.0); property.addSample(Cesium.JulianDate.fromIso8601(2012-08-01T00:06:30.00Z), 2.0); //Samples can be added in any order. property.addSample(Cesium.JulianDate.fromIso8601(2012-08-01T00:00:30.00Z), 6.2); //Retrieve an interpolated value var result = property.getValue(Cesium.JulianDate.fromIso8601(2012-08-01T00:02:34.00Z));

  2. ,
  3. //Create a linearly interpolated Cartesian2 var property = new Cesium.SampledProperty(Cesium.Cartesian2); //Populate it with data property.addSample(Cesium.JulianDate.fromIso8601(2012-08-01T00:00:00.00Z), new Cesium.Cartesian2(0, 0)); property.addSample(Cesium.JulianDate.fromIso8601(2012-08-02T00:00:00.00Z), new Cesium.Cartesian2(4, 7)); //Retrieve an interpolated value var result = property.getValue(Cesium.JulianDate.fromIso8601(2012-08-01T12:00:00.00Z));

See also

SampledPositionProperty

Linear Supertypes
Property, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SampledProperty
  2. Property
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SampledProperty(type: |[Dynamic, Packable], derivativeTypes: |[Array[Dynamic], Array[Packable]] = ???)

    Permalink
  2. new SampledProperty()

    Permalink
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addSample(time: JulianDate, value: |[Double, Packable], derivatives: |[Array[Double], Array[Packable]] = ???): Dynamic

    Permalink
  5. def addSamples(times: Array[JulianDate], values: |[Array[Double], Array[Packable]], derivativeValues: Array[Array[Any]] = ???): Dynamic

    Permalink
  6. def addSamplesPackedArray(packedSamples: Array[Double], epoch: JulianDate = ???): Dynamic

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. var backwardExtrapolationDuration: Double

    Permalink
  9. var backwardExtrapolationType: ExtrapolationType

    Permalink
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. var definitionChanged: Event

    Permalink
    Definition Classes
    Property
  12. var derivativeTypes: |[Array[Dynamic], Array[Packable]]

    Permalink
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(other: Property = ???): Boolean

    Permalink
    Definition Classes
    Property
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. var forwardExtrapolationDuration: Double

    Permalink
  18. var forwardExtrapolationType: ExtrapolationType

    Permalink
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def getValue(time: JulianDate, result: Any = ???): Dynamic

    Permalink
    Definition Classes
    Property
  21. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. var interpolationAlgorithm: InterpolationAlgorithm

    Permalink
  24. var interpolationDegree: Double

    Permalink
  25. var isConstant: Boolean

    Permalink
    Definition Classes
    Property
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  32. def setInterpolationOptions(options: InterpolationOptions = ???): Dynamic

    Permalink
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Property

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped