Class: Quiver3DLayer
Defined in: plot3d/quiver3d.ts:61
A 3D vector field: each arrow is a shaft + a 4-wing arrowhead, drawn as lines.
Implements
Constructors
Constructor
new Quiver3DLayer(gl, opts): Quiver3DLayer;Defined in: plot3d/quiver3d.ts:80
Parameters
| Parameter | Type |
|---|---|
gl | WebGL2RenderingContext |
opts | Quiver3DOptions |
Returns
Quiver3DLayer
Properties
colorCss?
readonly optional colorCss?: string;Defined in: plot3d/quiver3d.ts:64
A solid CSS color for the legend swatch (solid-colored layers only).
Implementation of
id
readonly id: string;Defined in: plot3d/quiver3d.ts:62
Implementation of
name?
readonly optional name?: string;Defined in: plot3d/quiver3d.ts:63
Series name for the legend (optional).
Implementation of
Methods
bounds3()
bounds3(): Bounds3 | null;Defined in: plot3d/quiver3d.ts:178
Returns
Bounds3 | null
Implementation of
colorInfo()
colorInfo(): ColorInfo | null;Defined in: plot3d/quiver3d.ts:180
Colormap + value range for a colorbar, if this layer is colormapped.
Returns
ColorInfo | null
Implementation of
dispose()
dispose(): void;Defined in: plot3d/quiver3d.ts:193
Returns
void
Implementation of
draw()
draw(gl, mvp): void;Defined in: plot3d/quiver3d.ts:184
Parameters
| Parameter | Type |
|---|---|
gl | WebGL2RenderingContext |
mvp | Mat4 |
Returns
void
Implementation of
pickData()
pickData():
| {
positions: Float32Array<ArrayBufferLike>;
}
| null;Defined in: plot3d/quiver3d.ts:182
Data-space points for hover picking (xyz triples), with an optional per-point tooltip label builder. Null if the layer isn't pickable.
Returns
| { positions: Float32Array<ArrayBufferLike>; } | null
Implementation of
setData()
setData(
x,
y,
z,
u,
v,
w): void;Defined in: plot3d/quiver3d.ts:171
Stream a new vector field (arrows rebuilt). Call plot.refresh() after.
Parameters
| Parameter | Type |
|---|---|
x | ArrayLike<number> |
y | ArrayLike<number> |
z | ArrayLike<number> |
u | ArrayLike<number> |
v | ArrayLike<number> |
w | ArrayLike<number> |
Returns
void