Appearance
copper3d / Modules / Utils/segmentation/DragOperator / DragOperator
Class: DragOperator
Utils/segmentation/DragOperator.DragOperator
Table of contents
Constructors
Properties
- container
- dragEffectCanvases
- dragPrameters
- drawingPrameters
- filterDrawedImage
- flipDisplayImageByAxis
- gui_states
- nrrd_states
- protectedData
- sensitiveArray
- setEmptyCanvasSize
- setIsDrawFalse
- setSyncsliceNum
- showDragNumberDiv
Methods
- cleanCanvases
- configDragMode
- drag
- drawDragSlice
- drawMaskToLabelCtx
- init
- removeDragMode
- setShowDragNumberDiv
- updateCurrentContrastSlice
- updateIndex
- updateMainSlice
- updateShowNumDiv
Constructors
constructor
• new DragOperator(container
, nrrd_sates
, gui_states
, protectedData
, drawingPrameters
, setSyncsliceNum
, setIsDrawFalse
, flipDisplayImageByAxis
, setEmptyCanvasSize
, filterDrawedImage
)
Parameters
Name | Type |
---|---|
container | HTMLElement |
nrrd_sates | INrrdStates |
gui_states | IGUIStates |
protectedData | IProtected |
drawingPrameters | IDrawingEvents |
setSyncsliceNum | () => void |
setIsDrawFalse | (target : number ) => void |
flipDisplayImageByAxis | () => void |
setEmptyCanvasSize | (axis? : "z" | "y" | "x" ) => void |
filterDrawedImage | (axis : "z" | "y" | "x" , sliceIndex : number , paintedImages : IPaintImages ) => IPaintImage |
Defined in
src/Utils/segmentation/DragOperator.ts:53
Properties
container
• container: HTMLElement
Defined in
src/Utils/segmentation/DragOperator.ts:24
dragEffectCanvases
• Private
dragEffectCanvases: undefined
| IDragEffectCanvases
Defined in
src/Utils/segmentation/DragOperator.ts:41
dragPrameters
• Private
dragPrameters: IDragPrameters
Defined in
src/Utils/segmentation/DragOperator.ts:26
drawingPrameters
• Private
drawingPrameters: IDrawingEvents
Defined in
src/Utils/segmentation/DragOperator.ts:35
filterDrawedImage
• Private
filterDrawedImage: (axis
: "z"
| "y"
| "x"
, sliceIndex
: number
, paintedImages
: IPaintImages
) => IPaintImage
Type declaration
▸ (axis
, sliceIndex
, paintedImages
): IPaintImage
Parameters
Name | Type |
---|---|
axis | "z" | "y" | "x" |
sliceIndex | number |
paintedImages | IPaintImages |
Returns
IPaintImage
Defined in
src/Utils/segmentation/DragOperator.ts:47
flipDisplayImageByAxis
• Private
flipDisplayImageByAxis: () => void
Type declaration
▸ (): void
Returns
void
Defined in
src/Utils/segmentation/DragOperator.ts:45
gui_states
• Private
gui_states: IGUIStates
Defined in
src/Utils/segmentation/DragOperator.ts:39
nrrd_states
• Private
nrrd_states: INrrdStates
Defined in
src/Utils/segmentation/DragOperator.ts:38
protectedData
• Private
protectedData: IProtected
Defined in
src/Utils/segmentation/DragOperator.ts:40
sensitiveArray
• Private
sensitiveArray: number
[] = []
Defined in
src/Utils/segmentation/DragOperator.ts:36
setEmptyCanvasSize
• Private
setEmptyCanvasSize: (axis?
: "z"
| "y"
| "x"
) => void
Type declaration
▸ (axis?
): void
Parameters
Name | Type |
---|---|
axis? | "z" | "y" | "x" |
Returns
void
Defined in
src/Utils/segmentation/DragOperator.ts:46
setIsDrawFalse
• Private
setIsDrawFalse: (target
: number
) => void
Type declaration
▸ (target
): void
Parameters
Name | Type |
---|---|
target | number |
Returns
void
Defined in
src/Utils/segmentation/DragOperator.ts:44
setSyncsliceNum
• Private
setSyncsliceNum: () => void
Type declaration
▸ (): void
Returns
void
Defined in
src/Utils/segmentation/DragOperator.ts:43
showDragNumberDiv
• Private
showDragNumberDiv: HTMLDivElement
Defined in
src/Utils/segmentation/DragOperator.ts:37
Methods
cleanCanvases
▸ Private
cleanCanvases(flag
): void
Parameters
Name | Type |
---|---|
flag | boolean |
Returns
void
Defined in
src/Utils/segmentation/DragOperator.ts:352
configDragMode
▸ configDragMode(): void
Returns
void
Defined in
src/Utils/segmentation/DragOperator.ts:393
drag
▸ drag(opts?
): void
Parameters
Name | Type |
---|---|
opts? | IDragOpts |
Returns
void
Defined in
src/Utils/segmentation/DragOperator.ts:104
drawDragSlice
▸ Private
drawDragSlice(canvas
): void
Parameters
Name | Type |
---|---|
canvas | any |
Returns
void
Defined in
src/Utils/segmentation/DragOperator.ts:280
drawMaskToLabelCtx
▸ Private
drawMaskToLabelCtx(paintedImages
, ctx
): void
Parameters
Name | Type |
---|---|
paintedImages | IPaintImages |
ctx | CanvasRenderingContext2D |
Returns
void
Defined in
src/Utils/segmentation/DragOperator.ts:327
init
▸ Private
init(): void
Returns
void
Defined in
src/Utils/segmentation/DragOperator.ts:85
removeDragMode
▸ removeDragMode(): void
Returns
void
Defined in
src/Utils/segmentation/DragOperator.ts:406
setShowDragNumberDiv
▸ setShowDragNumberDiv(sliceIndexContainer
): void
Parameters
Name | Type |
---|---|
sliceIndexContainer | HTMLDivElement |
Returns
void
Defined in
src/Utils/segmentation/DragOperator.ts:100
updateCurrentContrastSlice
▸ updateCurrentContrastSlice(): any
Returns
any
Defined in
src/Utils/segmentation/DragOperator.ts:387
updateIndex
▸ updateIndex(move
): void
Parameters
Name | Type |
---|---|
move | number |
Returns
void
Defined in
src/Utils/segmentation/DragOperator.ts:195
updateMainSlice
▸ updateMainSlice(mainPreSlices
): void
Parameters
Name | Type |
---|---|
mainPreSlices | any |
Returns
void
Defined in
src/Utils/segmentation/DragOperator.ts:421
updateShowNumDiv
▸ updateShowNumDiv(contrastNum
): void
Parameters
Name | Type |
---|---|
contrastNum | number |
Returns
void