@JsType(isNative=true, namespace="Cesium", name="BillboardCollection") public class BillboardCollection extends Collection<Billboard>
Modifier and Type | Field and Description |
---|---|
Number |
blendOption
The billboard blending option.
|
Boolean |
debugShowBoundingVolume
This property is for debugging only; it is not for production use nor is it optimized.
|
Matrix4 |
modelMatrix
The 4x4 transformation matrix that transforms each billboard in this collection from model to world coordinates.
|
Constructor and Description |
---|
BillboardCollection()
A renderable collection of billboards.
|
BillboardCollection(BillboardCollectionOptions options)
A renderable collection of billboards.
|
Modifier and Type | Method and Description |
---|---|
Billboard |
add(BillboardOptions billboard)
Creates and adds a billboard with the specified initial properties to the collection.
|
static BillboardCollection |
create(Scene scene)
|
@JsProperty public Number blendOption
BlendOption.OPAQUE_AND_TRANSLUCENT()
@JsProperty public Boolean debugShowBoundingVolume
@JsProperty public Matrix4 modelMatrix
Matrix4.IDENTITY()
@JsConstructor public BillboardCollection()
add(org.cesiumjs.cs.scene.options.BillboardOptions)
and Collection.remove(T)
.
Billboards in a collection automatically share textures for images with the same identifier.
Performance:
For best performance, prefer a few collections, each with many billboards, to many collections with only a few billboards each.
Organize collections so that billboards with the same update frequency are in the same collection, i.e.,
billboards that do not change should be in one collection; billboards that change every frame should be in another collection; and so on.@JsConstructor public BillboardCollection(BillboardCollectionOptions options)
add(org.cesiumjs.cs.scene.options.BillboardOptions)
and Collection.remove(T)
.
Billboards in a collection automatically share textures for images with the same identifier.
Performance:
For best performance, prefer a few collections, each with many billboards, to many collections with only a few billboards each.
Organize collections so that billboards with the same update frequency are in the same collection, i.e.,
billboards that do not change should be in one collection; billboards that change every frame should be in another collection; and so on.options
- Optionsadd(org.cesiumjs.cs.scene.options.BillboardOptions)
,
Collection.remove(T)
,
Billboard
,
LabelCollection
@JsOverlay public static BillboardCollection create(Scene scene)
scene
- current Scene
BillboardCollection
@JsMethod public Billboard add(BillboardOptions billboard)
billboard
- OptionsCollection.remove(T)
,
Collection.removeAll()
Copyright © 2019. All rights reserved.