Class: SliceCoordinator
Defined in: src/core/SliceCoordinator.ts:16
Constructors
Constructor
new SliceCoordinator(config?): SliceCoordinator;Defined in: src/core/SliceCoordinator.ts:19
Parameters
config?
Partial<SliceAccessConfig>
Returns
SliceCoordinator
Methods
validateSliceAccess()
validateSliceAccess(
sliceIndex,
axis,
volStack,
include?): SliceAccessResult;Defined in: src/core/SliceCoordinator.ts:35
Validates and normalizes slice access across all volumes in a stack.
Parameters
sliceIndex
number
axis
volStack
include?
(volumeIndex) => boolean
Optional filter. Volumes it rejects do not share the reference slice index (they pick their own plane), so they are passed through unchanged and never clamped, warned about or counted as adjusted.
Returns
getValidSliceRange()
getValidSliceRange(axis, volStack): [number, number];Defined in: src/core/SliceCoordinator.ts:93
Returns the valid slice range that works for all volumes in the stack
Parameters
axis
volStack
Returns
[number, number]
getVolumeDimensions()
getVolumeDimensions(volStack, axis): VolumeSliceDimensions[];Defined in: src/core/SliceCoordinator.ts:111
Gets dimension information for all volumes in the stack
Parameters
volStack
axis
Returns
setConfig()
setConfig(config): void;Defined in: src/core/SliceCoordinator.ts:193
Updates the slice access configuration
Parameters
config
Partial<SliceAccessConfig>
Returns
void
getConfig()
getConfig(): SliceAccessConfig;Defined in: src/core/SliceCoordinator.ts:200
Gets the current configuration
Returns
getSafeSliceIndices()
getSafeSliceIndices(
volStack,
axis,
count?): number[];Defined in: src/core/SliceCoordinator.ts:207
Utility method to get safe slice indices for testing
Parameters
volStack
axis
count?
number = 3
Returns
number[]