Class: PointCloudLayer
Defined in: plot3d/pointcloud.ts:59
A drawable in the 3D scene. Positions are in world space; Plot3D supplies the MVP.
Implements
Constructors
Constructor
new PointCloudLayer(gl, opts): PointCloudLayer;Defined in: plot3d/pointcloud.ts:78
Parameters
| Parameter | Type |
|---|---|
gl | WebGL2RenderingContext |
opts | PointCloudOptions |
Returns
PointCloudLayer
Properties
colorCss?
readonly optional colorCss?: string;Defined in: plot3d/pointcloud.ts:62
A solid CSS color for the legend swatch (solid-colored layers only).
Implementation of
id
readonly id: string;Defined in: plot3d/pointcloud.ts:60
Implementation of
name?
readonly optional name?: string;Defined in: plot3d/pointcloud.ts:61
Series name for the legend (optional).
Implementation of
Methods
bounds3()
bounds3(): Bounds3 | null;Defined in: plot3d/pointcloud.ts:163
Returns
Bounds3 | null
Implementation of
colorInfo()
colorInfo(): ColorInfo | null;Defined in: plot3d/pointcloud.ts:165
Colormap + value range for a colorbar, if this layer is colormapped.
Returns
ColorInfo | null
Implementation of
dispose()
dispose(): void;Defined in: plot3d/pointcloud.ts:182
Returns
void
Implementation of
draw()
draw(gl, mvp): void;Defined in: plot3d/pointcloud.ts:172
Parameters
| Parameter | Type |
|---|---|
gl | WebGL2RenderingContext |
mvp | Mat4 |
Returns
void
Implementation of
pickData()
pickData():
| {
label: ((i) => string) | undefined;
positions: Float32Array<ArrayBufferLike>;
}
| null;Defined in: plot3d/pointcloud.ts:167
Data-space points for hover picking (xyz triples), with an optional per-point tooltip label builder. Null if the layer isn't pickable.
Returns
| { label: ((i) => string) | undefined; positions: Float32Array<ArrayBufferLike>; } | null
Implementation of
setData()
setData(
x,
y,
z): void;Defined in: plot3d/pointcloud.ts:151
Stream new point positions (same count keeps colors/sizes). Call plot.refresh() after.
Parameters
| Parameter | Type |
|---|---|
x | ArrayLike<number> |
y | ArrayLike<number> |
z | ArrayLike<number> |
Returns
void