new PolylineGlowMaterialProperty(options)
A type of Material Property. You can map attribute values to the uniform variable of polyline glowMaterial
| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
Object is an object that contains the following properties:
|
Members
-
colorProperty
-
Get or set the Color property of the polyline.
-
readonly definitionChangedEvent
-
Get the event thrown when the property definition changes. If calling getValue returns different results within the same time frame, it is considered that the definition has changed.
-
glowPowerProperty
-
Get or set the number property, specifying the luminous intensity as a percentage of the total line width.
-
readonly isConstantBoolean
-
Get a value indicating whether the attribute is a constant. If getValue always returns the same result in the current definition, then the property is considered a constant.
-
taperPowerProperty
-
Get or set the number property, specifying the strength of the effect, expressed as a percentage of the bus length. If the value is greater than 1.0, it has no effect.
Methods
-
static fromJSON(json){PolylineGlowMaterialProperty}
-
从 JSON 对象反序列化为 PolylineGlowMaterialProperty 实例
Name Type Description jsonobject The serialized JSON object
Returns:
Type Description PolylineGlowMaterialProperty 新的 PolylineGlowMaterialProperty 实例 -
equals(other){Boolean}
-
Compare this attribute with the provided attribute, return true if they are equal, otherwise return false.
Name Type Description otherProperty 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 Material type for the specified time.
Name Type Description timeJulianDate The time for reading the type.
Returns:
Type Description String The type of material. -
getValue(time, result){Object}
-
Retrieve the attribute value for the specified time.
Name Type Description timeJulianDate The time to retrieve the attribute value.
resultObject optional If the object to store attribute 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}
-
序列化 PolylineGlowMaterialProperty 实例为 JSON 对象
Returns:
Type Description object JSON serialized object containing core configuration