由
TimeIntervalCollection
定义的 Property
,其中
data 属性表示 @link time 的值。
Example:
//Create a Cartesian2 interval property which contains data on August 1st, 2012
//and uses a different value every 6 hours.
const composite = new Cesium.TimeIntervalCollectionProperty();
composite.intervals.addInterval(Cesium.TimeInterval.fromIso8601({
iso8601 : '2012-08-01T00:00:00.00Z/2012-08-01T06:00:00.00Z',
isStartIncluded : true,
isStopIncluded : false,
data : new Cesium.Cartesian2(2.0, 3.4)
}));
composite.intervals.addInterval(Cesium.TimeInterval.fromIso8601({
iso8601 : '2012-08-01T06:00:00.00Z/2012-08-01T12:00:00.00Z',
isStartIncluded : true,
isStopIncluded : false,
data : new Cesium.Cartesian2(12.0, 2.7)
}));
composite.intervals.addInterval(Cesium.TimeInterval.fromIso8601({
iso8601 : '2012-08-01T12:00:00.00Z/2012-08-01T18:00:00.00Z',
isStartIncluded : true,
isStopIncluded : false,
data : new Cesium.Cartesian2(5.0, 12.4)
}));
composite.intervals.addInterval(Cesium.TimeInterval.fromIso8601({
iso8601 : '2012-08-01T18:00:00.00Z/2012-08-02T00:00:00.00Z',
isStartIncluded : true,
isStopIncluded : true,
data : new Cesium.Cartesian2(85.0, 4.1)
}));
Members
readonly definitionChanged : Event
获取此属性的定义发生更改时引发的事件。
每当使用不同的数据调用 setValue 时,定义都会更改
比当前值。
readonly intervals : TimeIntervalCollection
获取 interval 集合。
获取一个值,该值指示此属性是否为 constant。 将属性视为
常量(如果 getValue 始终为当前定义返回相同的结果)。
Methods
将此属性与提供的属性进行比较,并返回
true
,否则为 false
。
Name | Type | Description |
---|---|---|
other |
Property | optional 另一个属性。 |
Returns:
true
如果左和右相等,否则false
。
获取属性在提供的时间的值。
Name | Type | Default | Description |
---|---|---|---|
time |
JulianDate |
JulianDate.now()
|
optional 检索值的时间。如果省略,则使用当前系统时间。 |
result |
object | optional 要将值存储到的对象,如果省略,则创建并返回一个新实例。 |
Returns:
修改后的结果参数或新实例(如果未提供 result 参数)。