Class: PolylineOutlineMaterialProperty

PolylineOutlineMaterialProperty

new PolylineOutlineMaterialProperty(options)

一种MaterialProperty,可以映射到Polyline outline Material 的uniforms变量上。

Name Type Description
options Object 可选

Object 以下属性的对象:

Name Type Default Description
color Property Color.WHITE 可选

指定线条Color的属性。

outlineColor Property Color.BLACK 可选

指定轮廓Color的属性。

outlineWidth Property 1.0 可选

number属性,指定轮廓的宽度,以像素为单位。

Members

colorProperty

获取或设置指定线条Color的属性。

Default Value:
Color.WHITE

readonly definitionChangedEvent

获取当属性定义发生变化时抛出的事件。如果调用 getValue 会返回相同时间内的不同结果,则认为定义发生了变化。

readonly isConstantBoolean

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

outlineColorProperty

获取或设置指定轮廓Color的属性。

Default Value:
Color.BLACK

outlineWidthProperty

获取或设置指定轮廓宽度的数值属性。

Default Value:
1.0

Methods

equals(other){Boolean}

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

Name Type Description
other Property 可选

一个属性值。

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

getType(time){String}

获取指定时间的 Material 类型。

Name Type Description
time JulianDate

读取类型的时间。

Returns:
Type Description
String 材质的类型。

getValue(time, result){Object}

获取指定时间的属性值。

Name Type Description
time JulianDate

取属性值的时间。

result Object 可选

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

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