Skip to content

copper3d / Modules / Utils/segmentation/DragOperator / DragOperator

Class: DragOperator

Utils/segmentation/DragOperator.DragOperator

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DragOperator(container, nrrd_sates, gui_states, protectedData, drawingPrameters, setSyncsliceNum, setIsDrawFalse, flipDisplayImageByAxis, setEmptyCanvasSize, filterDrawedImage)

Parameters

NameType
containerHTMLElement
nrrd_satesINrrdStates
gui_statesIGUIStates
protectedDataIProtected
drawingPrametersIDrawingEvents
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
NameType
axis"z" | "y" | "x"
sliceIndexnumber
paintedImagesIPaintImages
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
NameType
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
NameType
targetnumber
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

NameType
flagboolean

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

NameType
opts?IDragOpts

Returns

void

Defined in

src/Utils/segmentation/DragOperator.ts:104


drawDragSlice

Private drawDragSlice(canvas): void

Parameters

NameType
canvasany

Returns

void

Defined in

src/Utils/segmentation/DragOperator.ts:280


drawMaskToLabelCtx

Private drawMaskToLabelCtx(paintedImages, ctx): void

Parameters

NameType
paintedImagesIPaintImages
ctxCanvasRenderingContext2D

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

NameType
sliceIndexContainerHTMLDivElement

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

NameType
movenumber

Returns

void

Defined in

src/Utils/segmentation/DragOperator.ts:195


updateMainSlice

updateMainSlice(mainPreSlices): void

Parameters

NameType
mainPreSlicesany

Returns

void

Defined in

src/Utils/segmentation/DragOperator.ts:421


updateShowNumDiv

updateShowNumDiv(contrastNum): void

Parameters

NameType
contrastNumnumber

Returns

void

Defined in

src/Utils/segmentation/DragOperator.ts:366