@JsType(isNative=true, namespace="Cesium", name="Expression") public class Expression extends Object implements StyleExpression
Cesium3DTileset
.
Evaluates an expression defined using the Evaluates a conditions expression defined using the 3D Tiles Styling language.Constructor and Description |
---|
Expression()
An expression for a style applied to a
Cesium3DTileset |
Expression(String expression)
An expression for a style applied to a
Cesium3DTileset |
Expression(String expression,
JsObject defines)
An expression for a style applied to a
Cesium3DTileset |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
expression()
Gets the expression defined in the 3D Tiles Styling language.
|
@JsConstructor public Expression()
Cesium3DTileset
@JsConstructor public Expression(String expression)
Cesium3DTileset
expression
- The expression defined using the 3D Tiles Styling language.@JsConstructor public Expression(String expression, JsObject defines)
Cesium3DTileset
expression
- The expression defined using the 3D Tiles Styling language.defines
- Defines in the style.@JsProperty(name="expression") public String expression()
@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.