TimeIntervalCollectionProperty

new Cesium.TimeIntervalCollectionProperty()

TimeIntervalCollection定义的Property 其中每个 TimeInterval 的 data 属性表示时间值。
Example:
//创建一个Cartesian2 interval属性,该属性包含2012年8月1日的数据,每6小时使用一个不同的值。
var 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

获取每当此属性的定义更改时引发的事件。 每当使用不同于当前值的数据调用setValue时,定义都会更改。
获取时间间隔集合。
获取该属性是是否是恒定的。 如果getValue总是返回同样的结果,则认为该属性是恒定的。

Methods

将此属性与提供的属性进行比较。
Name Type Description
other Property optional 其他属性。
Returns:
如果相等。则为 true ,否则为 false

getValue(time, result)Object

根据提供的时间获取属性对象。
Name Type Description
time JulianDate 时间。
result Object optional 存储结果的对象(如果省略)将创建并返回一个新实例。
Returns:
修改后的结果参数;如果未提供结果参数,则为新实例。