dwv 0.33.0-beta.16 → 0.33.0-beta.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dwv.d.ts +401 -37
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/package.json +1 -1
package/dist/dwv.d.ts
CHANGED
|
@@ -70,9 +70,11 @@ export declare class App {
|
|
|
70
70
|
* Get the meta data.
|
|
71
71
|
*
|
|
72
72
|
* @param {string} dataId The data id.
|
|
73
|
-
* @returns {
|
|
73
|
+
* @returns {Object<string, DataElement>|undefined} The list of meta data.
|
|
74
74
|
*/
|
|
75
|
-
getMetaData(dataId: string):
|
|
75
|
+
getMetaData(dataId: string): {
|
|
76
|
+
[x: string]: DataElement;
|
|
77
|
+
} | undefined;
|
|
76
78
|
/**
|
|
77
79
|
* Get the list of ids in the data storage.
|
|
78
80
|
*
|
|
@@ -87,31 +89,34 @@ export declare class App {
|
|
|
87
89
|
*/
|
|
88
90
|
getDataIdsFromSopUids(uids: string[]): string[];
|
|
89
91
|
/**
|
|
90
|
-
* Can the data be scrolled?
|
|
92
|
+
* Can the data (of the active view of the active layer) be scrolled?
|
|
91
93
|
*
|
|
92
94
|
* @returns {boolean} True if the data has a third dimension greater than one.
|
|
95
|
+
* @deprecated Please use the ViewController equivalent directly instead.
|
|
93
96
|
*/
|
|
94
97
|
canScroll(): boolean;
|
|
95
98
|
/**
|
|
96
|
-
* Can window and level be applied to the data
|
|
99
|
+
* Can window and level be applied to the data
|
|
100
|
+
* (of the active view of the active layer)?
|
|
97
101
|
*
|
|
98
102
|
* @returns {boolean} True if the data is monochrome.
|
|
103
|
+
* @deprecated Please use the ViewController equivalent directly instead.
|
|
99
104
|
*/
|
|
100
105
|
canWindowLevel(): boolean;
|
|
101
106
|
/**
|
|
102
|
-
* Get the layer scale on top of the base scale.
|
|
107
|
+
* Get the active layer group scale on top of the base scale.
|
|
103
108
|
*
|
|
104
109
|
* @returns {object} The scale as {x,y}.
|
|
105
110
|
*/
|
|
106
111
|
getAddedScale(): object;
|
|
107
112
|
/**
|
|
108
|
-
* Get the base scale.
|
|
113
|
+
* Get the base scale of the active layer group.
|
|
109
114
|
*
|
|
110
115
|
* @returns {object} The scale as {x,y}.
|
|
111
116
|
*/
|
|
112
117
|
getBaseScale(): object;
|
|
113
118
|
/**
|
|
114
|
-
* Get the layer offset.
|
|
119
|
+
* Get the layer offset of the active layer group.
|
|
115
120
|
*
|
|
116
121
|
* @returns {object} The offset.
|
|
117
122
|
*/
|
|
@@ -299,6 +304,9 @@ export declare class App {
|
|
|
299
304
|
fitToContainer(): void;
|
|
300
305
|
/**
|
|
301
306
|
* Init the Window/Level display
|
|
307
|
+
* (of the active layer of the active layer group).
|
|
308
|
+
*
|
|
309
|
+
* @deprecated Please set the opacity of the desired view layer directly.
|
|
302
310
|
*/
|
|
303
311
|
initWLDisplay(): void;
|
|
304
312
|
/**
|
|
@@ -382,7 +390,7 @@ export declare class App {
|
|
|
382
390
|
*/
|
|
383
391
|
render(dataId: string, viewConfigs?: ViewConfig[]): void;
|
|
384
392
|
/**
|
|
385
|
-
* Zoom
|
|
393
|
+
* Zoom the layers of the active layer group.
|
|
386
394
|
*
|
|
387
395
|
* @param {number} step The step to add to the current zoom.
|
|
388
396
|
* @param {number} cx The zoom center X coordinate.
|
|
@@ -390,20 +398,21 @@ export declare class App {
|
|
|
390
398
|
*/
|
|
391
399
|
zoom(step: number, cx: number, cy: number): void;
|
|
392
400
|
/**
|
|
393
|
-
* Apply a translation to the layers.
|
|
401
|
+
* Apply a translation to the layers of the active layer group.
|
|
394
402
|
*
|
|
395
403
|
* @param {number} tx The translation along X.
|
|
396
404
|
* @param {number} ty The translation along Y.
|
|
397
405
|
*/
|
|
398
406
|
translate(tx: number, ty: number): void;
|
|
399
407
|
/**
|
|
400
|
-
* Set the
|
|
408
|
+
* Set the active view layer (of the active layer group) opacity.
|
|
401
409
|
*
|
|
402
410
|
* @param {number} alpha The opacity ([0:1] range).
|
|
411
|
+
* @deprecated Please set the opacity of the desired view layer directly.
|
|
403
412
|
*/
|
|
404
413
|
setOpacity(alpha: number): void;
|
|
405
414
|
/**
|
|
406
|
-
* Set the drawings
|
|
415
|
+
* Set the drawings of the active layer group.
|
|
407
416
|
*
|
|
408
417
|
* @param {Array} drawings An array of drawings.
|
|
409
418
|
* @param {Array} drawingsDetails An array of drawings details.
|
|
@@ -445,6 +454,7 @@ export declare class App {
|
|
|
445
454
|
* - CRTL-ARROW_UP: next element on third dim
|
|
446
455
|
* - CRTL-ARROW_RIGHT: previous element on fourth dim
|
|
447
456
|
* - CRTL-ARROW_DOWN: previous element on third dim
|
|
457
|
+
* (applies to the active view of the active layer group)
|
|
448
458
|
*
|
|
449
459
|
* @param {KeyboardEvent} event The key down event.
|
|
450
460
|
* @fires UndoStack#undo
|
|
@@ -461,17 +471,19 @@ export declare class App {
|
|
|
461
471
|
*/
|
|
462
472
|
resetZoom(): void;
|
|
463
473
|
/**
|
|
464
|
-
* Set the colour map.
|
|
474
|
+
* Set the colour map of the active view of the active layer group.
|
|
465
475
|
*
|
|
466
476
|
* @param {string} name The colour map name.
|
|
477
|
+
* @deprecated Please use the ViewController equivalent directly instead.
|
|
467
478
|
*/
|
|
468
479
|
setColourMap(name: string): void;
|
|
469
480
|
/**
|
|
470
|
-
* Set the window/level preset.
|
|
481
|
+
* Set the window/level preset of the active view of the active layer group.
|
|
471
482
|
*
|
|
472
|
-
* @param {
|
|
483
|
+
* @param {string} preset The window/level preset.
|
|
484
|
+
* @deprecated Please use the ViewController equivalent directly instead.
|
|
473
485
|
*/
|
|
474
|
-
setWindowLevelPreset(preset:
|
|
486
|
+
setWindowLevelPreset(preset: string): void;
|
|
475
487
|
/**
|
|
476
488
|
* Set the tool
|
|
477
489
|
*
|
|
@@ -626,27 +638,33 @@ export declare class ColourMap {
|
|
|
626
638
|
/**
|
|
627
639
|
* Create an Image from DICOM elements.
|
|
628
640
|
*
|
|
629
|
-
* @param {
|
|
641
|
+
* @param {Object<string, DataElement>} elements The DICOM elements.
|
|
630
642
|
* @returns {Image} The Image object.
|
|
631
643
|
*/
|
|
632
|
-
export declare function createImage(elements:
|
|
644
|
+
export declare function createImage(elements: {
|
|
645
|
+
[x: string]: DataElement;
|
|
646
|
+
}): Image_2;
|
|
633
647
|
|
|
634
648
|
/**
|
|
635
649
|
* Create a mask Image from DICOM elements.
|
|
636
650
|
*
|
|
637
|
-
* @param {
|
|
651
|
+
* @param {Object<string, DataElement>} elements The DICOM elements.
|
|
638
652
|
* @returns {Image} The mask Image object.
|
|
639
653
|
*/
|
|
640
|
-
export declare function createMaskImage(elements:
|
|
654
|
+
export declare function createMaskImage(elements: {
|
|
655
|
+
[x: string]: DataElement;
|
|
656
|
+
}): Image_2;
|
|
641
657
|
|
|
642
658
|
/**
|
|
643
659
|
* Create a View from DICOM elements and image.
|
|
644
660
|
*
|
|
645
|
-
* @param {
|
|
661
|
+
* @param {Object<string, DataElement>} elements The DICOM elements.
|
|
646
662
|
* @param {Image} image The associated image.
|
|
647
663
|
* @returns {View} The View object.
|
|
648
664
|
*/
|
|
649
|
-
export declare function createView(elements:
|
|
665
|
+
export declare function createView(elements: {
|
|
666
|
+
[x: string]: DataElement;
|
|
667
|
+
}, image: Image_2): View;
|
|
650
668
|
|
|
651
669
|
export declare namespace customUI {
|
|
652
670
|
/**
|
|
@@ -716,10 +734,6 @@ export declare class DataElement {
|
|
|
716
734
|
items: any[];
|
|
717
735
|
}
|
|
718
736
|
|
|
719
|
-
declare type DataElements = {
|
|
720
|
-
[x: string]: DataElement;
|
|
721
|
-
};
|
|
722
|
-
|
|
723
737
|
/**
|
|
724
738
|
* Decoder scripts to be passed to web workers for image decoding.
|
|
725
739
|
*/
|
|
@@ -749,6 +763,46 @@ export declare namespace defaults {
|
|
|
749
763
|
};
|
|
750
764
|
}
|
|
751
765
|
|
|
766
|
+
/**
|
|
767
|
+
* DICOM code.
|
|
768
|
+
*/
|
|
769
|
+
export declare class DicomCode {
|
|
770
|
+
/**
|
|
771
|
+
* @param {string} meaning The code meaning.
|
|
772
|
+
*/
|
|
773
|
+
constructor(meaning: string);
|
|
774
|
+
/**
|
|
775
|
+
* Code meaning (0008,0104).
|
|
776
|
+
*
|
|
777
|
+
* @type {string}
|
|
778
|
+
*/
|
|
779
|
+
meaning: string;
|
|
780
|
+
/**
|
|
781
|
+
* Code value (0008,0100).
|
|
782
|
+
*
|
|
783
|
+
* @type {string|undefined}
|
|
784
|
+
*/
|
|
785
|
+
value: string | undefined;
|
|
786
|
+
/**
|
|
787
|
+
* Long code value (0008,0119).
|
|
788
|
+
*
|
|
789
|
+
* @type {string|undefined}
|
|
790
|
+
*/
|
|
791
|
+
longValue: string | undefined;
|
|
792
|
+
/**
|
|
793
|
+
* URN code value (0008,0120).
|
|
794
|
+
*
|
|
795
|
+
* @type {string|undefined}
|
|
796
|
+
*/
|
|
797
|
+
urnValue: string | undefined;
|
|
798
|
+
/**
|
|
799
|
+
* Coding scheme designator (0008,0102).
|
|
800
|
+
*
|
|
801
|
+
* @type {string|undefined}
|
|
802
|
+
*/
|
|
803
|
+
schemeDesignator: string | undefined;
|
|
804
|
+
}
|
|
805
|
+
|
|
752
806
|
/**
|
|
753
807
|
* DicomParser class.
|
|
754
808
|
*
|
|
@@ -1647,8 +1701,15 @@ declare class Image_2 {
|
|
|
1647
1701
|
* Can window and level be applied to the data?
|
|
1648
1702
|
*
|
|
1649
1703
|
* @returns {boolean} True if the data is monochrome.
|
|
1704
|
+
* @deprecated Please use isMonochrome instead.
|
|
1650
1705
|
*/
|
|
1651
1706
|
canWindowLevel(): boolean;
|
|
1707
|
+
/**
|
|
1708
|
+
* Is the data monochrome.
|
|
1709
|
+
*
|
|
1710
|
+
* @returns {boolean} True if the data is monochrome.
|
|
1711
|
+
*/
|
|
1712
|
+
isMonochrome(): boolean;
|
|
1652
1713
|
/**
|
|
1653
1714
|
* Can the data be scrolled?
|
|
1654
1715
|
*
|
|
@@ -2334,13 +2395,184 @@ export declare class MaskFactory {
|
|
|
2334
2395
|
/**
|
|
2335
2396
|
* Get an {@link Image} object from the read DICOM file.
|
|
2336
2397
|
*
|
|
2337
|
-
* @param {
|
|
2398
|
+
* @param {Object<string, DataElement>} dataElements The DICOM tags.
|
|
2338
2399
|
* @param {Uint8Array | Int8Array |
|
|
2339
2400
|
* Uint16Array | Int16Array |
|
|
2340
2401
|
* Uint32Array | Int32Array} pixelBuffer The pixel buffer.
|
|
2341
2402
|
* @returns {Image} A new Image.
|
|
2342
2403
|
*/
|
|
2343
|
-
create(dataElements:
|
|
2404
|
+
create(dataElements: {
|
|
2405
|
+
[x: string]: DataElement;
|
|
2406
|
+
}, pixelBuffer: Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array): Image_2;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
/**
|
|
2410
|
+
* DICOM (mask) segment.
|
|
2411
|
+
*/
|
|
2412
|
+
export declare class MaskSegment {
|
|
2413
|
+
/**
|
|
2414
|
+
* @param {number} number The segment number.
|
|
2415
|
+
* @param {string} label The segment label.
|
|
2416
|
+
* @param {string} algorithmType The segment number.
|
|
2417
|
+
*/
|
|
2418
|
+
constructor(number: number, label: string, algorithmType: string);
|
|
2419
|
+
/**
|
|
2420
|
+
* Segment number (0062,0004).
|
|
2421
|
+
*
|
|
2422
|
+
* @type {number}
|
|
2423
|
+
*/
|
|
2424
|
+
number: number;
|
|
2425
|
+
/**
|
|
2426
|
+
* Segment label (0062,0005).
|
|
2427
|
+
*
|
|
2428
|
+
* @type {string}
|
|
2429
|
+
*/
|
|
2430
|
+
label: string;
|
|
2431
|
+
/**
|
|
2432
|
+
* Segment algorithm type (0062,0008).
|
|
2433
|
+
*
|
|
2434
|
+
* @type {string}
|
|
2435
|
+
*/
|
|
2436
|
+
algorithmType: string;
|
|
2437
|
+
/**
|
|
2438
|
+
* Segment algorithm name (0062,0009).
|
|
2439
|
+
*
|
|
2440
|
+
* @type {string|undefined}
|
|
2441
|
+
*/
|
|
2442
|
+
algorithmName: string | undefined;
|
|
2443
|
+
/**
|
|
2444
|
+
* Segment display value as simple value.
|
|
2445
|
+
*
|
|
2446
|
+
* @type {number|undefined}
|
|
2447
|
+
*/
|
|
2448
|
+
displayValue: number | undefined;
|
|
2449
|
+
/**
|
|
2450
|
+
* Segment display value as RGB colour ({r,g,b}).
|
|
2451
|
+
*
|
|
2452
|
+
* @type {RGB|undefined}
|
|
2453
|
+
*/
|
|
2454
|
+
displayRGBValue: RGB | undefined;
|
|
2455
|
+
/**
|
|
2456
|
+
* Segment property code: specific property
|
|
2457
|
+
* the segment represents (0062,000F).
|
|
2458
|
+
*
|
|
2459
|
+
* @type {DicomCode|undefined}
|
|
2460
|
+
*/
|
|
2461
|
+
propertyTypeCode: DicomCode | undefined;
|
|
2462
|
+
/**
|
|
2463
|
+
* Segment property category code: general category
|
|
2464
|
+
* of the property the segment represents (0062,0003).
|
|
2465
|
+
*
|
|
2466
|
+
* @type {DicomCode|undefined}
|
|
2467
|
+
*/
|
|
2468
|
+
propertyCategoryCode: DicomCode | undefined;
|
|
2469
|
+
/**
|
|
2470
|
+
* Segment tracking UID (0062,0021).
|
|
2471
|
+
*
|
|
2472
|
+
* @type {string|undefined}
|
|
2473
|
+
*/
|
|
2474
|
+
trackingUid: string | undefined;
|
|
2475
|
+
/**
|
|
2476
|
+
* Segment tracking id: text label for the UID (0062,0020).
|
|
2477
|
+
*
|
|
2478
|
+
* @type {string|undefined}
|
|
2479
|
+
*/
|
|
2480
|
+
trackingId: string | undefined;
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
/**
|
|
2484
|
+
* Mask segment helper.
|
|
2485
|
+
*/
|
|
2486
|
+
export declare class MaskSegmentHelper {
|
|
2487
|
+
/**
|
|
2488
|
+
* @param {Image} mask The associated mask image.
|
|
2489
|
+
*/
|
|
2490
|
+
constructor(mask: Image_2);
|
|
2491
|
+
/**
|
|
2492
|
+
* Check if a segment is part of the inner segment list.
|
|
2493
|
+
*
|
|
2494
|
+
* @param {number} segmentNumber The segment number.
|
|
2495
|
+
* @returns {boolean} True if the segment is included.
|
|
2496
|
+
*/
|
|
2497
|
+
hasSegment(segmentNumber: number): boolean;
|
|
2498
|
+
/**
|
|
2499
|
+
* Check if a segment is present in a mask image.
|
|
2500
|
+
*
|
|
2501
|
+
* @param {number[]} numbers Array of segment numbers.
|
|
2502
|
+
* @returns {boolean[]} Array of boolean set to true
|
|
2503
|
+
* if the segment is present in the mask.
|
|
2504
|
+
*/
|
|
2505
|
+
maskHasSegments(numbers: number[]): boolean[];
|
|
2506
|
+
/**
|
|
2507
|
+
* Get a segment from the inner segment list.
|
|
2508
|
+
*
|
|
2509
|
+
* @param {number} segmentNumber The segment number.
|
|
2510
|
+
* @returns {MaskSegment|undefined} The segment.
|
|
2511
|
+
*/
|
|
2512
|
+
getSegment(segmentNumber: number): MaskSegment | undefined;
|
|
2513
|
+
/**
|
|
2514
|
+
* Get the inner segment list.
|
|
2515
|
+
*
|
|
2516
|
+
* @returns {MaskSegment[]} The list of segments.
|
|
2517
|
+
*/
|
|
2518
|
+
getSegments(): MaskSegment[];
|
|
2519
|
+
/**
|
|
2520
|
+
* Set the inner segment list.
|
|
2521
|
+
*
|
|
2522
|
+
* @param {MaskSegment[]} list The segment list.
|
|
2523
|
+
*/
|
|
2524
|
+
setSegments(list: MaskSegment[]): void;
|
|
2525
|
+
/**
|
|
2526
|
+
* Set the hidden segment list.
|
|
2527
|
+
* TODO: not sure if needed...
|
|
2528
|
+
*
|
|
2529
|
+
* @param {number[]} list The list of hidden segment numbers.
|
|
2530
|
+
*/
|
|
2531
|
+
setHiddenSegments(list: number[]): void;
|
|
2532
|
+
/**
|
|
2533
|
+
* Check if a segment is in the hidden list.
|
|
2534
|
+
*
|
|
2535
|
+
* @param {number} segmentNumber The segment number.
|
|
2536
|
+
* @returns {boolean} True if the segment is in the list.
|
|
2537
|
+
*/
|
|
2538
|
+
isHidden(segmentNumber: number): boolean;
|
|
2539
|
+
/**
|
|
2540
|
+
* Add a segment to the hidden list.
|
|
2541
|
+
*
|
|
2542
|
+
* @param {number} segmentNumber The segment number.
|
|
2543
|
+
*/
|
|
2544
|
+
addToHidden(segmentNumber: number): void;
|
|
2545
|
+
/**
|
|
2546
|
+
* Remove a segment from the hidden list.
|
|
2547
|
+
*
|
|
2548
|
+
* @param {number} segmentNumber The segment number.
|
|
2549
|
+
*/
|
|
2550
|
+
removeFromHidden(segmentNumber: number): void;
|
|
2551
|
+
/**
|
|
2552
|
+
* @callback alphaFn@callback alphaFn
|
|
2553
|
+
* @param {object} value The pixel value.
|
|
2554
|
+
* @param {object} index The values' index.
|
|
2555
|
+
* @returns {number} The value to display.
|
|
2556
|
+
*/
|
|
2557
|
+
/**
|
|
2558
|
+
* Get the alpha function to apply hidden colors.
|
|
2559
|
+
*
|
|
2560
|
+
* @returns {alphaFn} The corresponding alpha function.
|
|
2561
|
+
*/
|
|
2562
|
+
getAlphaFunc(): (value: object, index: object) => number;
|
|
2563
|
+
/**
|
|
2564
|
+
* @callback eventFn@callback eventFn
|
|
2565
|
+
* @param {object} event The event.
|
|
2566
|
+
*/
|
|
2567
|
+
/**
|
|
2568
|
+
* Delete a segment.
|
|
2569
|
+
*
|
|
2570
|
+
* @param {number} segmentNumber The segment number.
|
|
2571
|
+
* @param {eventFn} cmdCallback The command event callback.
|
|
2572
|
+
* @param {Function} exeCallback The post execution callback.
|
|
2573
|
+
*/
|
|
2574
|
+
deleteSegment(segmentNumber: number, cmdCallback: (event: object) => any, exeCallback: Function): void;
|
|
2575
|
+
#private;
|
|
2344
2576
|
}
|
|
2345
2577
|
|
|
2346
2578
|
/**
|
|
@@ -2504,6 +2736,101 @@ export declare class OverlayData {
|
|
|
2504
2736
|
#private;
|
|
2505
2737
|
}
|
|
2506
2738
|
|
|
2739
|
+
/**
|
|
2740
|
+
* Plane geometry helper.
|
|
2741
|
+
*/
|
|
2742
|
+
export declare class PlaneHelper {
|
|
2743
|
+
/**
|
|
2744
|
+
* @param {Spacing} spacing The spacing.
|
|
2745
|
+
* @param {Matrix33} imageOrientation The image oientation.
|
|
2746
|
+
* @param {Matrix33} viewOrientation The view orientation.
|
|
2747
|
+
*/
|
|
2748
|
+
constructor(spacing: Spacing, imageOrientation: Matrix33, viewOrientation: Matrix33);
|
|
2749
|
+
/**
|
|
2750
|
+
* Get a 3D offset from a plane one.
|
|
2751
|
+
*
|
|
2752
|
+
* @param {object} offset2D The plane offset as {x,y}.
|
|
2753
|
+
* @returns {Vector3D} The 3D world offset.
|
|
2754
|
+
*/
|
|
2755
|
+
getOffset3DFromPlaneOffset(offset2D: object): Vector3D;
|
|
2756
|
+
/**
|
|
2757
|
+
* Get a plane offset from a 3D one.
|
|
2758
|
+
*
|
|
2759
|
+
* @param {object} offset3D The 3D offset as {x,y,z}.
|
|
2760
|
+
* @returns {object} The plane offset as {x,y}.
|
|
2761
|
+
*/
|
|
2762
|
+
getPlaneOffsetFromOffset3D(offset3D: object): object;
|
|
2763
|
+
/**
|
|
2764
|
+
* Orient an input vector from real to target space.
|
|
2765
|
+
*
|
|
2766
|
+
* @param {Vector3D} vector The input vector.
|
|
2767
|
+
* @returns {Vector3D} The oriented vector.
|
|
2768
|
+
*/
|
|
2769
|
+
getTargetOrientedVector3D(vector: Vector3D): Vector3D;
|
|
2770
|
+
/**
|
|
2771
|
+
* De-orient an input vector from target to real space.
|
|
2772
|
+
*
|
|
2773
|
+
* @param {Vector3D} planeVector The input vector.
|
|
2774
|
+
* @returns {Vector3D} The de-orienteded vector.
|
|
2775
|
+
*/
|
|
2776
|
+
getTargetDeOrientedVector3D(planeVector: Vector3D): Vector3D;
|
|
2777
|
+
/**
|
|
2778
|
+
* De-orient an input point from target to real space.
|
|
2779
|
+
*
|
|
2780
|
+
* @param {Point3D} planePoint The input point.
|
|
2781
|
+
* @returns {Point3D} The de-orienteded point.
|
|
2782
|
+
*/
|
|
2783
|
+
getTargetDeOrientedPoint3D(planePoint: Point3D): Point3D;
|
|
2784
|
+
/**
|
|
2785
|
+
* Orient an input vector from target to image space.
|
|
2786
|
+
*
|
|
2787
|
+
* @param {Vector3D} planeVector The input vector.
|
|
2788
|
+
* @returns {Vector3D} The orienteded vector.
|
|
2789
|
+
*/
|
|
2790
|
+
getImageOrientedVector3D(planeVector: Vector3D): Vector3D;
|
|
2791
|
+
/**
|
|
2792
|
+
* Orient an input point from target to image space.
|
|
2793
|
+
*
|
|
2794
|
+
* @param {Point3D} planePoint The input vector.
|
|
2795
|
+
* @returns {Point3D} The orienteded vector.
|
|
2796
|
+
*/
|
|
2797
|
+
getImageOrientedPoint3D(planePoint: Point3D): Point3D;
|
|
2798
|
+
/**
|
|
2799
|
+
* De-orient an input vector from image to target space.
|
|
2800
|
+
*
|
|
2801
|
+
* @param {Vector3D} vector The input vector.
|
|
2802
|
+
* @returns {Vector3D} The de-orienteded vector.
|
|
2803
|
+
*/
|
|
2804
|
+
getImageDeOrientedVector3D(vector: Vector3D): Vector3D;
|
|
2805
|
+
/**
|
|
2806
|
+
* De-orient an input point from image to target space.
|
|
2807
|
+
*
|
|
2808
|
+
* @param {Point3D} point The input point.
|
|
2809
|
+
* @returns {Point3D} The de-orienteded point.
|
|
2810
|
+
*/
|
|
2811
|
+
getImageDeOrientedPoint3D(point: Point3D): Point3D;
|
|
2812
|
+
/**
|
|
2813
|
+
* Reorder values to follow target orientation.
|
|
2814
|
+
*
|
|
2815
|
+
* @param {object} values Values as {x,y,z}.
|
|
2816
|
+
* @returns {object} Reoriented values as {x,y,z}.
|
|
2817
|
+
*/
|
|
2818
|
+
getTargetOrientedPositiveXYZ(values: object): object;
|
|
2819
|
+
/**
|
|
2820
|
+
* Get the (view) scroll dimension index.
|
|
2821
|
+
*
|
|
2822
|
+
* @returns {number} The index.
|
|
2823
|
+
*/
|
|
2824
|
+
getScrollIndex(): number;
|
|
2825
|
+
/**
|
|
2826
|
+
* Get the native (image) scroll dimension index.
|
|
2827
|
+
*
|
|
2828
|
+
* @returns {number} The index.
|
|
2829
|
+
*/
|
|
2830
|
+
getNativeScrollIndex(): number;
|
|
2831
|
+
#private;
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2507
2834
|
/**
|
|
2508
2835
|
* Immutable point.
|
|
2509
2836
|
* Warning: the input array is NOT cloned, modifying it will
|
|
@@ -2757,6 +3084,36 @@ export declare class RescaleSlopeAndIntercept {
|
|
|
2757
3084
|
#private;
|
|
2758
3085
|
}
|
|
2759
3086
|
|
|
3087
|
+
/**
|
|
3088
|
+
* RGB colour class.
|
|
3089
|
+
*/
|
|
3090
|
+
export declare class RGB {
|
|
3091
|
+
/**
|
|
3092
|
+
* @param {number} r Red component.
|
|
3093
|
+
* @param {number} g Green component.
|
|
3094
|
+
* @param {number} b Blue component.
|
|
3095
|
+
*/
|
|
3096
|
+
constructor(r: number, g: number, b: number);
|
|
3097
|
+
/**
|
|
3098
|
+
* Red component.
|
|
3099
|
+
*
|
|
3100
|
+
* @type {number}
|
|
3101
|
+
*/
|
|
3102
|
+
r: number;
|
|
3103
|
+
/**
|
|
3104
|
+
* Green component.
|
|
3105
|
+
*
|
|
3106
|
+
* @type {number}
|
|
3107
|
+
*/
|
|
3108
|
+
g: number;
|
|
3109
|
+
/**
|
|
3110
|
+
* Blue component.
|
|
3111
|
+
*
|
|
3112
|
+
* @type {number}
|
|
3113
|
+
*/
|
|
3114
|
+
b: number;
|
|
3115
|
+
}
|
|
3116
|
+
|
|
2760
3117
|
/**
|
|
2761
3118
|
* Immutable Size class.
|
|
2762
3119
|
* Warning: the input array is NOT cloned, modifying it will
|
|
@@ -2922,10 +3279,10 @@ export declare class Spacing {
|
|
|
2922
3279
|
/**
|
|
2923
3280
|
* Convert sRGB to CIE LAB (standard illuminant D65).
|
|
2924
3281
|
*
|
|
2925
|
-
* @param {
|
|
3282
|
+
* @param {RGB} triplet sRGB triplet as {r,g,b}.
|
|
2926
3283
|
* @returns {object} CIE LAB triplet as {l,a,b}.
|
|
2927
3284
|
*/
|
|
2928
|
-
export declare function srgbToCielab(triplet:
|
|
3285
|
+
export declare function srgbToCielab(triplet: RGB): object;
|
|
2929
3286
|
|
|
2930
3287
|
/**
|
|
2931
3288
|
* Immutable tag.
|
|
@@ -3293,9 +3650,9 @@ export declare class View {
|
|
|
3293
3650
|
/**
|
|
3294
3651
|
* Get the window presets names.
|
|
3295
3652
|
*
|
|
3296
|
-
* @returns {
|
|
3653
|
+
* @returns {string[]} The list of window presets names.
|
|
3297
3654
|
*/
|
|
3298
|
-
getWindowPresetsNames():
|
|
3655
|
+
getWindowPresetsNames(): string[];
|
|
3299
3656
|
/**
|
|
3300
3657
|
* Set the window presets.
|
|
3301
3658
|
*
|
|
@@ -3536,9 +3893,9 @@ export declare class ViewController {
|
|
|
3536
3893
|
/**
|
|
3537
3894
|
* Get the plane helper.
|
|
3538
3895
|
*
|
|
3539
|
-
* @returns {
|
|
3896
|
+
* @returns {PlaneHelper} The helper.
|
|
3540
3897
|
*/
|
|
3541
|
-
getPlaneHelper():
|
|
3898
|
+
getPlaneHelper(): PlaneHelper;
|
|
3542
3899
|
/**
|
|
3543
3900
|
* Check is the associated image is a mask.
|
|
3544
3901
|
*
|
|
@@ -3548,9 +3905,9 @@ export declare class ViewController {
|
|
|
3548
3905
|
/**
|
|
3549
3906
|
* Get the mask segment helper.
|
|
3550
3907
|
*
|
|
3551
|
-
* @returns {
|
|
3908
|
+
* @returns {MaskSegmentHelper} The helper.
|
|
3552
3909
|
*/
|
|
3553
|
-
getMaskSegmentHelper():
|
|
3910
|
+
getMaskSegmentHelper(): MaskSegmentHelper;
|
|
3554
3911
|
/**
|
|
3555
3912
|
* Apply the hidden segments list by setting
|
|
3556
3913
|
* the corresponding alpha function.
|
|
@@ -3576,9 +3933,9 @@ export declare class ViewController {
|
|
|
3576
3933
|
/**
|
|
3577
3934
|
* Get the window/level presets names.
|
|
3578
3935
|
*
|
|
3579
|
-
* @returns {
|
|
3936
|
+
* @returns {string[]} The presets names.
|
|
3580
3937
|
*/
|
|
3581
|
-
getWindowLevelPresetsNames():
|
|
3938
|
+
getWindowLevelPresetsNames(): string[];
|
|
3582
3939
|
/**
|
|
3583
3940
|
* Add window/level presets to the view.
|
|
3584
3941
|
*
|
|
@@ -3707,8 +4064,15 @@ export declare class ViewController {
|
|
|
3707
4064
|
* Can window and level be applied to the data?
|
|
3708
4065
|
*
|
|
3709
4066
|
* @returns {boolean} True if possible.
|
|
4067
|
+
* @deprecated Please use isMonochrome instead.
|
|
3710
4068
|
*/
|
|
3711
4069
|
canWindowLevel(): boolean;
|
|
4070
|
+
/**
|
|
4071
|
+
* Is the data monochrome.
|
|
4072
|
+
*
|
|
4073
|
+
* @returns {boolean} True if the data is monochrome.
|
|
4074
|
+
*/
|
|
4075
|
+
isMonochrome(): boolean;
|
|
3712
4076
|
/**
|
|
3713
4077
|
* Can the data be scrolled?
|
|
3714
4078
|
*
|