@JsType(isNative=true, namespace="Cesium", name="PrimitiveCollection") public class PrimitiveCollection extends Collection<Object>
Modifier and Type | Field and Description |
---|---|
boolean |
destroyPrimitives
Determines if primitives in the collection are destroyed when they are removed by
Collection.destroy() or
Collection.remove(Object) or implicitly by PrimitiveCollection#removeAll. |
boolean |
show
Determines if primitives in this collection will be shown.
|
Constructor and Description |
---|
PrimitiveCollection()
A collection of primitives.
|
PrimitiveCollection(PrimitiveCollectionOptions options)
A collection of primitives.
|
Modifier and Type | Method and Description |
---|---|
void |
lower(Primitive primitive)
Lowers a primitive "down one" in the collection.
|
void |
lowerToBottom(Primitive primitive)
Lowers a primitive to the "bottom" of the collection.
|
void |
raise(Primitive primitive)
Raises a primitive "up one" in the collection.
|
void |
raiseToTop(Primitive primitive)
Raises a primitive to the "top" of the collection.
|
@JsProperty public boolean destroyPrimitives
Collection.destroy()
or
Collection.remove(Object)
or implicitly by PrimitiveCollection#removeAll.
Default: true@JsProperty public boolean show
@JsConstructor public PrimitiveCollection()
Scene.primitives()
, but PrimitiveCollection is also a
primitive itself so collections can be added to collections forming a hierarchy.@JsConstructor public PrimitiveCollection(PrimitiveCollectionOptions options)
Scene.primitives()
, but PrimitiveCollection is also a
primitive itself so collections can be added to collections forming a hierarchy.options
- Options.@JsMethod public void lower(Primitive primitive)
primitive
- The primitive to lower.lowerToBottom(org.cesiumjs.cs.scene.Primitive)
,
raise(org.cesiumjs.cs.scene.Primitive)
,
raiseToTop(org.cesiumjs.cs.scene.Primitive)
@JsMethod public void lowerToBottom(Primitive primitive)
primitive
- The primitive to lower to the bottom.@JsMethod public void raise(Primitive primitive)
primitive
- The primitive to raise.raiseToTop(org.cesiumjs.cs.scene.Primitive)
,
lower(org.cesiumjs.cs.scene.Primitive)
,
lowerToBottom(org.cesiumjs.cs.scene.Primitive)
@JsMethod public void raiseToTop(Primitive primitive)
primitive
- The primitive to raise the top.raise(org.cesiumjs.cs.scene.Primitive)
,
lower(org.cesiumjs.cs.scene.Primitive)
,
lowerToBottom(org.cesiumjs.cs.scene.Primitive)
Copyright © 2019. All rights reserved.