T
- The type of value.public class SampledCesiumProperty<T> extends CesiumProperty<T>
CesiumProperty
that specifies a number of time-tagged samples. The samples
are interpolated to find the property value at a given time.Constructor and Description |
---|
SampledCesiumProperty()
Initializes a new instance.
|
SampledCesiumProperty(DateMotionCollection1<T> samples)
Initializes a new instance with the provided
DateMotionCollection1 . |
SampledCesiumProperty(DateMotionCollection1<T> samples,
ArrayList<JulianDate> segmentBoundaryTimes)
Initializes a new instance with the provided
DateMotionCollection1 . |
Modifier and Type | Method and Description |
---|---|
Duration |
getBackwardExtrapolationDuration()
Gets the amount of time to extrapolate backward before the property becomes undefined.
|
CesiumExtrapolationType |
getBackwardExtrapolationType()
Gets the type of extrapolation to perform when a value is requested at a time before any available samples.
|
Duration |
getForwardExtrapolationDuration()
Gets the amount of time to extrapolate forward before the property becomes undefined.
|
CesiumExtrapolationType |
getForwardExtrapolationType()
Gets the type of extrapolation to perform when a value is requested at a time after any available samples.
|
CesiumInterpolationAlgorithm |
getInterpolationAlgorithm()
Gets the algorithm to use for interpolation.
|
Integer |
getInterpolationDegree()
Gets the degree of the polynomial to use for interpolation.
|
DateMotionCollection1<T> |
getSamples()
Gets the samples.
|
ArrayList<JulianDate> |
getSegmentBoundaryTimes()
Gets the list of times representing discontinuities that should not be interpolated over.
|
void |
setBackwardExtrapolationDuration(Duration value)
Sets the amount of time to extrapolate backward before the property becomes undefined.
|
void |
setBackwardExtrapolationType(CesiumExtrapolationType value)
Sets the type of extrapolation to perform when a value is requested at a time before any available samples.
|
void |
setForwardExtrapolationDuration(Duration value)
Sets the amount of time to extrapolate forward before the property becomes undefined.
|
void |
setForwardExtrapolationType(CesiumExtrapolationType value)
Sets the type of extrapolation to perform when a value is requested at a time after any available samples.
|
void |
setInterpolationAlgorithm(CesiumInterpolationAlgorithm value)
Sets the algorithm to use for interpolation.
|
void |
setInterpolationDegree(Integer value)
Sets the degree of the polynomial to use for interpolation.
|
void |
setSamples(DateMotionCollection1<T> value)
Sets the samples.
|
void |
setSegmentBoundaryTimes(ArrayList<JulianDate> value)
Sets the list of times representing discontinuities that should not be interpolated over.
|
static <T> SampledCesiumProperty<T> |
toSampledCesiumProperty(DateMotionCollection1<T> value)
Converts a
DateMotionCollection1 to a SampledCesiumProperty . |
createGenerators, toCesiumProperty, toCesiumProperty, toCesiumProperty
public SampledCesiumProperty()
public SampledCesiumProperty(DateMotionCollection1<T> samples)
DateMotionCollection1
.samples
- The samples.public SampledCesiumProperty(DateMotionCollection1<T> samples, ArrayList<JulianDate> segmentBoundaryTimes)
DateMotionCollection1
.samples
- The samples.segmentBoundaryTimes
- The segment boundary times.public static <T> SampledCesiumProperty<T> toSampledCesiumProperty(DateMotionCollection1<T> value)
DateMotionCollection1
to a SampledCesiumProperty
.value
- The value to convert.SampledCesiumProperty
configured with the given DateMotionCollection1
,
or null
if value
is null
.public final DateMotionCollection1<T> getSamples()
public final void setSamples(DateMotionCollection1<T> value)
public final ArrayList<JulianDate> getSegmentBoundaryTimes()
public final void setSegmentBoundaryTimes(ArrayList<JulianDate> value)
@Nullable public final CesiumInterpolationAlgorithm getInterpolationAlgorithm()
null
indicates that the value will not be specified in the CZML output.public final void setInterpolationAlgorithm(@Nullable CesiumInterpolationAlgorithm value)
null
indicates that the value will not be specified in the CZML output.@Nullable public final Integer getInterpolationDegree()
null
indicates that the value will not be specified in the CZML output.public final void setInterpolationDegree(@Nullable Integer value)
null
indicates that the value will not be specified in the CZML output.@Nullable public final CesiumExtrapolationType getForwardExtrapolationType()
null
indicates that the value will not be specified in the CZML output.public final void setForwardExtrapolationType(@Nullable CesiumExtrapolationType value)
null
indicates that the value will not be specified in the CZML output.@Nullable public final Duration getForwardExtrapolationDuration()
null
indicates that the value will not be specified in the CZML output.public final void setForwardExtrapolationDuration(@Nullable Duration value)
null
indicates that the value will not be specified in the CZML output.@Nullable public final CesiumExtrapolationType getBackwardExtrapolationType()
null
indicates that the value will not be specified in the CZML output.public final void setBackwardExtrapolationType(@Nullable CesiumExtrapolationType value)
null
indicates that the value will not be specified in the CZML output.@Nullable public final Duration getBackwardExtrapolationDuration()
null
indicates that the value will not be specified in the CZML output.public final void setBackwardExtrapolationDuration(@Nullable Duration value)
null
indicates that the value will not be specified in the CZML output.