@JsType(isNative=true, namespace="Cesium", name="ClassificationPrimitive") public class ClassificationPrimitive extends Primitive
Modifier and Type | Field and Description |
---|---|
Number |
classificationType
Determines whether terrain, 3D Tiles or both will be classified.
|
boolean |
cull
When true, the renderer frustum culls and horizon culls the primitive's commands based on their bounding volume.
|
boolean |
debugShowBoundingVolume
This property is for debugging only; it is not for production use nor is it optimized.
|
Appearance |
depthFailAppearance
The Appearance used to shade this primitive when it fails the depth test.
|
Matrix4 |
modelMatrix
The 4x4 transformation matrix that transforms the primitive (all geometry instances) from model to world coordinates.
|
Number |
shadows
Determines whether this primitive casts or receives shadows from each light source.
|
boolean |
show
Determines if the primitive will be shown.
|
appearance, geometryInstances
Constructor and Description |
---|
ClassificationPrimitive() |
ClassificationPrimitive(ClassificationPrimitiveOptions options) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowPicking()
When true, each geometry instance will only be pickable with Scene#pick.
|
boolean |
asynchronous()
Determines if the geometry instances will be created and batched on a web worker.
|
boolean |
compressVertices()
When true, geometry vertices are compressed, which will save memory.
|
GeometryInstance[] |
geometryInstances()
The geometry instances rendered with this primitive.
|
boolean |
interleave()
Determines if geometry vertex attributes are interleaved, which can slightly improve rendering performance.
|
boolean |
ready()
Determines if the primitive is complete and ready to render.
|
Promise<Primitive,Void> |
readyPromise()
Gets a promise that resolves when the primitive is ready to render.
|
boolean |
releaseGeometryInstances()
When true, the primitive does not keep a reference to the input geometryInstances to save memory.
|
boolean |
vertexCacheOptimize()
When true, geometry vertices are optimized for the pre and post-vertex-shader caches.
|
destroy, getGeometryInstanceAttributes, isDestroyed, update
@JsProperty public Number classificationType
ClassificationType.BOTH()
@JsProperty public boolean cull
@JsProperty public boolean debugShowBoundingVolume
@JsProperty public Appearance depthFailAppearance
@JsProperty public Matrix4 modelMatrix
Transforms.eastNorthUpToFixedFrame(org.cesiumjs.cs.core.Cartesian3)
.
This property is only supported in 3D mode.
Default: Matrix4.IDENTITY()
@JsProperty public Number shadows
ShadowMode.DISABLED()
@JsProperty public boolean show
@JsConstructor public ClassificationPrimitive()
@JsConstructor public ClassificationPrimitive(ClassificationPrimitiveOptions options)
@JsProperty(name="allowPicking") public boolean allowPicking()
allowPicking
in class Primitive
@JsProperty(name="asynchronous") public boolean asynchronous()
asynchronous
in class Primitive
@JsProperty(name="compressVertices") public boolean compressVertices()
compressVertices
in class Primitive
@JsProperty(name="geometryInstances") public GeometryInstance[] geometryInstances()
@JsProperty(name="interleave") public boolean interleave()
interleave
in class Primitive
@JsProperty(name="ready") public boolean ready()
@JsProperty(name="readyPromise") public Promise<Primitive,Void> readyPromise()
readyPromise
in class Primitive
@JsProperty(name="releaseGeometryInstances") public boolean releaseGeometryInstances()
releaseGeometryInstances
in class Primitive
@JsProperty(name="vertexCacheOptimize") public boolean vertexCacheOptimize()
vertexCacheOptimize
in class Primitive
Copyright © 2019. All rights reserved.