dwv 0.37.0-beta.11 → 0.37.0-beta.13

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
@@ -1851,7 +1851,7 @@ export declare class DicomData {
1851
1851
  */
1852
1852
  hasDuplicateOrigin(): boolean;
1853
1853
  /**
1854
- * Append slice and update meta data.
1854
+ * Append data and update meta data.
1855
1855
  *
1856
1856
  * @param {DicomData} data The data to append.
1857
1857
  */
@@ -2739,6 +2739,10 @@ export declare class Geometry {
2739
2739
  * @returns {Point3D[]} The object origins.
2740
2740
  */
2741
2741
  getOrigins(): Point3D[];
2742
+ /**
2743
+ * Sort origins by Z position ascending.
2744
+ */
2745
+ sortOrigins(): void;
2742
2746
  /**
2743
2747
  * Check if a point is in the origin list.
2744
2748
  *
@@ -2805,7 +2809,16 @@ export declare class Geometry {
2805
2809
  * @returns {BooleanResult} Result with success set to true if
2806
2810
  * the geometry is compatible.
2807
2811
  */
2808
- canAppend(rhs: Geometry): BooleanResult;
2812
+ canAppendSlice(rhs: Geometry): BooleanResult;
2813
+ /**
2814
+ * Check if another geometry (describing a whole volume, not just
2815
+ * one slice) can be appended to this one as a new time point.
2816
+ *
2817
+ * @param {Geometry} rhs The geometry to check.
2818
+ * @returns {BooleanResult} Result with success set to true if
2819
+ * the geometry is compatible.
2820
+ */
2821
+ canAppendVolume(rhs: Geometry): BooleanResult;
2809
2822
  /**
2810
2823
  * Check if an origin can be appended to this geometry.
2811
2824
  *
@@ -2830,6 +2843,17 @@ export declare class Geometry {
2830
2843
  * @param {number} time Optional time index.
2831
2844
  */
2832
2845
  appendFrame(origin: Point3D, time: number): void;
2846
+ /**
2847
+ * Append a whole volume (one full set of slice origins) to the
2848
+ * geometry as a new time point. Unlike `appendFrame`, which only
2849
+ * stores a single origin per new time, this stores all of them
2850
+ * (for example when merging several complete multi-frame 3D
2851
+ * datasets into one 4D volume, one dataset per time point).
2852
+ *
2853
+ * @param {Point3D[]} origins The origins of the volume, one per slice.
2854
+ * @param {number} time The time index for this volume.
2855
+ */
2856
+ appendVolume(origins: Point3D[], time: number): void;
2833
2857
  /**
2834
2858
  * Get a string representation of the geometry.
2835
2859
  *
@@ -3491,7 +3515,16 @@ declare class Image_2 extends EventTarget {
3491
3515
  * @returns {BooleanResult} Result with success set to true if
3492
3516
  * the image can be appended.
3493
3517
  */
3494
- canAppend(rhs: Image_2): BooleanResult;
3518
+ canAppendSlice(rhs: Image_2): BooleanResult;
3519
+ /**
3520
+ * Check if another (complete, possibly multi-slice) image can be
3521
+ * appended to this one as a new time point.
3522
+ *
3523
+ * @param {Image} rhs The image to check.
3524
+ * @returns {BooleanResult} Result with success set to true if
3525
+ * the image can be appended.
3526
+ */
3527
+ canAppendVolume(rhs: Image_2): BooleanResult;
3495
3528
  /**
3496
3529
  * Append a slice to the image.
3497
3530
  *
@@ -3499,6 +3532,19 @@ declare class Image_2 extends EventTarget {
3499
3532
  * @fires Image#imagegeometrychange
3500
3533
  */
3501
3534
  appendSlice(rhs: Image_2): void;
3535
+ /**
3536
+ * Append a whole compatible image as a new time point (for example
3537
+ * merging several complete multi-frame 3D datasets into one 4D
3538
+ * volume, one dataset per time point). The time point is taken from
3539
+ * `rhs`'s geometry (`getInitialTime()`, typically tag-derived, for
3540
+ * example from TemporalPositionIndex) and can be out of arrival
3541
+ * order; unlike `appendSlice`, `rhs` here is a whole volume (more
3542
+ * than one slice), not a single 2D slice.
3543
+ *
3544
+ * @param {Image} rhs The image to append.
3545
+ * @fires Image#imagegeometrychange
3546
+ */
3547
+ appendVolume(rhs: Image_2): void;
3502
3548
  /**
3503
3549
  * Append a frame buffer to the image.
3504
3550
  *