@JsType(isNative=true, namespace="Cesium", name="ConditionsExpression") public class ConditionsExpression extends Object implements StyleExpression
Cesium3DTileset
.
Evaluates a conditions expression defined using the 3D Tiles Styling language.Constructor and Description |
---|
ConditionsExpression()
An expression for a style applied to a
Cesium3DTileset . |
ConditionsExpression(JsObject conditionsExpression)
An expression for a style applied to a
Cesium3DTileset . |
ConditionsExpression(JsObject conditionsExpression,
JsObject defines)
An expression for a style applied to a
Cesium3DTileset . |
Modifier and Type | Method and Description |
---|---|
JsObject |
conditionsExpression()
Gets the conditions expression defined in the 3D Tiles Styling language.
|
Object |
evaluate(Cesium3DTileFeature feature)
Evaluates the result of an expression, optionally using the provided feature's properties.
|
Object |
evaluate(Cesium3DTileFeature feature,
Object result)
Evaluates the result of an expression, optionally using the provided feature's properties.
|
Color |
evaluateColor(Cesium3DTileFeature feature)
Evaluates the result of a Color expression, optionally using the provided feature's properties.
|
Color |
evaluateColor(Cesium3DTileFeature feature,
Color result)
Evaluates the result of a Color expression, optionally using the provided feature's properties.
|
@JsConstructor public ConditionsExpression()
Cesium3DTileset
.@JsConstructor public ConditionsExpression(JsObject conditionsExpression)
Cesium3DTileset
.conditionsExpression
- The conditions expression defined using the 3D Tiles Styling language.@JsConstructor public ConditionsExpression(JsObject conditionsExpression, JsObject defines)
Cesium3DTileset
.conditionsExpression
- The conditions expression defined using the 3D Tiles Styling language.defines
- Defines in the style.@JsProperty(name="conditionsExpression") public JsObject conditionsExpression()
@JsMethod public Object evaluate(Cesium3DTileFeature feature)
feature
- The feature whose properties may be used as variables in the expression.@JsMethod public Object evaluate(Cesium3DTileFeature feature, Object result)
feature
- The feature whose properties may be used as variables in the expression.result
- The object onto which to store the result.@JsMethod public Color evaluateColor(Cesium3DTileFeature feature)
feature
- The feature whose properties may be used as variables in the expression.@JsMethod public Color evaluateColor(Cesium3DTileFeature feature, Color result)
feature
- The feature whose properties may be used as variables in the expression.result
- The object in which to store the result.Copyright © 2019. All rights reserved.