dwv 0.34.0-beta.18 → 0.34.0-beta.19

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
@@ -78,6 +78,13 @@ export declare class Annotation {
78
78
  * @type {Point3D[]|undefined}
79
79
  */
80
80
  planePoints: Point3D[] | undefined;
81
+ /**
82
+ * Get the orientation name for this annotation.
83
+ *
84
+ * @returns {string|undefined} The orientation name,
85
+ * undefined if same as reference data.
86
+ */
87
+ getOrientationName(): string | undefined;
81
88
  /**
82
89
  * Initialise the annotation.
83
90
  *
@@ -2336,11 +2343,12 @@ export declare function getMousePoint(event: object): Point2D;
2336
2343
  /**
2337
2344
  * Get the name of an image orientation patient.
2338
2345
  *
2339
- * @param {number[]} orientation The image orientation patient.
2346
+ * @param {number[]} cosines The image orientation
2347
+ * patient cosines (6 values).
2340
2348
  * @returns {string|undefined} The orientation
2341
2349
  * name: axial, coronal or sagittal.
2342
2350
  */
2343
- export declare function getOrientationName(orientation: number[]): string | undefined;
2351
+ export declare function getOrientationName(cosines: number[]): string | undefined;
2344
2352
 
2345
2353
  /**
2346
2354
  * Get the PixelData Tag.
@@ -3727,6 +3735,18 @@ export declare class PlaneHelper {
3727
3735
  * @param {Matrix33} viewOrientation The view orientation.
3728
3736
  */
3729
3737
  constructor(imageGeometry: Geometry, viewOrientation: Matrix33);
3738
+ /**
3739
+ * Get the view orientation.
3740
+ *
3741
+ * @returns {Matrix33} The orientation matrix.
3742
+ */
3743
+ getViewOrientation(): Matrix33;
3744
+ /**
3745
+ * Get the target orientation.
3746
+ *
3747
+ * @returns {Matrix33} The orientation matrix.
3748
+ */
3749
+ getTargetOrientation(): Matrix33;
3730
3750
  /**
3731
3751
  * Get a 3D offset from a plane one.
3732
3752
  *
@@ -3843,7 +3863,7 @@ export declare class PlaneHelper {
3843
3863
  /**
3844
3864
  * Immutable point.
3845
3865
  * Warning: the input array is NOT cloned, modifying it will
3846
- * modify the index values.
3866
+ * modify the point values.
3847
3867
  */
3848
3868
  export declare class Point {
3849
3869
  /**
@@ -3851,26 +3871,26 @@ export declare class Point {
3851
3871
  */
3852
3872
  constructor(values: number[]);
3853
3873
  /**
3854
- * Get the index value at the given array index.
3874
+ * Get the point value at the given array index.
3855
3875
  *
3856
3876
  * @param {number} i The index to get.
3857
3877
  * @returns {number} The value.
3858
3878
  */
3859
3879
  get(i: number): number;
3860
3880
  /**
3861
- * Get the length of the index.
3881
+ * Get the length of the point.
3862
3882
  *
3863
3883
  * @returns {number} The length.
3864
3884
  */
3865
3885
  length(): number;
3866
3886
  /**
3867
- * Get a string representation of the Index.
3887
+ * Get a string representation of the point.
3868
3888
  *
3869
- * @returns {string} The Index as a string.
3889
+ * @returns {string} The point as a string.
3870
3890
  */
3871
3891
  toString(): string;
3872
3892
  /**
3873
- * Get the values of this index.
3893
+ * Get the values of this point.
3874
3894
  *
3875
3895
  * @returns {number[]} The array of values.
3876
3896
  */
@@ -3940,6 +3960,12 @@ export declare class Point2D {
3940
3960
  * @returns {number} The Y position of the point.
3941
3961
  */
3942
3962
  getY(): number;
3963
+ /**
3964
+ * Get the values of this point.
3965
+ *
3966
+ * @returns {number[]} The array of values.
3967
+ */
3968
+ getValues(): number[];
3943
3969
  /**
3944
3970
  * Get the centroid of the point, ie itself.
3945
3971
  *
@@ -3997,6 +4023,12 @@ export declare class Point3D {
3997
4023
  * @returns {number} The Z position of the point.
3998
4024
  */
3999
4025
  getZ(): number;
4026
+ /**
4027
+ * Get the values of this point.
4028
+ *
4029
+ * @returns {number[]} The array of values.
4030
+ */
4031
+ getValues(): number[];
4000
4032
  /**
4001
4033
  * Check for Point3D equality.
4002
4034
  *