@JsType(isNative=true,
namespace="Cesium",
name="SampledPositionProperty")
public class SampledPositionProperty
extends PositionProperty
| Modifier and Type | Field and Description |
|---|---|
double |
backwardExtrapolationDuration
Gets or sets the amount of time to extrapolate backward before the property becomes undefined.
|
Integer |
backwardExtrapolationType
Gets or sets the type of extrapolation to perform when a value is requested at a time before any available samples.
|
double |
forwardExtrapolationDuration
Gets or sets the amount of time to extrapolate forward before the property becomes undefined.
|
Integer |
forwardExtrapolationType
Gets or sets the type of extrapolation to perform when a value is requested at a time after any available samples.
|
InterpolationAlgorithm |
interpolationAlgorithm
Gets the interpolation algorithm to use when retrieving a value.
|
double |
interpolationDegree
Gets the degree of interpolation to perform when retrieving a value.
|
boolean |
numberOfDerivatives
The number of derivatives contained by this property; i.e. 0 for just position, 1 for velocity, etc.
|
Integer |
referenceFrame
Gets the reference frame in which the position is defined.
|
| Constructor and Description |
|---|
SampledPositionProperty()
A
SampledProperty which is also a PositionProperty. |
SampledPositionProperty(Integer referenceFrame,
int numberOfDerivatives)
A
SampledProperty which is also a PositionProperty. |
| Modifier and Type | Method and Description |
|---|---|
void |
addSample(JulianDate time,
Cartesian3 position)
Adds a new sample
|
void |
addSample(JulianDate time,
Cartesian3 position,
Cartesian3[] derivatives)
Adds a new sample
|
void |
addSamples(JulianDate[] times,
Cartesian3[] positions)
Adds an array of samples
|
void |
addSamples(JulianDate[] times,
Cartesian3[] positions,
Cartesian3[] derivativeValues)
Adds an array of samples
|
void |
addSamplesPackedArray(double[] packedSamples,
JulianDate epoch)
Adds samples as a single packed array where each new sample is represented as a date,
followed by the packed representation of the corresponding value and derivatives.
|
boolean |
removeSample(JulianDate time)
Removes a sample at the given time, if present.
|
void |
removeSamples(TimeInterval time)
Removes all samples for the given time interval.
|
void |
setInterpolationOptions(SampledPropertyInterpolationOptions options)
Sets the algorithm and degree to use when interpolating a value.
|
getValueInReferenceFrame, getValueInReferenceFramedefinitionChanged, equals, getValue, getValue, getValueOrUndefined, isConstant@JsProperty public double backwardExtrapolationDuration
@JsProperty public Integer backwardExtrapolationType
ExtrapolationType.NONE()@JsProperty public double forwardExtrapolationDuration
@JsProperty public Integer forwardExtrapolationType
ExtrapolationType.NONE()@JsProperty public InterpolationAlgorithm interpolationAlgorithm
LinearApproximation@JsProperty public double interpolationDegree
@JsProperty public boolean numberOfDerivatives
public Integer referenceFrame
ReferenceFrame.FIXED()@JsConstructor public SampledPositionProperty()
SampledProperty which is also a PositionProperty.@JsConstructor public SampledPositionProperty(Integer referenceFrame, int numberOfDerivatives)
SampledProperty which is also a PositionProperty.referenceFrame - The reference frame in which the position is defined.numberOfDerivatives - The number of derivatives that accompany each position; i.e. velocity, acceleration, etc...@JsMethod public void addSample(JulianDate time, Cartesian3 position)
time - The sample time.position - The value at the provided time.@JsMethod public void addSample(JulianDate time, Cartesian3 position, Cartesian3[] derivatives)
time - The sample time.position - The value at the provided time.derivatives - The array of derivatives at the provided time.@JsMethod public void addSamples(JulianDate[] times, Cartesian3[] positions)
times - An array of JulianDate instances where each index is a sample time.positions - The array of values, where each value corresponds to the provided times index.@JsMethod public void addSamples(JulianDate[] times, Cartesian3[] positions, Cartesian3[] derivativeValues)
times - An array of JulianDate instances where each index is a sample time.positions - The array of values, where each value corresponds to the provided times index.derivativeValues - An array where each item is the array of derivatives at the equivalent time index.@JsMethod
public void addSamplesPackedArray(double[] packedSamples,
JulianDate epoch)
packedSamples - The array of packed samples.epoch - If any of the dates in packedSamples are numbers, they are considered an offset from this epoch, in seconds.@JsMethod public boolean removeSample(JulianDate time)
time - The sample time.@JsMethod public void removeSamples(TimeInterval time)
time - The time interval for which to remove all samples.@JsMethod public void setInterpolationOptions(SampledPropertyInterpolationOptions options)
options - OptionsCopyright © 2019. All rights reserved.