Class: CompositeMaterialProperty

CompositeMaterialProperty

new CompositeMaterialProperty()

A class used to define solid or dynamic color materials for Entity type geometric objects such as polygons and polylines.

This class is a Composite Property property and also a Material Property property.

Members

readonly definitionChangedEvent

Get the event thrown whenever the definition of this property changes. Whenever setValue is called, if the data is different from the current value, the definition will change.

intervalsTimeIntervalCollection

Retrieve the set of time intervals.

readonly isConstantBoolean

Get a boolean value indicating whether the property is a constant. If getValue always returns the same result in the current definition, then the property is considered a constant.

Methods

static fromJSON(json){CompositeMaterialProperty}

从 JSON 对象反序列化为 CompositeMaterialProperty 实例

Name Type Description
json object

The serialized JSON object

Returns:
Type Description
CompositeMaterialProperty 新的 CompositeMaterialProperty 实例

equals(other){Boolean}

Compare this attribute with the provided attribute, return true if they are equal, otherwise return false.

Name Type Description
other Property optional

A property value.

Returns:
Type Description
Boolean If left and right are equal, it is true; otherwise, it is false.

getType(time){String}

Retrieve the specified time Material type. .

Name Type Description
time JulianDate

Value taking time.

Returns:
Type Description
String Material type.

getValue(time, result){Object}

Retrieve the attribute value for the specified time.

Name Type Description
time JulianDate

Time to retrieve attribute values

result Object optional

If the object to store numerical values is omitted, a new instance will be created and returned.

Returns:
Type Description
Object The modified result parameters, or a new instance (if no result parameters are provided).

toJSON(){object}

序列化 CompositeMaterialProperty 实例为 JSON 对象

Returns:
Type Description
object JSON serialized object containing core configuration