Example:
var constantProperty = ...;
var sampledProperty = ...;
//Create a composite property from two previously defined properties
//where the property is valid on August 1st, 2012 and uses a constant
//property for the first half of the day and a sampled property for the
//remaining half.
var composite = new Cesium.CompositeProperty();
composite.intervals.addInterval(Cesium.TimeInterval.fromIso8601({
iso8601 : '2012-08-01T00:00:00.00Z/2012-08-01T12:00:00.00Z',
data : constantProperty
}));
composite.intervals.addInterval(Cesium.TimeInterval.fromIso8601({
iso8601 : '2012-08-01T12:00:00.00Z/2012-08-02T00:00:00.00Z',
isStartIncluded : false,
isStopIncluded : false,
data : sampledProperty
}));
See:
Members
readonly definitionChanged : Event
获取每当此属性的定义更改时引发的事件。
每当使用不同的数据调用setValue时,定义都会更改
大于当前值。
获取间隔集合。
获取一个值,该值指示此属性是否为常量。考虑财产
如果getValue始终为当前定义返回相同的结果,则为常量。
Methods
将此属性与提供的属性进行比较并返回
如果相等,则为
true
,否则为false
。Name | Type | Description |
---|---|---|
other |
Property | optional 其他财产。 |
Returns:
如果左右相等,则为
true
,否则为false
。获取属性在提供的时间的值。
Name | Type | Description |
---|---|---|
time |
JulianDate | 检索值的时间。 |
result |
Object | optional 要将值存储到其中的对象(如果省略),将创建并返回一个新实例。 |
Returns:
修改后的结果参数或新实例(如果未提供结果参数)。