dwv 0.34.0-beta.21 → 0.34.0-beta.23

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
@@ -2357,6 +2357,16 @@ export declare function getOrientationName(cosines: number[]): string | undefine
2357
2357
  */
2358
2358
  export declare function getPixelDataTag(): Tag;
2359
2359
 
2360
+ /**
2361
+ * Get the indices that form a rectangle.
2362
+ *
2363
+ * @param {Index} center The rectangle center.
2364
+ * @param {number[]} size The 2 rectangle sizes.
2365
+ * @param {number[]} dir The 2 rectangle directions.
2366
+ * @returns {Index[]} The indices of the rectangle.
2367
+ */
2368
+ export declare function getRectangleIndices(center: Index, size: number[], dir: number[]): Index[];
2369
+
2360
2370
  /**
2361
2371
  * Get patient orientation label in the reverse direction.
2362
2372
  *
@@ -3813,18 +3823,32 @@ export declare class PlaneHelper {
3813
3823
  /**
3814
3824
  * Get a world position from a 2D plane position.
3815
3825
  *
3816
- * @param {Point2D} point2D The input point.
3826
+ * @param {Point2D} point2D The plane point.
3817
3827
  * @param {number} k The slice index.
3818
- * @returns {Point3D} The associated position.
3828
+ * @returns {Point3D} The world position.
3819
3829
  */
3820
3830
  getPositionFromPlanePoint(point2D: Point2D, k: number): Point3D;
3821
3831
  /**
3822
- * Get a list of points that define the plane at position k.
3832
+ * Get a 2D plane position from a world position.
3823
3833
  *
3824
- * @param {number} k The slice index value.
3834
+ * @param {Point} point The world position.
3835
+ * @returns {Point3D} The plane point.
3836
+ */
3837
+ getPlanePointFromPosition(point: Point): Point3D;
3838
+ /**
3839
+ * Get the cosines of this plane.
3840
+ *
3841
+ * @returns {number[]} The 2 cosines vectors (3D).
3842
+ */
3843
+ getCosines(): number[];
3844
+ /**
3845
+ * Get a list of points that define the plane at input position,
3846
+ * given this classes orientation.
3847
+ *
3848
+ * @param {Point} position The position.
3825
3849
  * @returns {Point3D[]} An origin and 2 cosines vectors.
3826
3850
  */
3827
- getPlanePoints(k: number): Point3D[];
3851
+ getPlanePoints(position: Point): Point3D[];
3828
3852
  /**
3829
3853
  * Image world to index.
3830
3854
  *
@@ -5412,18 +5436,19 @@ export declare class ViewController {
5412
5436
  */
5413
5437
  isAquisitionOrientation(): boolean;
5414
5438
  /**
5415
- * Get a list of points that define the plane at position k.
5439
+ * Get a list of points that define the plane at input position,
5440
+ * given this classes orientation.
5416
5441
  *
5417
- * @param {number} k The slice index value.
5418
- * @returns {Point3D[]} A couple of 3D points.
5442
+ * @param {Point} position The position.
5443
+ * @returns {Point3D[]} An origin and 2 cosines vectors.
5419
5444
  */
5420
- getPlanePoints(k: number): Point3D[];
5445
+ getPlanePoints(position: Point): Point3D[];
5421
5446
  /**
5422
5447
  * Get the current scroll position value.
5423
5448
  *
5424
- * @returns {object} The value.
5449
+ * @returns {number} The value.
5425
5450
  */
5426
- getCurrentScrollPosition(): object;
5451
+ getCurrentScrollPosition(): number;
5427
5452
  /**
5428
5453
  * Generate display image data to be given to a canvas.
5429
5454
  *