BufferPoint

open external class BufferPoint : BufferPrimitive(source)

View bound to the underlying buffer data of a BufferPointCollection.

BufferPoint instances are flyweights: a single BufferPoint instance can be temporarily bound to any conceptual "point" in a BufferPointCollection, allowing very large collections to be iterated and updated with a minimal memory footprint.

Represented as one (1) position.

See also

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
external object Companion

Properties

Link copied to clipboard
external var featureId: Int

Feature ID associated with the primitive; not required to be unique.

Link copied to clipboard
external var show: Boolean

Whether primitive is shown.

Link copied to clipboard
external val vertexCount: Double

Count of positions (vertices) in this primitive. Always 1.

Functions

Link copied to clipboard
Link copied to clipboard
external fun getPosition(result: Cartesian3? = definedExternally): Cartesian3

Gets the position of this point.

Link copied to clipboard
external fun setMaterial(material: BufferPrimitiveMaterial)
Link copied to clipboard
external fun setPosition(position: Cartesian3)

Sets the position of this point.

Link copied to clipboard
open external override fun toJSON(): JsAny

Returns a JSON-serializable object representing the point. This encoding is not memory-efficient, and should generally be used for debugging and testing.