Class: CompositeProperty

CompositeProperty

new CompositeProperty()

TimeIntervalCollection定义的Property,其中每个TimeInterval的data属性是在提供的时间计算的另一个Property实例。

See:
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 SuperMap3D.CompositeProperty();
composite.intervals.addInterval(SuperMap3D.TimeInterval.fromIso8601({
    iso8601 : '2012-08-01T00:00:00.00Z/2012-08-01T12:00:00.00Z',
    data : constantProperty
}));
composite.intervals.addInterval(SuperMap3D.TimeInterval.fromIso8601({
    iso8601 : '2012-08-01T12:00:00.00Z/2012-08-02T00:00:00.00Z',
    isStartIncluded : false,
    isStopIncluded : false,
    data : sampledProperty
}));

Members

readonly definitionChangedEvent

获取该属性的定义发生变化时抛出的事件。如果在同一时间调用getValue会返回不同的结果,则认为定义已更改。

readonly definitionChangedEvent

获取该属性的定义发生变化时抛出的事件。如果在同一时间调用getValue会返回不同的结果,则认为定义已更改。

intervalsTimeIntervalCollection

获取时间间隔集合。

readonly isConstantBoolean

获取一个boolean值,表示该属性是否为常量。如果 getValue 在当前定义中总是返回相同的结果,则该属性被视为常量。

readonly isConstantBoolean

获取一个boolean值,表示该属性是否为常量。如果 getValue 在当前定义中总是返回相同的结果,则该属性被视为常量。

Methods

equals(other){Boolean}

将此属性与所提供的属性进行比较,如果相等则返回true ,否则返回false

Name Type Description
other Property 可选

一个属性值。

Returns:
Type Description
Boolean 如果左右相等则为true,否则为false

getValue(time, result){Object}

获取给定时间的属性值

Name Type Description
time JulianDate

取属性值的时间。

result Object 可选

要存储数值的对象,如果省略,则会创建一个新实例并返回。

Returns:
Type Description
Object 修改后的结果参数,或一个新实例(如果未提供结果参数)。