LabelLayer
Extends Layer and inherits all public properties and methods.
Constructor
ts
new LabelLayer(__namedParameters): LabelLayer;| Parameter | Type |
|---|---|
__namedParameters | LabelLayerProps |
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;| Parameter | Type |
|---|---|
newPolicy | ImageSourcePolicy |
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;| Parameter | Type |
|---|---|
context | IdetikContext |
detach() void overrides
ts
protected detach(_context): void;| Parameter | Type |
|---|---|
_context | IdetikContext |
update() void overrides
ts
update(viewport?): void;| Parameter | Type |
|---|---|
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;| Parameter | Type |
|---|---|
orientation | SliceOrientation |
onEvent() void overrides
ts
onEvent(event): void;| Parameter | Type |
|---|---|
event | EventContext |
setColorMap() void
ts
setColorMap(colorMap): void;| Parameter | Type |
|---|---|
colorMap | LabelColorMapProps |
setSelectedValue() void
ts
setSelectedValue(value): void;| Parameter | Type |
|---|---|
value | number | null |
getValueAtWorld() Promise<number | null>
ts
getValueAtWorld(world): Promise<number | null>;| Parameter | Type |
|---|---|
world | vec3 |