Skip to content

copper3d / Modules / Utils/segmentation/CommToolsData / CommToolsData

Class: CommToolsData

Utils/segmentation/CommToolsData.CommToolsData

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new CommToolsData(container, mainAreaContainer)

Parameters

NameType
containerHTMLElement
mainAreaContainerHTMLElement

Defined in

src/Utils/segmentation/CommToolsData.ts:155

Properties

baseCanvasesSize

baseCanvasesSize: number = 1

Defined in

src/Utils/segmentation/CommToolsData.ts:15


cursorPage

cursorPage: ICursorPage

Defined in

src/Utils/segmentation/CommToolsData.ts:81


gui_states

gui_states: IGUIStates

Defined in

src/Utils/segmentation/CommToolsData.ts:102


nrrd_states

nrrd_states: INrrdStates

Defined in

src/Utils/segmentation/CommToolsData.ts:16


protectedData

protectedData: IProtected

Defined in

src/Utils/segmentation/CommToolsData.ts:154

Methods

clearPaint

clearPaint(): void

Rewrite this {clearPaint} function under DrawToolCore

Returns

void

Defined in

src/Utils/segmentation/CommToolsData.ts:226


clearStoreImages

clearStoreImages(): void

Rewrite this {clearStoreImages} function under NrrdTools

Returns

void

Defined in

src/Utils/segmentation/CommToolsData.ts:242


convertCursorPoint

convertCursorPoint(from, to, cursorNumX, cursorNumY, currentSliceIndex): undefined | IConvertObjType

Rewrite this {convertCursorPoint} function under NrrdTools

Parameters

NameType
from"z" | "y" | "x"
to"z" | "y" | "x"
cursorNumXnumber
cursorNumYnumber
currentSliceIndexnumber

Returns

undefined | IConvertObjType

Defined in

src/Utils/segmentation/CommToolsData.ts:309


createEmptyPaintImage

createEmptyPaintImage(dimensions, paintImages): void

Rewrite this {createEmptyPaintImage} function under NrrdTools

Parameters

NameType
dimensionsnumber[]
paintImagesIPaintImages

Returns

void

Defined in

src/Utils/segmentation/CommToolsData.ts:250


filterDrawedImage

filterDrawedImage(axis, sliceIndex, paintedImages): IPaintImage

Get a painted mask image (IPaintImage) based on current axis and input slice index.

Parameters

NameTypeDescription
axis"z" | "y" | "x""x" | "y" | "z"
sliceIndexnumbernumber
paintedImagesIPaintImagesIPaintImages, All painted mask images.

Returns

IPaintImage

Defined in

src/Utils/segmentation/CommToolsData.ts:353


flipDisplayImageByAxis

flipDisplayImageByAxis(): void

Rewrite this {flipDisplayImageByAxis} function under NrrdTools

Returns

void

Defined in

src/Utils/segmentation/CommToolsData.ts:285


generateCanvases

Private generateCanvases(): HTMLCanvasElement[]

Returns

HTMLCanvasElement[]

Defined in

src/Utils/segmentation/CommToolsData.ts:214


redrawDisplayCanvas

redrawDisplayCanvas(): void

Rewrite this {redrawDisplayCanvas} function under NrrdTools

Returns

void

Defined in

src/Utils/segmentation/CommToolsData.ts:339


resetLayerCanvas

resetLayerCanvas(): void

Rewrite this {resetLayerCanvas} function under NrrdTools

Returns

void

Defined in

src/Utils/segmentation/CommToolsData.ts:323


resetPaintAreaUIPosition

resetPaintAreaUIPosition(l?, t?): void

Rewrite this {resetPaintAreaUIPosition} function under NrrdTools

Parameters

NameType
l?number
t?number

Returns

void

Defined in

src/Utils/segmentation/CommToolsData.ts:293


resizePaintArea

resizePaintArea(factor): void

Rewrite this {resizePaintArea} function under NrrdTools

Parameters

NameType
factornumber

Returns

void

Defined in

src/Utils/segmentation/CommToolsData.ts:261


setEmptyCanvasSize

setEmptyCanvasSize(axis?): void

Rewrite this {resetPaintAreaUIPosition} function under NrrdTools

Parameters

NameType
axis?"z" | "y" | "x"

Returns

void

Defined in

src/Utils/segmentation/CommToolsData.ts:301


setIsDrawFalse

setIsDrawFalse(target): void

Rewrite this {setIsDrawFalse} function under NrrdTools

Parameters

NameType
targetnumber

Returns

void

Defined in

src/Utils/segmentation/CommToolsData.ts:269


setSyncsliceNum

setSyncsliceNum(): void

Rewrite this {setSyncsliceNum} function under NrrdTools

Returns

void

Defined in

src/Utils/segmentation/CommToolsData.ts:331


undoLastPainting

undoLastPainting(): void

Rewrite this {undoLastPainting} function under DrawToolCore

Returns

void

Defined in

src/Utils/segmentation/CommToolsData.ts:234


updateOriginAndChangedWH

updateOriginAndChangedWH(): void

Rewrite this {updateOriginAndChangedWH} function under NrrdTools

Returns

void

Defined in

src/Utils/segmentation/CommToolsData.ts:277