@JsType(isNative=true,
        namespace="Cesium",
        name="DistanceDisplayConditionGeometryInstanceAttribute")
public class DistanceDisplayConditionGeometryInstanceAttribute
extends Object
| Modifier and Type | Field and Description | 
|---|---|
| com.google.gwt.typedarrays.shared.Float32Array | valueThe values for the attributes stored in a typed array. | 
| Constructor and Description | 
|---|
| DistanceDisplayConditionGeometryInstanceAttribute()Value and type information for per-instance geometry attribute that determines if the
 geometry instance has a distance display condition. | 
| DistanceDisplayConditionGeometryInstanceAttribute(double near)Value and type information for per-instance geometry attribute that determines if the
 geometry instance has a distance display condition. | 
| DistanceDisplayConditionGeometryInstanceAttribute(double near,
                                                 double far)Value and type information for per-instance geometry attribute that determines if the
 geometry instance has a distance display condition. | 
| Modifier and Type | Method and Description | 
|---|---|
| Number | componentDatatype()The datatype of each component in the attribute, e.g.,
 individual elements in DistanceDisplayConditionGeometryInstanceAttribute#value. | 
| int | componentsPerAttribute()The number of components in the attributes, i.e., DistanceDisplayConditionGeometryInstanceAttribute#value. | 
| static DistanceDisplayConditionGeometryInstanceAttribute | fromDistanceDisplayCondition(DistanceDisplayCondition distanceDisplayCondition)Creates a new DistanceDisplayConditionGeometryInstanceAttribute instance given the provided an enabled flag and
 DistanceDisplayCondition. | 
| boolean | normalize()When true and componentDatatype is an integer format, indicate that the components should be
 mapped to the range [0, 1] (unsigned) or [-1, 1] (signed) when they are accessed as floating-point for rendering. | 
| static com.google.gwt.typedarrays.shared.Float32Array | toValue(DistanceDisplayCondition distanceDisplayCondition)Converts a distance display condition to a typed array that can be used to assign a distance display condition attribute. | 
| static com.google.gwt.typedarrays.shared.Float32Array | toValue(DistanceDisplayCondition distanceDisplayCondition,
       com.google.gwt.typedarrays.shared.Float32Array result)Converts a distance display condition to a typed array that can be used to assign a distance display condition attribute. | 
@JsProperty public com.google.gwt.typedarrays.shared.Float32Array value
@JsConstructor public DistanceDisplayConditionGeometryInstanceAttribute()
GeometryInstance, 
GeometryInstanceAttribute@JsConstructor public DistanceDisplayConditionGeometryInstanceAttribute(double near)
near - The near distance.GeometryInstance, 
GeometryInstanceAttribute@JsConstructor
public DistanceDisplayConditionGeometryInstanceAttribute(double near,
                                                                        double far)
near - The near distance.far - The far distance.GeometryInstance, 
Example:
 {@code
 BoxGeometryOptions boxGeometryOptions = new BoxGeometryOptions();
 boxGeometryOptions.vertexFormat = VertexFormat.POSITION_AND_NORMAL();
 boxGeometryOptions.minimum = new Cartesian3(-250000.0, -250000.0, -250000.0);
 boxGeometryOptions.maximum = new Cartesian3(250000.0, 250000.0, 250000.0);
 JsObject attributes = JsObject.create();
 attributes.setProperty("show", new DistanceDisplayConditionGeometryInstanceAttribute(100.0, 10000.0));
 GeometryInstanceOptions instanceOptions = new GeometryInstanceOptions();
 instanceOptions.geometry = new BoxGeometry(boxGeometryOptions);
 instanceOptions.modelMatrix = Matrix4.multiplyByTranslation(Transforms.eastNorthUpToFixedFrame(Cartesian3.fromDegrees(-75.59777, 40.03883)), new Cartesian3(0.0, 0.0, 1000000.0), new Matrix4());
 instanceOptions.id = "box";
 instanceOptions.attributes = attributes;
 GeometryInstance instance = new GeometryInstance(instanceOptions);
 }@JsProperty(name="componentDatatype") public Number componentDatatype()
ComponentDatatype.FLOAT()@JsProperty(name="componentsPerAttribute") public int componentsPerAttribute()
@JsProperty(name="normalize") public boolean normalize()
@JsMethod public static DistanceDisplayConditionGeometryInstanceAttribute fromDistanceDisplayCondition(DistanceDisplayCondition distanceDisplayCondition)
distanceDisplayCondition - The distance display condition.@JsMethod public static com.google.gwt.typedarrays.shared.Float32Array toValue(DistanceDisplayCondition distanceDisplayCondition)
distanceDisplayCondition - The distance display condition value.@JsMethod public static com.google.gwt.typedarrays.shared.Float32Array toValue(DistanceDisplayCondition distanceDisplayCondition, com.google.gwt.typedarrays.shared.Float32Array result)
distanceDisplayCondition - The distance display condition value.result - The array to store the result in, if undefined a new instance will be created.Copyright © 2019. All rights reserved.