Example:
const constantProperty = ...;
const 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.
const 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 | Default | Description |
|---|---|---|---|
time |
JulianDate |
JulianDate.now()
|
optional 要检索值的时间。如果省略,则使用当前系统时间。 |
result |
object | optional 要存储值的对象,如果省略,则创建并返回一个新实例。 |
Returns:
修改后的结果参数,如果未提供结果参数则返回新实例。
