StripeMaterialProperty

new Cesium.StripeMaterialProperty(options)

一个映射到条纹 Material uniform 的 MaterialProperty
Name Type Description
options object optional Object with the following properties:
Name Type Default Description
orientation Property | StripeOrientation StripeOrientation.HORIZONTAL optional 指定 StripeOrientation 的 Property。
evenColor Property | Color Color.WHITE optional 指定第一个 Color 的 Property。
oddColor Property | Color Color.BLACK optional 指定第二个 Color 的 Property。
offset Property | number 0 optional 指定图案中材料起始位置的数值型 Property。
repeat Property | number 1 optional 指定条纹重复次数的数值型 Property。

Members

获取每当此属性的定义发生变化时引发的事件。 如果对 getValue 的调用在相同时间下会返回 不同的结果,则认为定义已发生变化。
获取或设置指定第一个 Color 的 Property。
Default Value: Color.WHITE
获取一个指示此属性是否为常量的值。如果 getValue 对当前定义始终返回相同结果, 则认为该属性为常量。
获取或设置指定第二个 Color 的 Property。
Default Value: Color.BLACK
获取或设置指定图案中开始绘制位置的数值型 Property; 其中 0.0 为偶数颜色的起点,1.0 为奇数颜色的起点, 2.0 再次为偶数颜色,任意整数或小数取值 位于它们之间。
Default Value: 0.0
获取或设置指定 StripeOrientation 的 Property/
Default Value: StripeOrientation.HORIZONTAL
获取或设置指定条纹重复次数的数值型 Property。
Default Value: 1.0

Methods

将此属性与提供的属性进行比较,如果它们相等则返回 true,否则返回 false
Name Type Description
other Property optional 另一个 property。
Returns:
true 表示 left 和 right 相等,否则为 false
获取在给定时间处的 Material 类型。
Name Type Description
time JulianDate 检索类型所对应的时间。
Returns:
材质类型。
获取属性在给定时间处的值。
Name Type Default Description
time JulianDate JulianDate.now() optional 检索值所对应的时间。如果省略,则使用当前系统时间。
result object optional 存储值的对象,如果省略,则会创建并返回一个新实例。
Returns:
修改后的 result 参数,如果未提供 result 参数则为新实例。
需要帮助?获取答案的最快方式是在 Cesium 论坛 上向社区和团队提问。