Class: PolylineOutlineMaterialProperty

PolylineOutlineMaterialProperty

new PolylineOutlineMaterialProperty(options)

A MaterialProperty that can be mapped to the uniforms variable of Polyline outline Material.

Name Type Description
options Object optional

Object: Objects with the following properties:

Name Type Default Description
color Property Color.WHITE optional

Specify the attribute of Line Color.

outlineColor Property Color.BLACK optional

Specify the attribute of contour Color.

outlineWidth Property 1.0 optional

The number attribute specifies the width of the contour in pixels.

Members

colorProperty

Get or set the property of the specified line Color.

Default Value:
Color.WHITE

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.

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.

outlineColorProperty

Get or set the property of the specified contour Color.

Default Value:
Color.BLACK

outlineWidthProperty

Get or set the numerical property of the specified contour width.

Default Value:
1.0

Methods

static fromJSON(json){PolylineOutlineMaterialProperty}

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

Name Type Description
json object

The serialized JSON object

Returns:
Type Description
PolylineOutlineMaterialProperty 新的 PolylineOutlineMaterialProperty 实例

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 Material type for the specified time.

Name Type Description
time JulianDate

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
time JulianDate

The time to retrieve the attribute value.

result Object 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}

序列化 PolylineOutlineMaterialProperty 实例为 JSON 对象

Returns:
Type Description
object JSON serialized object containing core configuration