PolylineTrailMaterialProperty

new SuperMap3D.PolylineTrailMaterialProperty(options)

尾迹线材质类。
Name Type Description
options Object optional 对象具有如下属性:
Name Type Default Description
color Number Color.WHITE optional 指定线型的填充颜色,默认值为白色。
outlineColor Number Color.BLACK optional 指定轮廓线的颜色,默认值为黑色。
outlineWidth Number 1.0 optional 数值属性,指定轮廓线的宽度,以像素为单位,默认值为1.0。
trailLength Number 0.3 数值属性,设置尾迹线的长度在整条线中占的比例,默认值为0.3。
constantSpeed Number 0.0 数值属性,设置尾迹线的运行速度,单位(米/秒),默认值为0.0。
period Number 1000.0 数值属性,设置尾迹线从起点到终点的运行周期,单位是秒,默认值为1000.0。

Members

color : Number

设置尾迹线的线型颜色。

constantSpeed : Number

设置尾迹线的运行速度,单位(米/秒)。

readonlydefinitionChanged : Event

Gets the event that is raised whenever the definition of this property changes. The definition is considered to have changed if a call to getValue would return a different result for the same time.

readonlyisConstant : Boolean

Gets a value indicating if this property is constant. A property is considered constant if getValue always returns the same result for the current definition.

period : Number

设置尾迹线从起点到终点的运行周期,单位是秒。当constantSpeed属性值为0时,period属性才可生效。

trailLength : Number

设置尾迹线的长度在整条线中占的比例,取值范围为(0.0-1.0)。

Methods

equals(other)Boolean

Compares this property to the provided property and returns true if they are equal, false otherwise.
Name Type Description
other Property optional The other property.
Returns:
true if left and right are equal, false otherwise.

getType(time)String

Gets the Material type at the provided time.
Name Type Description
time JulianDate The time for which to retrieve the type.
Returns:
The type of material.

getValue(time, result)Object

Gets the value of the property at the provided time.
Name Type Description
time JulianDate The time for which to retrieve the value.
result Object optional The object to store the value into, if omitted, a new instance is created and returned.
Returns:
The modified result parameter or a new instance if the result parameter was not supplied.