Skip to content

VolumeLayer

Extends Layer and inherits all public properties and methods.

Implements

  • ChannelsEnabled

Constructor

ts
new VolumeLayer(__namedParameters): VolumeLayer;
ParameterType
__namedParametersVolumeLayerProps

Properties

type overrides

ts
readonly type: "VolumeLayer" = "VolumeLayer";

debugShowDegenerateRays

ts
debugShowDegenerateRays: boolean = false;

relativeStepSize

ts
relativeStepSize: number = 1.0;

opacityMultiplier

ts
opacityMultiplier: number = 1.0;

earlyTerminationAlpha

ts
earlyTerminationAlpha: number = 0.99;

Accessors

debugShowWireframes boolean

ts
get debugShowWireframes(): boolean;
ts
set debugShowWireframes(value): void;
ParameterType
valueboolean

imageSourcePolicy

ts
set imageSourcePolicy(newPolicy): void;
ParameterType
newPolicyImageSourcePolicy

channelProps ChannelProps[] | undefined

ts
get channelProps(): ChannelProps[] | undefined;

Methods

setChannelProps() void

ts
setChannelProps(channelProps): void;
ParameterType
channelPropsChannelProps[]

resetChannelProps() void

ts
resetChannelProps(): void;

addChannelChangeCallback() void

ts
addChannelChangeCallback(callback): void;
ParameterType
callback() => void

removeChannelChangeCallback() void

ts
removeChannelChangeCallback(callback): void;
ParameterType
callback() => void

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

getUniforms() Record<string, unknown> overrides

Get uniforms for shader program. Override in derived classes that need custom uniforms.

ts
getUniforms(): Record<string, unknown>;

Released under the MIT License