-
-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(RCW): Add some methods to the TS header of RCW behavior
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
Sources/Widgets/Widgets3D/ResliceCursorWidget/behavior.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<InteractionMethodsName>; | ||
|
||
setKeepOrthogonality(keepOrthogonality: boolean): boolean; | ||
getKeepOrthogonality(): boolean; | ||
|
||
setCursorStyles(cursorStyles: TCursorStyles): boolean; | ||
getCursorStyles(): TCursorStyles; | ||
|
||
setEnableTranslation(enableTranslation: boolean): void; | ||
setEnableRotation(enableRotation: boolean): void; | ||
|
||
getActiveLineName(): TLineName | undefined; | ||
} |