Skip to content

LabelLayer

Extends Layer and inherits all public properties and methods.

Constructor

ts
new LabelLayer(__namedParameters): LabelLayer;
ParameterType
__namedParametersLabelLayerProps

Properties

type overrides

ts
readonly type: "LabelLayer" = "LabelLayer";

Accessors

orientation SliceOrientation

ts
get orientation(): SliceOrientation;

colorMap LabelColorMap

ts
get colorMap(): LabelColorMap;

sliceCoords SliceCoordinates

ts
get sliceCoords(): SliceCoordinates;

source ChunkSource

ts
get source(): ChunkSource;

imageSourcePolicy Readonly<ImageSourcePolicy>

ts
get imageSourcePolicy(): Readonly<ImageSourcePolicy>;
ts
set imageSourcePolicy(newPolicy): void;
ParameterType
newPolicyImageSourcePolicy

chunkStoreView ChunkStoreView | undefined

ts
get chunkStoreView(): ChunkStoreView | undefined;

lastPresentationTimeCoord number | undefined

ts
get lastPresentationTimeCoord(): number | undefined;

Methods

attach() void overrides

ts
protected attach(context): void;
ParameterType
contextIdetikContext

detach() void overrides

ts
protected detach(_context): void;
ParameterType
_contextIdetikContext

update() void overrides

ts
update(viewport?): void;
ParameterType
viewport?Viewport

setOrientation() void

Changes the slice orientation at runtime. Visible renderables are rebuilt for the new plane, chunks already resident in the shared cache are reused.

ts
setOrientation(orientation): void;
ParameterType
orientationSliceOrientation

onEvent() void overrides

ts
onEvent(event): void;
ParameterType
eventEventContext

setColorMap() void

ts
setColorMap(colorMap): void;
ParameterType
colorMapLabelColorMapProps

setSelectedValue() void

ts
setSelectedValue(value): void;
ParameterType
valuenumber | null

getValueAtWorld() Promise<number | null>

ts
getValueAtWorld(world): Promise<number | null>;
ParameterType
worldvec3

Released under the MIT License