Interface VolumeOverlayPanelParams

Constructor parameters for VolumeOverlayPanel.

interface VolumeOverlayPanelParams {
    container?: HTMLElement;
    grid: VoxelGrid;
    initialAxis?: SliceAxis;
    initialColormap?: string;
    initialIsovalue?: number;
    initialPosition?: number;
    initialSeedDensity?: number;
    initialTechnique?: VolumeTechnique;
    scene: Scene;
    storageKey?: string;
    studio?: Studio;
    vectorGrid?: VectorGrid;
    visible?: boolean;
}

Properties

container?: HTMLElement
grid: VoxelGrid

The scalar voxel field this panel controls. The panel takes a reference to the grid; it doesn't copy the data.

initialAxis?: SliceAxis

Optional starting slice axis. Default "z".

initialColormap?: string

Optional initial colormap name (key of COLORMAPS). Default "viridis".

initialIsovalue?: number

Initial iso-surface value. Default = midpoint of grid.valueRange.

initialPosition?: number

Optional starting slice position. Default = midpoint along axis.

initialSeedDensity?: number

Initial streamline seed density (one axis). Default 8 (≈ 512 streamlines).

initialTechnique?: VolumeTechnique

Initial visualisation technique. Default "slice".

scene: Scene

Scene the overlay SceneModel lives in.

storageKey?: string
studio?: Studio

Optional Studio for routing build / load errors through studio.reportError / reportWarning (so they land in the IssuesPanel alongside other Studio-side failures). When omitted, errors are dropped silently — the panel still stays in a consistent state but the failure isn't surfaced.

vectorGrid?: VectorGrid

Optional vector field over the same volume — when supplied, the "Streamlines" technique becomes available. The vector grid's bbox should match grid.min / grid.max for sensible results.

visible?: boolean