dwv 0.38.0-beta.2 → 0.38.0-beta.3
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
CHANGED
|
@@ -40,12 +40,22 @@ export declare class Annotation {
|
|
|
40
40
|
referencedSopClassUID: string;
|
|
41
41
|
/**
|
|
42
42
|
* Referenced frame number, 1-based as the DICOM
|
|
43
|
-
* Referenced Frame Number: frame
|
|
44
|
-
*
|
|
43
|
+
* Referenced Frame Number: the frame of the referenced
|
|
44
|
+
* multi-frame instance, undefined for a single frame instance.
|
|
45
45
|
*
|
|
46
46
|
* @type {number|undefined}
|
|
47
47
|
*/
|
|
48
48
|
referencedFrameNumber: number | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Legacy referenced time index: the 0-based time index of the
|
|
51
|
+
* referenced image read from a file written by dwv up to
|
|
52
|
+
* v0.38.0-beta.2, that wrote it plus one as Referenced Frame Number.
|
|
53
|
+
* It is replaced by the referenced frame number (if any) when the
|
|
54
|
+
* annotation is associated to a view controller.
|
|
55
|
+
*
|
|
56
|
+
* @type {number|undefined}
|
|
57
|
+
*/
|
|
58
|
+
legacyTimeIndex: number | undefined;
|
|
49
59
|
/**
|
|
50
60
|
* Mathematical shape.
|
|
51
61
|
*
|
|
@@ -192,6 +202,16 @@ export declare class Annotation {
|
|
|
192
202
|
* @returns {Point|undefined} The 3D centroid point.
|
|
193
203
|
*/
|
|
194
204
|
getCentroid(): Point | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* Get the time index (fourth dimension index) of the referenced
|
|
207
|
+
* image.
|
|
208
|
+
*
|
|
209
|
+
* @returns {number|undefined} The index, undefined if there is no
|
|
210
|
+
* associated view controller or if the image has no time dimension.
|
|
211
|
+
* Set from the drawing position or, for a read annotation, from
|
|
212
|
+
* the referenced image.
|
|
213
|
+
*/
|
|
214
|
+
getTimeIndex(): number | undefined;
|
|
195
215
|
/**
|
|
196
216
|
* Check if a plane point is on the annotation math shape,
|
|
197
217
|
* within a tolerance.
|
|
@@ -3785,22 +3805,65 @@ declare class Image_2 extends EventTarget {
|
|
|
3785
3805
|
* @returns {string} The UID.
|
|
3786
3806
|
*/
|
|
3787
3807
|
getImageUid(index?: Index): string;
|
|
3808
|
+
/**
|
|
3809
|
+
* Get the DICOM frame number, in its multi-frame instance, of the
|
|
3810
|
+
* image at a given index.
|
|
3811
|
+
*
|
|
3812
|
+
* @param {Index} [index] The index at which to get the frame number.
|
|
3813
|
+
* @returns {number|undefined} The 1-based frame number, undefined
|
|
3814
|
+
* for a single frame instance.
|
|
3815
|
+
*/
|
|
3816
|
+
getImageFrameNumber(index?: Index): number | undefined;
|
|
3817
|
+
/**
|
|
3818
|
+
* Set the DICOM frame numbers of the images, see
|
|
3819
|
+
* {@link Image#getImageFrameNumber}.
|
|
3820
|
+
*
|
|
3821
|
+
* @param {Array<number|undefined>} [frameNumbers] The 1-based frame
|
|
3822
|
+
* numbers indexed as the image UIDs.
|
|
3823
|
+
*/
|
|
3824
|
+
setImageFrameNumbers(frameNumbers?: Array<number | undefined>): void;
|
|
3825
|
+
/**
|
|
3826
|
+
* Check if the input UID and, for multi-frame instances, frame number
|
|
3827
|
+
* reference a single image of this image. False if the UID is
|
|
3828
|
+
* repeated over slices (not DICOM conformant) or not present.
|
|
3829
|
+
*
|
|
3830
|
+
* @param {string} uid The image UID (SOP Instance UID).
|
|
3831
|
+
* @param {number} [frameNumber] The 1-based DICOM frame number.
|
|
3832
|
+
* @returns {boolean} True if the reference is unique.
|
|
3833
|
+
*/
|
|
3834
|
+
isImageUidUnique(uid: string, frameNumber?: number): boolean;
|
|
3835
|
+
/**
|
|
3836
|
+
* Get the DICOM frame number of the image with the input UID:
|
|
3837
|
+
* the lowest frame number of the UID images, in the input volume
|
|
3838
|
+
* if provided.
|
|
3839
|
+
*
|
|
3840
|
+
* @param {string} uid The image UID (SOP Instance UID).
|
|
3841
|
+
* @param {number} [volumeIndex] The volume index (4th dimension).
|
|
3842
|
+
* @returns {number|undefined} The 1-based frame number, undefined
|
|
3843
|
+
* for a single frame instance or if the UID is not part of
|
|
3844
|
+
* this image.
|
|
3845
|
+
*/
|
|
3846
|
+
getImageFrameNumberForImageUid(uid: string, volumeIndex?: number): number | undefined;
|
|
3788
3847
|
/**
|
|
3789
3848
|
* Get the image origin for a image UID.
|
|
3790
3849
|
*
|
|
3791
3850
|
* @param {string} uid The UID.
|
|
3851
|
+
* @param {number} [frameNumber] The 1-based DICOM frame number,
|
|
3852
|
+
* to find the frame of a multi-frame instance.
|
|
3792
3853
|
* @returns {Point3D|undefined} The origin.
|
|
3793
3854
|
*/
|
|
3794
|
-
getOriginForImageUid(uid: string): Point3D | undefined;
|
|
3855
|
+
getOriginForImageUid(uid: string, frameNumber?: number): Point3D | undefined;
|
|
3795
3856
|
/**
|
|
3796
3857
|
* Get the volume index (4th dimension) of the image with the input UID.
|
|
3797
3858
|
* An image with a single UID for all its slices returns 0.
|
|
3798
3859
|
*
|
|
3799
3860
|
* @param {string} uid The image UID (SOP Instance UID).
|
|
3861
|
+
* @param {number} [frameNumber] The 1-based DICOM frame number,
|
|
3862
|
+
* to find the frame of a multi-frame instance.
|
|
3800
3863
|
* @returns {number|undefined} The volume index, undefined if the
|
|
3801
3864
|
* UID is not part of this image.
|
|
3802
3865
|
*/
|
|
3803
|
-
getVolumeIndexForImageUid(uid: string): number | undefined;
|
|
3866
|
+
getVolumeIndexForImageUid(uid: string, frameNumber?: number): number | undefined;
|
|
3804
3867
|
/**
|
|
3805
3868
|
* Check if the image includes an UID.
|
|
3806
3869
|
*
|
|
@@ -8241,9 +8304,11 @@ export declare class View extends EventTarget {
|
|
|
8241
8304
|
* Get the image origin for a image UID.
|
|
8242
8305
|
*
|
|
8243
8306
|
* @param {string} uid The UID.
|
|
8307
|
+
* @param {number} [frameNumber] The 1-based DICOM frame number,
|
|
8308
|
+
* to find the frame of a multi-frame instance.
|
|
8244
8309
|
* @returns {Point3D|undefined} The origin.
|
|
8245
8310
|
*/
|
|
8246
|
-
getOriginForImageUid(uid: string): Point3D | undefined;
|
|
8311
|
+
getOriginForImageUid(uid: string, frameNumber?: number): Point3D | undefined;
|
|
8247
8312
|
/**
|
|
8248
8313
|
* Check if the image includes an UID.
|
|
8249
8314
|
*
|
|
@@ -8492,6 +8557,15 @@ export declare class ViewController {
|
|
|
8492
8557
|
* @returns {string} The UID.
|
|
8493
8558
|
*/
|
|
8494
8559
|
getImageUidFromPosition(position: Point): string;
|
|
8560
|
+
/**
|
|
8561
|
+
* Get the DICOM frame number, in its multi-frame instance, of the
|
|
8562
|
+
* image at a position.
|
|
8563
|
+
*
|
|
8564
|
+
* @param {Point} position The position.
|
|
8565
|
+
* @returns {number|undefined} The 1-based frame number, undefined
|
|
8566
|
+
* for a single frame instance.
|
|
8567
|
+
*/
|
|
8568
|
+
getImageFrameNumberFromPosition(position: Point): number | undefined;
|
|
8495
8569
|
/**
|
|
8496
8570
|
* Get the image frame of reference UID.
|
|
8497
8571
|
*
|
|
@@ -8566,9 +8640,43 @@ export declare class ViewController {
|
|
|
8566
8640
|
* Get the image origin for a image UID.
|
|
8567
8641
|
*
|
|
8568
8642
|
* @param {string} uid The UID.
|
|
8643
|
+
* @param {number} [frameNumber] The 1-based DICOM frame number,
|
|
8644
|
+
* to find the frame of a multi-frame instance.
|
|
8569
8645
|
* @returns {Point3D|undefined} The origin.
|
|
8570
8646
|
*/
|
|
8571
|
-
getOriginForImageUid(uid: string): Point3D | undefined;
|
|
8647
|
+
getOriginForImageUid(uid: string, frameNumber?: number): Point3D | undefined;
|
|
8648
|
+
/**
|
|
8649
|
+
* Check if the input UID and, for multi-frame instances, frame number
|
|
8650
|
+
* reference a single image of the view image. False if the UID is
|
|
8651
|
+
* repeated over slices (not DICOM conformant) or not present.
|
|
8652
|
+
*
|
|
8653
|
+
* @param {string} uid The image UID (SOP Instance UID).
|
|
8654
|
+
* @param {number} [frameNumber] The 1-based DICOM frame number.
|
|
8655
|
+
* @returns {boolean} True if the reference is unique.
|
|
8656
|
+
*/
|
|
8657
|
+
isImageUidUnique(uid: string, frameNumber?: number): boolean;
|
|
8658
|
+
/**
|
|
8659
|
+
* Get the DICOM frame number of the image with the input UID:
|
|
8660
|
+
* the lowest frame number of the UID images, in the input volume
|
|
8661
|
+
* if provided.
|
|
8662
|
+
*
|
|
8663
|
+
* @param {string} uid The image UID (SOP Instance UID).
|
|
8664
|
+
* @param {number} [volumeIndex] The volume index (4th dimension).
|
|
8665
|
+
* @returns {number|undefined} The 1-based frame number, undefined
|
|
8666
|
+
* for a single frame instance or if the UID is not part of
|
|
8667
|
+
* the image.
|
|
8668
|
+
*/
|
|
8669
|
+
getImageFrameNumberForImageUid(uid: string, volumeIndex?: number): number | undefined;
|
|
8670
|
+
/**
|
|
8671
|
+
* Get the volume index (4th dimension) of the image with the input UID.
|
|
8672
|
+
*
|
|
8673
|
+
* @param {string} uid The image UID (SOP Instance UID).
|
|
8674
|
+
* @param {number} [frameNumber] The 1-based DICOM frame number,
|
|
8675
|
+
* to find the frame of a multi-frame instance.
|
|
8676
|
+
* @returns {number|undefined} The volume index, undefined if the
|
|
8677
|
+
* UID is not part of the image.
|
|
8678
|
+
*/
|
|
8679
|
+
getVolumeIndexForImageUid(uid: string, frameNumber?: number): number | undefined;
|
|
8572
8680
|
/**
|
|
8573
8681
|
* Check if the image includes an UID.
|
|
8574
8682
|
*
|