Appearance
copper3d / Modules / Utils/segmentation/CommToolsData / CommToolsData
Class: CommToolsData
Utils/segmentation/CommToolsData.CommToolsData
Hierarchy
CommToolsData
Table of contents
Constructors
Properties
Methods
- clearPaint
- clearStoreImages
- convertCursorPoint
- createEmptyPaintImage
- filterDrawedImage
- flipDisplayImageByAxis
- generateCanvases
- redrawDisplayCanvas
- resetLayerCanvas
- resetPaintAreaUIPosition
- resizePaintArea
- setEmptyCanvasSize
- setIsDrawFalse
- setSyncsliceNum
- undoLastPainting
- updateOriginAndChangedWH
Constructors
constructor
• new CommToolsData(container
, mainAreaContainer
)
Parameters
Name | Type |
---|---|
container | HTMLElement |
mainAreaContainer | HTMLElement |
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
Name | Type |
---|---|
from | "z" | "y" | "x" |
to | "z" | "y" | "x" |
cursorNumX | number |
cursorNumY | number |
currentSliceIndex | number |
Returns
undefined
| IConvertObjType
Defined in
src/Utils/segmentation/CommToolsData.ts:309
createEmptyPaintImage
▸ createEmptyPaintImage(dimensions
, paintImages
): void
Rewrite this {createEmptyPaintImage} function under NrrdTools
Parameters
Name | Type |
---|---|
dimensions | number [] |
paintImages | IPaintImages |
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
Name | Type | Description |
---|---|---|
axis | "z" | "y" | "x" | "x" | "y" | "z" |
sliceIndex | number | number |
paintedImages | IPaintImages | IPaintImages, 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
Name | Type |
---|---|
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
Name | Type |
---|---|
factor | number |
Returns
void
Defined in
src/Utils/segmentation/CommToolsData.ts:261
setEmptyCanvasSize
▸ setEmptyCanvasSize(axis?
): void
Rewrite this {resetPaintAreaUIPosition} function under NrrdTools
Parameters
Name | Type |
---|---|
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
Name | Type |
---|---|
target | number |
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