TimeIntervalCollectionProperty

new Cesium.TimeIntervalCollectionProperty()

一个由 TimeIntervalCollection 定义的 Property,其中每个 TimeInterval 的 数据属性表示在该时间的值。
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

获取每当此属性的定义发生变化时触发的事件。 每当以不同于当前值的数据调用setValue时,定义将会发生更改。
获取区间集合。
获取一个值,指示此属性是否是恒定的。如果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:
修改后的结果参数,如果未提供则返回一个新实例。
需要帮助?获得答案的最快方法是来自社区和团队 Cesium Forum.