Skip to content

Interface: ISliceController ​

Defined in: src/display/interfaces/ISliceController.ts:4

Interface for the slice controller component that handles user interaction

Properties ​

mouseImagePosition ​

ts
readonly mouseImagePosition: 
  | {
  x: number;
  y: number;
}
  | null;

Defined in: src/display/interfaces/ISliceController.ts:8

Current mouse position in image coordinates


mouseVolumeCoordinate ​

ts
readonly mouseVolumeCoordinate: number[] | null;

Defined in: src/display/interfaces/ISliceController.ts:13

Current mouse position in volume coordinates


mouseWorldCoordinate ​

ts
readonly mouseWorldCoordinate: number[] | null;

Defined in: src/display/interfaces/ISliceController.ts:18

Current mouse position in world coordinates

Methods ​

setEnabled() ​

ts
setEnabled(enabled): void;

Defined in: src/display/interfaces/ISliceController.ts:23

Enable or disable the controller

Parameters ​

enabled ​

boolean

Returns ​

void


isEnabled() ​

ts
isEnabled(): boolean;

Defined in: src/display/interfaces/ISliceController.ts:28

Check if the controller is enabled

Returns ​

boolean


dispose() ​

ts
dispose(): void;

Defined in: src/display/interfaces/ISliceController.ts:33

Dispose of the controller and clean up event listeners

Returns ​

void

Released under the MIT License.