Creates a new BoxBuffer
.
Material to be used for [[Mesh]] of this BoxBuffer
.
Optional renderOrder of this buffer.
Initial number of elements this BoxBuffer
can hold.
Maximum number of elements this BoxBuffer
can hold.
Determine if the mesh is empty.
Get the [[Mesh]] object. The geometry instance of the mesh may change if the buffers are resized. The mesh, once created, will not change, so it can always be added to the scene.
Return the current number of elements the buffer can hold.
Adds a new box to this BoxBuffer
.
Math2D.Box holding screen coordinates for this box.
Math2D.UvBox holding uv coordinates for this box.
Box's color.
Box's opacity.
Box's distance to camera.
Box's picking information.
Returns true
if this BoxBuffer
can hold the specified amount of glyphs. If the buffer
can only add the glyph by increasing the buffer size, the resize() method is called, which
will then create a new geometry for the mesh.
Number of glyphs to be added to the buffer.
true
if the element (box or glyph) can be added to the buffer, false
otherwise.
Check if the buffer is empty. If it is empty, the memory usage is minimized to reduce footprint.
Duplicate this BoxBuffer
with same material and renderOrder.
A clone of this BoxBuffer
.
Dispose of the geometry.
Fill the picking results for the pixel with the given screen coordinate. If multiple boxes are found, the order of the results is unspecified.
Screen coordinate of picking position.
Callback to be called for every picked element.
Image to test if the pixel is transparent
Clear's the BoxBuffer
attribute buffers.
Creates a new {@link @here/harp-datasource-protocol#Geometry} object
from all the attribute data stored in this BoxBuffer
.
Optional number of elements to resize the buffer to.
Optional flag to force a resize even if new size is smaller than before.
Updates a [[BufferGeometry]] object to reflect the changes in this TextBuffer
's attribute
data.
Update the info with the memory footprint caused by objects owned by the BoxBuffer
.
The info object to increment with the values from this BoxBuffer
.
Generated using TypeDoc
Buffer for (untransformed)
Box2
objects. Can be used to create a single geometry for screen- aligned boxes, like POIs.