diff --git a/Sources/Widgets/Widgets3D/ResliceCursorWidget/behavior.d.ts b/Sources/Widgets/Widgets3D/ResliceCursorWidget/behavior.d.ts index 36720de7ba8..159c7b01c6a 100644 --- a/Sources/Widgets/Widgets3D/ResliceCursorWidget/behavior.d.ts +++ b/Sources/Widgets/Widgets3D/ResliceCursorWidget/behavior.d.ts @@ -1,4 +1,26 @@ +import { Nullable } from "../../../types"; +import { InteractionMethodsName, lineNames } from "./Constants"; import vtkAbstractWidget from "../../Core/AbstractWidget"; +type TLineName = (typeof lineNames)[number]; + +type TCursorStyles = { + [key in InteractionMethodsName]?: string; +} & { + default?: string +}; + export default interface vtkResliceCursorWidgetDefaultInstance extends vtkAbstractWidget { + getActiveInteraction(): Nullable; + + setKeepOrthogonality(keepOrthogonality: boolean): boolean; + getKeepOrthogonality(): boolean; + + setCursorStyles(cursorStyles: TCursorStyles): boolean; + getCursorStyles(): TCursorStyles; + + setEnableTranslation(enableTranslation: boolean): void; + setEnableRotation(enableRotation: boolean): void; + + getActiveLineName(): TLineName | undefined; }