@JsType(isNative=true, namespace="<global>", name="Object") public class ClassificationPrimitiveOptions extends Object
ClassificationPrimitive
Modifier and Type | Field and Description |
---|---|
boolean |
allowPicking
When true, each geometry instance will only be pickable with Scene#pick.
|
Appearance |
appearance
The appearance used to render the primitive.
|
boolean |
asynchronous
Determines if the primitive will be created asynchronously or block until ready.
|
Number |
classificationType
Determines whether terrain, 3D Tiles or both will be classified.
|
boolean |
compressVertices
When true, the geometry vertices are compressed, which will save memory.
|
boolean |
cull
When true, the renderer frustum culls and horizon culls the primitive's commands based on their bounding volume.
|
boolean |
debugShowBoundingVolume
For debugging only.
|
GeometryInstance[] |
geometryInstances
The geometry instances - or a single geometry instance - to render.
|
boolean |
interleave
When true, geometry vertex attributes are interleaved, which can slightly improve rendering performance but increases load time.
|
Matrix4 |
modelMatrix
The 4x4 transformation matrix that transforms the primitive (all geometry instances) from model to world coordinates.
|
boolean |
releaseGeometryInstances
When true, the primitive does not keep a reference to the input geometryInstances to save memory.
|
Number |
shadows
Determines whether this primitive casts or receives shadows from each light source
Default:
ShadowMode.DISABLED() |
boolean |
show
Determines if this primitive will be shown.
|
boolean |
vertexCacheOptimize
When true, geometry vertices are optimized for the pre and post-vertex-shader caches.
|
Constructor and Description |
---|
ClassificationPrimitiveOptions()
Options for
ClassificationPrimitive |
@JsProperty public GeometryInstance[] geometryInstances
@JsProperty public Appearance appearance
@JsProperty public boolean show
@JsProperty public Matrix4 modelMatrix
Matrix4.IDENTITY()
@JsProperty public boolean vertexCacheOptimize
@JsProperty public boolean interleave
@JsProperty public boolean compressVertices
@JsProperty public boolean releaseGeometryInstances
@JsProperty public boolean allowPicking
@JsProperty public boolean cull
@JsProperty public boolean asynchronous
public Number classificationType
ClassificationType.BOTH()
@JsProperty public boolean debugShowBoundingVolume
@JsProperty public Number shadows
ShadowMode.DISABLED()
@JsConstructor public ClassificationPrimitiveOptions()
ClassificationPrimitive
Copyright © 2019. All rights reserved.