@JsType(isNative=true, namespace="Cesium", name="PolylineCollection") public class PolylineCollection extends Collection<Polyline>
Modifier and Type | Field and Description |
---|---|
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 polyline in this collection from model to world coordinates.
|
Constructor and Description |
---|
PolylineCollection()
A renderable collection of polylines.
|
PolylineCollection(PolylineCollectionOptions options)
A renderable collection of polylines.
|
Modifier and Type | Method and Description |
---|---|
Polyline |
add(PolylineOptions polylineOptions)
Creates and adds a polyline with the specified initial properties to the collection.
|
@JsProperty public boolean debugShowBoundingVolume
@JsProperty public Matrix4 modelMatrix
Transforms.eastNorthUpToFixedFrame(org.cesiumjs.cs.core.Cartesian3)
.
Default: Matrix4.IDENTITY()
@JsConstructor public PolylineCollection()
add(org.cesiumjs.cs.scene.options.PolylineOptions)
and Collection.remove(T)
.
Performance:
For best performance, prefer a few collections, each with many polylines, to many collections with only a few
polylines each. Organize collections so that polylines with the same update frequency are in the same collection,
i.e., polylines that do not change should be in one collection; polylines that change every frame should be in
another collection; and so on.@JsConstructor public PolylineCollection(PolylineCollectionOptions options)
add(org.cesiumjs.cs.scene.options.PolylineOptions)
and Collection.remove(T)
.
Performance:
For best performance, prefer a few collections, each with many polylines, to many collections with only a few
polylines each. Organize collections so that polylines with the same update frequency are in the same collection,
i.e., polylines that do not change should be in one collection; polylines that change every frame should be in
another collection; and so on.options
- PolylineCollectionOptions
@JsMethod public Polyline add(PolylineOptions polylineOptions)
Collection.update()
is called and the collection's vertex buffer is rewritten - an O(n)
operation that also incurs CPU to GPU overhead. For best performance, add as many polylines as possible before calling update.polylineOptions
- PolylineOptions
Copyright © 2019. All rights reserved.