@kitware/vtk.js 30.5.3 → 30.6.1

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.
Files changed (222) hide show
  1. package/Common/Core/Base64.d.ts +2 -2
  2. package/Common/Core/CellArray.d.ts +45 -42
  3. package/Common/Core/DataArray.d.ts +465 -449
  4. package/Common/Core/Endian.d.ts +5 -5
  5. package/Common/Core/HalfFloat.d.ts +3 -3
  6. package/Common/Core/ImageHelper.d.ts +11 -5
  7. package/Common/Core/LookupTable.d.ts +260 -257
  8. package/Common/Core/Math.d.ts +461 -270
  9. package/Common/Core/MatrixBuilder.d.ts +117 -112
  10. package/Common/Core/Points.d.ts +114 -106
  11. package/Common/Core/PriorityQueue.d.ts +34 -30
  12. package/Common/Core/ProgressHandler.d.ts +44 -39
  13. package/Common/Core/ScalarsToColors/Constants.d.ts +9 -9
  14. package/Common/Core/ScalarsToColors.d.ts +351 -326
  15. package/Common/Core/StringArray.d.ts +94 -89
  16. package/Common/Core/URLExtract.d.ts +9 -6
  17. package/Common/Core/VariantArray.d.ts +94 -89
  18. package/Common/DataModel/AbstractPointLocator.d.ts +18 -18
  19. package/Common/DataModel/Box.d.ts +60 -52
  20. package/Common/DataModel/CardinalSpline1D.d.ts +59 -34
  21. package/Common/DataModel/Cell.d.ts +70 -67
  22. package/Common/DataModel/Collection.d.ts +100 -84
  23. package/Common/DataModel/Cone.d.ts +30 -27
  24. package/Common/DataModel/Cylinder.d.ts +122 -112
  25. package/Common/DataModel/DataSet/Constants.d.ts +9 -9
  26. package/Common/DataModel/DataSet.d.ts +38 -35
  27. package/Common/DataModel/DataSetAttributes/FieldData.d.ts +217 -206
  28. package/Common/DataModel/DataSetAttributes.d.ts +420 -415
  29. package/Common/DataModel/EdgeLocator.d.ts +82 -79
  30. package/Common/DataModel/ITKHelper.d.ts +33 -22
  31. package/Common/DataModel/ImageData.d.ts +362 -340
  32. package/Common/DataModel/IncrementalOctreeNode.d.ts +242 -242
  33. package/Common/DataModel/IncrementalOctreePointLocator.d.ts +16 -16
  34. package/Common/DataModel/KochanekSpline1D.d.ts +60 -36
  35. package/Common/DataModel/Line.d.ts +104 -83
  36. package/Common/DataModel/Locator.d.ts +10 -10
  37. package/Common/DataModel/PiecewiseFunction.d.ts +215 -199
  38. package/Common/DataModel/Plane.d.ts +255 -223
  39. package/Common/DataModel/PointSet.d.ts +32 -28
  40. package/Common/DataModel/PolyData/Constants.d.ts +2 -2
  41. package/Common/DataModel/PolyData.d.ts +143 -140
  42. package/Common/DataModel/PolyLine.d.ts +51 -28
  43. package/Common/DataModel/Polygon.d.ts +34 -33
  44. package/Common/DataModel/SelectionNode/Constants.d.ts +18 -18
  45. package/Common/DataModel/SelectionNode.d.ts +62 -56
  46. package/Common/DataModel/Sphere.d.ts +74 -72
  47. package/Common/DataModel/Spline1D.d.ts +60 -40
  48. package/Common/DataModel/Spline3D/Constants.d.ts +3 -3
  49. package/Common/DataModel/Spline3D.d.ts +27 -22
  50. package/Common/Transform/LandmarkTransform.d.ts +67 -64
  51. package/Common/Transform/Transform.d.ts +148 -126
  52. package/Filters/General/AppendPolyData.d.ts +43 -37
  53. package/Filters/General/ClipClosedSurface.d.ts +41 -41
  54. package/Filters/General/ContourTriangulator.d.ts +38 -38
  55. package/Filters/General/ImageCropFilter.d.ts +48 -44
  56. package/Filters/General/ImageDataOutlineFilter.d.ts +41 -37
  57. package/Filters/General/ImageOutlineFilter.d.ts +41 -37
  58. package/Filters/General/ImageSliceFilter.d.ts +38 -34
  59. package/Filters/General/ImageStreamline.d.ts +120 -93
  60. package/Filters/General/LineFilter.d.ts +18 -15
  61. package/Filters/General/OutlineFilter.d.ts +19 -16
  62. package/Filters/General/TriangleFilter.d.ts +23 -19
  63. package/Filters/General/TubeFilter.d.ts +194 -188
  64. package/Filters/Sources/Arrow2DSource.d.ts +151 -143
  65. package/Filters/Sources/ArrowSource.d.ts +148 -140
  66. package/Filters/Sources/CircleSource.d.ts +138 -130
  67. package/Filters/Sources/ConeSource.d.ts +167 -159
  68. package/Filters/Sources/CubeSource.d.ts +198 -181
  69. package/Filters/Sources/Cursor3D.d.ts +171 -164
  70. package/Filters/Sources/CylinderSource.d.ts +173 -166
  71. package/Filters/Sources/LineSource.d.ts +100 -92
  72. package/Filters/Sources/PlaneSource.d.ts +211 -203
  73. package/Filters/Sources/PointSource.d.ts +90 -82
  74. package/Filters/Sources/SphereSource.d.ts +171 -164
  75. package/Filters/Texture/TextureMapToPlane.d.ts +213 -208
  76. package/Filters/Texture/TextureMapToSphere.d.ts +77 -72
  77. package/IO/Core/DataAccessHelper/HtmlDataAccessHelper.d.ts +18 -5
  78. package/IO/Core/DataAccessHelper/HttpDataAccessHelper.d.ts +18 -5
  79. package/IO/Core/DataAccessHelper/JSZipDataAccessHelper.d.ts +19 -6
  80. package/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.d.ts +18 -5
  81. package/IO/Core/DataAccessHelper.d.ts +36 -22
  82. package/IO/Core/HttpDataSetReader.d.ts +279 -249
  83. package/IO/Core/HttpSceneLoader.d.ts +92 -87
  84. package/IO/Core/ImageStream/DefaultProtocol.d.ts +27 -20
  85. package/IO/Core/ImageStream/ViewStream.d.ts +7 -7
  86. package/IO/Core/ImageStream.d.ts +52 -47
  87. package/IO/Core/WSLinkClient.d.ts +12 -6
  88. package/IO/Geometry/DracoReader.d.ts +106 -88
  89. package/IO/Geometry/PLYReader.d.ts +92 -75
  90. package/IO/Geometry/PLYWriter.d.ts +163 -148
  91. package/IO/Geometry/STLReader.d.ts +92 -77
  92. package/IO/Geometry/STLWriter.d.ts +50 -42
  93. package/IO/Misc/ElevationReader.d.ts +155 -139
  94. package/IO/Misc/ITKImageReader.d.ts +58 -50
  95. package/IO/Misc/ITKPolyDataReader.d.ts +58 -50
  96. package/IO/Misc/JSONNucleoReader.d.ts +74 -57
  97. package/IO/Misc/JSONReader.d.ts +78 -72
  98. package/IO/Misc/MTLReader.d.ts +143 -130
  99. package/IO/Misc/OBJReader.d.ts +129 -110
  100. package/IO/Misc/PDBReader.d.ts +109 -93
  101. package/IO/XML/XMLImageDataReader.d.ts +31 -19
  102. package/IO/XML/XMLPolyDataReader.d.ts +31 -19
  103. package/IO/XML/XMLReader.d.ts +141 -105
  104. package/Imaging/Core/AbstractImageInterpolator/Constants.d.ts +2 -2
  105. package/Imaging/Core/ImageReslice.d.ts +231 -173
  106. package/Interaction/Style/InteractorStyleHMDXR.d.ts +7 -3
  107. package/Interaction/Style/InteractorStyleImage.d.ts +5 -4
  108. package/Interaction/Style/InteractorStyleTrackballCamera.d.ts +17 -6
  109. package/Interaction/Widgets/OrientationMarkerWidget/Constants.d.ts +5 -5
  110. package/Interaction/Widgets/OrientationMarkerWidget.d.ts +146 -142
  111. package/Proxy/Core/ViewProxy.d.ts +1 -1
  112. package/Proxy/Representations/GeometryRepresentationProxy.d.ts +28 -27
  113. package/Proxy/Representations/ResliceRepresentationProxy.d.ts +0 -1
  114. package/Rendering/Core/AbstractImageMapper.d.ts +125 -113
  115. package/Rendering/Core/AbstractMapper.d.ts +58 -52
  116. package/Rendering/Core/AbstractMapper3D.d.ts +32 -25
  117. package/Rendering/Core/AbstractPicker.d.ts +91 -88
  118. package/Rendering/Core/Actor.d.ts +117 -114
  119. package/Rendering/Core/Actor2D.d.ts +101 -98
  120. package/Rendering/Core/AnnotatedCubeActor.d.ts +58 -53
  121. package/Rendering/Core/AxesActor.d.ts +10 -4
  122. package/Rendering/Core/Camera.d.ts +739 -727
  123. package/Rendering/Core/CellPicker.d.ts +87 -77
  124. package/Rendering/Core/ColorTransferFunction/Constants.d.ts +2 -2
  125. package/Rendering/Core/ColorTransferFunction/CssFilters.d.ts +39 -13
  126. package/Rendering/Core/ColorTransferFunction.d.ts +3 -6
  127. package/Rendering/Core/Coordinate/Constants.d.ts +1 -1
  128. package/Rendering/Core/Coordinate.d.ts +154 -150
  129. package/Rendering/Core/Follower.d.ts +52 -47
  130. package/Rendering/Core/Glyph3DMapper/Constants.d.ts +8 -8
  131. package/Rendering/Core/Glyph3DMapper.d.ts +152 -149
  132. package/Rendering/Core/ImageArrayMapper.d.ts +237 -213
  133. package/Rendering/Core/ImageCPRMapper/Constants.d.ts +4 -4
  134. package/Rendering/Core/ImageCPRMapper.d.ts +424 -392
  135. package/Rendering/Core/ImageMapper/Constants.d.ts +8 -8
  136. package/Rendering/Core/ImageMapper.d.ts +292 -268
  137. package/Rendering/Core/ImageProperty/Constants.d.ts +3 -3
  138. package/Rendering/Core/ImageProperty.d.ts +204 -197
  139. package/Rendering/Core/ImageResliceMapper/Constants.d.ts +5 -5
  140. package/Rendering/Core/ImageResliceMapper.d.ts +235 -210
  141. package/Rendering/Core/ImageSlice.d.ts +142 -136
  142. package/Rendering/Core/InteractorObserver.d.ts +41 -32
  143. package/Rendering/Core/Light.d.ts +321 -318
  144. package/Rendering/Core/Mapper/Constants.d.ts +14 -14
  145. package/Rendering/Core/Mapper.d.ts +539 -512
  146. package/Rendering/Core/Mapper2D.d.ts +342 -330
  147. package/Rendering/Core/Picker.d.ts +114 -106
  148. package/Rendering/Core/PixelSpaceCallbackMapper.d.ts +56 -40
  149. package/Rendering/Core/PointPicker.d.ts +42 -37
  150. package/Rendering/Core/Prop/Constants.d.ts +3 -3
  151. package/Rendering/Core/Prop.d.ts +274 -274
  152. package/Rendering/Core/Prop3D.d.ts +259 -257
  153. package/Rendering/Core/Property/Constants.d.ts +12 -12
  154. package/Rendering/Core/Property.d.ts +535 -531
  155. package/Rendering/Core/Property2D/Constants.d.ts +1 -1
  156. package/Rendering/Core/Property2D.d.ts +114 -109
  157. package/Rendering/Core/RenderWindow.d.ts +193 -191
  158. package/Rendering/Core/RenderWindowInteractor/Constants.d.ts +19 -19
  159. package/Rendering/Core/RenderWindowInteractor.d.ts +1335 -1219
  160. package/Rendering/Core/Renderer.d.ts +677 -663
  161. package/Rendering/Core/ScalarBarActor.d.ts +333 -322
  162. package/Rendering/Core/Skybox.d.ts +45 -42
  163. package/Rendering/Core/SphereMapper.d.ts +49 -44
  164. package/Rendering/Core/StickMapper.d.ts +49 -44
  165. package/Rendering/Core/Texture.d.ts +87 -80
  166. package/Rendering/Core/Viewport.d.ts +229 -222
  167. package/Rendering/Core/Volume.d.ts +78 -73
  168. package/Rendering/Core/VolumeMapper/Constants.d.ts +11 -11
  169. package/Rendering/Core/VolumeMapper.d.ts +295 -285
  170. package/Rendering/Core/VolumeProperty/Constants.d.ts +19 -19
  171. package/Rendering/Core/VolumeProperty.d.ts +375 -365
  172. package/Rendering/Misc/CanvasView.d.ts +148 -145
  173. package/Rendering/Misc/FullScreenRenderWindow.d.ts +111 -108
  174. package/Rendering/Misc/GenericRenderWindow.d.ts +69 -65
  175. package/Rendering/Misc/RenderWindowWithControlBar.d.ts +46 -39
  176. package/Rendering/Misc/SynchronizableRenderWindow/ObjectManager.d.ts +49 -29
  177. package/Rendering/Misc/SynchronizableRenderWindow.d.ts +51 -35
  178. package/Rendering/Misc/TextureLODsDownloader.d.ts +110 -106
  179. package/Rendering/OpenGL/BufferObject.d.ts +3 -2
  180. package/Rendering/OpenGL/RenderWindow.d.ts +456 -405
  181. package/Rendering/OpenGL/Texture.d.ts +66 -14
  182. package/Rendering/SceneGraph/RenderPass.d.ts +88 -83
  183. package/Rendering/SceneGraph/ViewNode.d.ts +150 -146
  184. package/Rendering/SceneGraph/ViewNodeFactory.d.ts +17 -12
  185. package/Rendering/WebXR/RenderWindowHelper/Constants.d.ts +5 -5
  186. package/Rendering/WebXR/RenderWindowHelper.d.ts +54 -49
  187. package/Widgets/Core/AbstractWidget.d.ts +30 -24
  188. package/Widgets/Core/AbstractWidgetFactory.d.ts +53 -33
  189. package/Widgets/Core/WidgetManager/Constants.d.ts +4 -4
  190. package/Widgets/Core/WidgetManager.d.ts +21 -15
  191. package/Widgets/Core/WidgetState.d.ts +11 -7
  192. package/Widgets/Manipulators/AbstractManipulator.d.ts +224 -191
  193. package/Widgets/Manipulators/AbstractManipulator.js +20 -0
  194. package/Widgets/Manipulators/CPRManipulator.js +3 -3
  195. package/Widgets/Manipulators/LineManipulator.d.ts +33 -21
  196. package/Widgets/Manipulators/LineManipulator.js +1 -1
  197. package/Widgets/Manipulators/PickerManipulator.d.ts +22 -18
  198. package/Widgets/Manipulators/PickerManipulator.js +2 -2
  199. package/Widgets/Manipulators/PlaneManipulator.d.ts +33 -22
  200. package/Widgets/Manipulators/PlaneManipulator.js +1 -1
  201. package/Widgets/Manipulators/TrackballManipulator.d.ts +40 -26
  202. package/Widgets/Manipulators/TrackballManipulator.js +2 -2
  203. package/Widgets/Representations/WidgetRepresentation.d.ts +62 -51
  204. package/Widgets/Widgets3D/AngleWidget/behavior.js +14 -7
  205. package/Widgets/Widgets3D/ImageCroppingWidget/behavior.js +19 -6
  206. package/Widgets/Widgets3D/ImplicitPlaneWidget.js +38 -8
  207. package/Widgets/Widgets3D/InteractiveOrientationWidget.d.ts +25 -10
  208. package/Widgets/Widgets3D/LabelWidget/behavior.js +14 -10
  209. package/Widgets/Widgets3D/LineWidget/behavior.js +22 -12
  210. package/Widgets/Widgets3D/PolyLineWidget/behavior.js +16 -4
  211. package/Widgets/Widgets3D/PolyLineWidget.js +0 -5
  212. package/Widgets/Widgets3D/ResliceCursorWidget/Constants.d.ts +26 -7
  213. package/Widgets/Widgets3D/ResliceCursorWidget/behavior.d.ts +13 -12
  214. package/Widgets/Widgets3D/ResliceCursorWidget.d.ts +26 -15
  215. package/Widgets/Widgets3D/SeedWidget/behavior.js +1 -7
  216. package/Widgets/Widgets3D/SeedWidget.d.ts +2 -2
  217. package/Widgets/Widgets3D/ShapeWidget/behavior.js +9 -8
  218. package/Widgets/Widgets3D/SphereWidget/behavior.js +20 -29
  219. package/Widgets/Widgets3D/SphereWidget.d.ts +5 -3
  220. package/Widgets/Widgets3D/SplineWidget/behavior.js +16 -4
  221. package/interfaces.d.ts +243 -243
  222. package/package.json +3 -3
@@ -1,4 +1,10 @@
1
- import { Bounds, Extent, Nullable, RGBAColor, TypedArray } from './../../types';
1
+ import {
2
+ Bounds,
3
+ Extent,
4
+ Nullable,
5
+ RGBAColor,
6
+ TypedArray,
7
+ } from './../../types';
2
8
  import { InterpolationMode } from './AbstractImageInterpolator/Constants';
3
9
  import { SlabMode } from './ImageReslice/Constants';
4
10
  import { vtkAlgorithm, vtkObject, vtkRange } from './../../interfaces';
@@ -8,50 +14,50 @@ import vtkTransform from './../../Common/Transform/Transform';
8
14
  import { mat3, mat4, vec3, vec4 } from 'gl-matrix';
9
15
 
10
16
  /**
11
- *
17
+ *
12
18
  */
13
19
  export interface IImageResliceInitialValues {
14
- transformInputSampling: boolean,
15
- autoCropOutput: boolean,
16
- outputDimensionality: number,
17
- outputSpacing: Nullable<vec3>, // automatically computed if null
18
- outputOrigin: Nullable<vec3>, // automatically computed if null
19
- outputDirection: Nullable<mat3>, // identity if null
20
- outputExtent: Nullable<Extent>, // automatically computed if null
21
- outputScalarType: Nullable<string>,
22
- wrap: boolean, // don't wrap
23
- mirror: boolean, // don't mirror
24
- border: boolean, // apply a border
25
- interpolationMode: InterpolationMode, // only NEAREST supported so far
26
- slabMode: SlabMode,
27
- slabTrapezoidIntegration: boolean,
28
- slabNumberOfSlices: number,
29
- slabSliceSpacingFraction: number,
30
- optimization: boolean, // not supported yet
31
- scalarShift: number, // for rescaling the data
32
- scalarScale: number,
33
- backgroundColor: RGBAColor,
34
- resliceAxes: Nullable<mat4>,
35
- resliceTransform?: vtkTransform,
36
- interpolator: any, // A vtkImageInterpolator (missing typescript header)
37
- usePermuteExecute: boolean, // no supported yet
20
+ transformInputSampling: boolean;
21
+ autoCropOutput: boolean;
22
+ outputDimensionality: number;
23
+ outputSpacing: Nullable<vec3>; // automatically computed if null
24
+ outputOrigin: Nullable<vec3>; // automatically computed if null
25
+ outputDirection: Nullable<mat3>; // identity if null
26
+ outputExtent: Nullable<Extent>; // automatically computed if null
27
+ outputScalarType: Nullable<string>;
28
+ wrap: boolean; // don't wrap
29
+ mirror: boolean; // don't mirror
30
+ border: boolean; // apply a border
31
+ interpolationMode: InterpolationMode; // only NEAREST supported so far
32
+ slabMode: SlabMode;
33
+ slabTrapezoidIntegration: boolean;
34
+ slabNumberOfSlices: number;
35
+ slabSliceSpacingFraction: number;
36
+ optimization: boolean; // not supported yet
37
+ scalarShift: number; // for rescaling the data
38
+ scalarScale: number;
39
+ backgroundColor: RGBAColor;
40
+ resliceAxes: Nullable<mat4>;
41
+ resliceTransform?: vtkTransform;
42
+ interpolator: any; // A vtkImageInterpolator (missing typescript header)
43
+ usePermuteExecute: boolean; // no supported yet
38
44
  }
39
45
 
40
46
  type vtkImageResliceBase = Omit<vtkObject, 'set'> & vtkAlgorithm;
41
47
 
42
48
  export interface vtkImageReslice extends vtkImageResliceBase {
43
49
  /**
44
- *
45
- * @param inData
46
- * @param outData
47
- */
48
- requestData(inData: any, outData: any): void;
50
+ *
51
+ * @param inData
52
+ * @param outData
53
+ */
54
+ requestData(inData: any, outData: any): void;
49
55
 
50
56
  /**
51
57
  * Main filter logic
52
- * @param input
53
- * @param output
54
- * @returns
58
+ * @param input
59
+ * @param output
60
+ * @returns
55
61
  */
56
62
  vtkImageResliceExecute: (input: vtkImageData, output: vtkImageData) => void;
57
63
 
@@ -72,137 +78,184 @@ export interface vtkImageReslice extends vtkImageResliceBase {
72
78
 
73
79
  /**
74
80
  * Compute the bounds required to ensure that none of the data will be cropped
75
- * @param input
76
- * @returns
81
+ * @param input
82
+ * @returns
77
83
  */
78
84
  getAutoCroppedOutputBounds: (input: vtkImageData) => Bounds;
79
85
 
80
86
  /**
81
87
  * The min and max of each data type
82
88
  * Defaults to a range of 0 to 255
83
- * @param dataType
84
- * @returns
89
+ * @param dataType
90
+ * @returns
85
91
  */
86
92
  getDataTypeMinMax: (dataType: string) => vtkRange;
87
93
 
88
94
  /**
89
95
  * Internal function uses vtkInterpolationMathClamp on `numscalars * n` elements
90
- * @param outPtr
91
- * @param inPtr
92
- * @param numscalars
93
- * @param n
94
- * @param min
95
- * @param max
96
+ * @param outPtr
97
+ * @param inPtr
98
+ * @param numscalars
99
+ * @param n
100
+ * @param min
101
+ * @param max
96
102
  * @returns The number of elements processed
97
103
  */
98
- clamp: (outPtr: TypedArray, inPtr: TypedArray, numscalars: number, n: number, min: number, max: number) => number;
104
+ clamp: (
105
+ outPtr: TypedArray,
106
+ inPtr: TypedArray,
107
+ numscalars: number,
108
+ n: number,
109
+ min: number,
110
+ max: number
111
+ ) => number;
99
112
 
100
113
  /**
101
114
  * Internal function uses Math.round on `numscalars * n` elements
102
- * @param outPtr
103
- * @param inPtr
104
- * @param numscalars
105
- * @param n
115
+ * @param outPtr
116
+ * @param inPtr
117
+ * @param numscalars
118
+ * @param n
106
119
  * @returns The number of elements processed
107
120
  */
108
- convert: (outPtr: TypedArray, inPtr: TypedArray, numscalars: number, n: number) => number;
121
+ convert: (
122
+ outPtr: TypedArray,
123
+ inPtr: TypedArray,
124
+ numscalars: number,
125
+ n: number
126
+ ) => number;
109
127
 
110
128
  /**
111
129
  * Setup the conversion function and return the right one
112
- * @param inputType
113
- * @param dataType
114
- * @param scalarShift
115
- * @param scalarScale
116
- * @param forceClamping
130
+ * @param inputType
131
+ * @param dataType
132
+ * @param scalarShift
133
+ * @param scalarScale
134
+ * @param forceClamping
117
135
  * @returns publicAPI.convert or publicAPI.clamp
118
136
  */
119
- getConversionFunc: (inputType: string, dataType: string, scalarShift: number, scalarScale: number, forceClamping: boolean) => (this["convert"] & this["clamp"]);
137
+ getConversionFunc: (
138
+ inputType: string,
139
+ dataType: string,
140
+ scalarShift: number,
141
+ scalarScale: number,
142
+ forceClamping: boolean
143
+ ) => this['convert'] & this['clamp'];
120
144
 
121
145
  /**
122
146
  * Copy the `numscalars * n` first elements from an array to another
123
- * @param outPtr
124
- * @param inPtr
125
- * @param numscalars
126
- * @param n
147
+ * @param outPtr
148
+ * @param inPtr
149
+ * @param numscalars
150
+ * @param n
127
151
  * @returns The number of copied elements
128
152
  */
129
- set: (outPtr: TypedArray, inPtr: TypedArray, numscalars: number, n: number) => number;
153
+ set: (
154
+ outPtr: TypedArray,
155
+ inPtr: TypedArray,
156
+ numscalars: number,
157
+ n: number
158
+ ) => number;
130
159
 
131
160
  /**
132
161
  * Fill the `n` first elements of the output array with the very first element of the input array
133
- * @param outPtr
134
- * @param inPtr
135
- * @param numscalars
136
- * @param n
162
+ * @param outPtr
163
+ * @param inPtr
164
+ * @param numscalars
165
+ * @param n
137
166
  * @returns The number of elements set in the output array
138
167
  */
139
- set1: (outPtr: TypedArray, inPtr: TypedArray, numscalars: number, n: number) => number;
168
+ set1: (
169
+ outPtr: TypedArray,
170
+ inPtr: TypedArray,
171
+ numscalars: number,
172
+ n: number
173
+ ) => number;
140
174
 
141
175
  /**
142
176
  * Returns the right function used to copy the pixels
143
- * @param dataType
144
- * @param dataSize
145
- * @param numscalars
146
- * @param dataPtr
177
+ * @param dataType
178
+ * @param dataSize
179
+ * @param numscalars
180
+ * @param dataPtr
147
181
  * @returns publicAPI.set or publicAPI.set1
148
182
  */
149
- getSetPixelsFunc: (dataType: any, dataSize: any, numscalars: number, dataPtr: any) => (this["set"] & this["set1"]);
183
+ getSetPixelsFunc: (
184
+ dataType: any,
185
+ dataSize: any,
186
+ numscalars: number,
187
+ dataPtr: any
188
+ ) => this['set'] & this['set1'];
150
189
 
151
190
  /**
152
191
  * Returns the right composition function
153
- * @param slabMode
154
- * @param slabTrapezoidIntegration
155
- * @returns
192
+ * @param slabMode
193
+ * @param slabTrapezoidIntegration
194
+ * @returns
156
195
  */
157
- getCompositeFunc: (slabMode: SlabMode, slabTrapezoidIntegration: boolean) => ((tmpPtr: TypedArray, inComponents: number, sampleCount: number) => void);
196
+ getCompositeFunc: (
197
+ slabMode: SlabMode,
198
+ slabTrapezoidIntegration: boolean
199
+ ) => (tmpPtr: TypedArray, inComponents: number, sampleCount: number) => void;
158
200
 
159
201
  /**
160
202
  * Apply `newTrans`, then translate by `-origin`, then scale by `inInvSpacing`
161
- * @param newTrans
162
- * @param inPoint
163
- * @param inOrigin
164
- * @param inInvSpacing
165
- * @returns
203
+ * @param newTrans
204
+ * @param inPoint
205
+ * @param inOrigin
206
+ * @param inInvSpacing
207
+ * @returns
166
208
  */
167
- applyTransform: (newTrans: mat4, inPoint: vec4, inOrigin: vec3, inInvSpacing: vec3) => void;
209
+ applyTransform: (
210
+ newTrans: mat4,
211
+ inPoint: vec4,
212
+ inOrigin: vec3,
213
+ inInvSpacing: vec3
214
+ ) => void;
168
215
 
169
216
  /**
170
- *
171
- * @param floatData
172
- * @param components
173
- * @param n
174
- * @param scalarShift
175
- * @param scalarScale
176
- * @returns
217
+ *
218
+ * @param floatData
219
+ * @param components
220
+ * @param n
221
+ * @param scalarShift
222
+ * @param scalarScale
223
+ * @returns
177
224
  */
178
- rescaleScalars: (floatData: TypedArray, components: number, n: number, scalarShift: number, scalarScale: number) => void;
225
+ rescaleScalars: (
226
+ floatData: TypedArray,
227
+ components: number,
228
+ n: number,
229
+ scalarShift: number,
230
+ scalarScale: number
231
+ ) => void;
179
232
 
180
233
  /**
181
234
  * A permutation matrix is the identity matrix with the colomn (or rows) shuffled
182
- * @param matrix
183
- * @returns
235
+ * @param matrix
236
+ * @returns
184
237
  */
185
238
  isPermutationMatrix: (matrix: mat4) => boolean;
186
239
 
187
240
  /**
188
- *
189
- * @param matrix
190
- * @returns
241
+ *
242
+ * @param matrix
243
+ * @returns
191
244
  */
192
245
  isIdentityMatrix: (matrix: mat4) => boolean;
193
246
 
194
247
  /**
195
- *
196
- * @param matrix
197
- * @returns
248
+ *
249
+ * @param matrix
250
+ * @returns
198
251
  */
199
252
  isPerspectiveMatrix: (matrix: mat4) => boolean;
200
253
 
201
254
  /**
202
- *
203
- * @param matrix
204
- * @param outExt
205
- * @returns
255
+ *
256
+ * @param matrix
257
+ * @param outExt
258
+ * @returns
206
259
  */
207
260
  canUseNearestNeighbor: (matrix: mat4, outExt: Extent) => boolean;
208
261
 
@@ -213,28 +266,28 @@ export interface vtkImageReslice extends vtkImageResliceBase {
213
266
  * The default is SlabMode.MIN. If SetSlabNumberOfSlices(N) is called with N
214
267
  * greater than one, then each output slice will actually be a composite of N
215
268
  * slices. This method specifies the compositing mode to be used.
216
- * @param slabMode
217
- * @returns
269
+ * @param slabMode
270
+ * @returns
218
271
  */
219
272
  setSlabMode: (slabMode: SlabMode) => boolean;
220
273
 
221
274
  /**
222
275
  * @see setSlabMode
223
- * @returns
276
+ * @returns
224
277
  */
225
278
  getSlabMode: () => SlabMode;
226
279
 
227
280
  /**
228
281
  * Set the number of slices that will be combined to create the slab.
229
282
  * Defaults to 1.
230
- * @param numberOfSlices
231
- * @returns
283
+ * @param numberOfSlices
284
+ * @returns
232
285
  */
233
286
  setSlabNumberOfSlices: (slabNumberOfSlices: number) => boolean;
234
287
 
235
288
  /**
236
289
  * @see setSlabNumberOfSlices
237
- * @returns
290
+ * @returns
238
291
  */
239
292
  getSlabNumberOfSlices: () => number;
240
293
 
@@ -244,14 +297,14 @@ export interface vtkImageReslice extends vtkImageResliceBase {
244
297
  * the ResliceAxes before applying them as the default output spacing, origin
245
298
  * and extent.
246
299
  * Defaults to false.
247
- * @param transformInputSampling
248
- * @returns
300
+ * @param transformInputSampling
301
+ * @returns
249
302
  */
250
303
  setTransformInputSampling: (transformInputSampling: boolean) => boolean;
251
304
 
252
305
  /**
253
306
  * @see setTransformInputSampling
254
- * @returns
307
+ * @returns
255
308
  */
256
309
  getTransformInputSampling: () => boolean;
257
310
 
@@ -259,14 +312,14 @@ export interface vtkImageReslice extends vtkImageResliceBase {
259
312
  * Turn this on if you want to guarantee that the extent of the output will
260
313
  * be large enough to ensure that none of the data will be cropped.
261
314
  * Defaults to false.
262
- * @param autoCropOutput
263
- * @returns
315
+ * @param autoCropOutput
316
+ * @returns
264
317
  */
265
318
  setAutoCropOutput: (autoCropOutput: boolean) => boolean;
266
319
 
267
320
  /**
268
321
  * @see setAutoCropOutput
269
- * @returns
322
+ * @returns
270
323
  */
271
324
  getAutoCropOutput: () => boolean;
272
325
 
@@ -278,14 +331,14 @@ export interface vtkImageReslice extends vtkImageResliceBase {
278
331
  * output extent is confined to the x axis. For 0D, the output extent
279
332
  * consists of a single voxel at (0,0,0).
280
333
  * Defaults to 3.
281
- * @param outputDimensionality
282
- * @returns
334
+ * @param outputDimensionality
335
+ * @returns
283
336
  */
284
337
  setOutputDimensionality: (outputDimensionality: number) => boolean;
285
338
 
286
339
  /**
287
340
  * @see setOutputDimensionality
288
- * @returns
341
+ * @returns
289
342
  */
290
343
  getOutputDimensionality: () => number;
291
344
 
@@ -294,14 +347,14 @@ export interface vtkImageReslice extends vtkImageResliceBase {
294
347
  * The default output spacing is the input spacing permuted through the
295
348
  * ResliceAxes.
296
349
  * Defaults to null (automatically computed).
297
- * @param outputSpacing
298
- * @returns
350
+ * @param outputSpacing
351
+ * @returns
299
352
  */
300
353
  setOutputSpacing: (outputSpacing: vec3 | null) => boolean;
301
354
 
302
355
  /**
303
356
  * @see setOutputSpacing
304
- * @returns
357
+ * @returns
305
358
  */
306
359
  getOutputSpacing: () => vec3 | null;
307
360
 
@@ -310,14 +363,14 @@ export interface vtkImageReslice extends vtkImageResliceBase {
310
363
  * The default output origin is the input origin permuted through the
311
364
  * ResliceAxes.
312
365
  * Defaults to null (automatically computed).
313
- * @param outputOrigin
314
- * @returns
366
+ * @param outputOrigin
367
+ * @returns
315
368
  */
316
369
  setOutputOrigin: (outputOrigin: vec3 | null) => boolean;
317
370
 
318
371
  /**
319
372
  * @see setOutputOrigin
320
- * @returns
373
+ * @returns
321
374
  */
322
375
  getOutputOrigin: () => vec3 | null;
323
376
 
@@ -326,14 +379,14 @@ export interface vtkImageReslice extends vtkImageResliceBase {
326
379
  * The default output extent is the input extent permuted through the
327
380
  * ResliceAxes.
328
381
  * Defaults to null (automatically computed).
329
- * @param outputExtent
330
- * @returns
382
+ * @param outputExtent
383
+ * @returns
331
384
  */
332
385
  setOutputExtent: (outputExtent: Extent | null) => boolean;
333
386
 
334
387
  /**
335
388
  * @see setOutputExtent
336
- * @returns
389
+ * @returns
337
390
  */
338
391
  getOutputExtent: () => Extent | null;
339
392
 
@@ -346,28 +399,28 @@ export interface vtkImageReslice extends vtkImageResliceBase {
346
399
  * changes the orientation of the sampling grid while maintaining the same
347
400
  * physical coordinate system.
348
401
  * Defaults to null (automatically computed).
349
- * @param outputDirection
350
- * @returns
402
+ * @param outputDirection
403
+ * @returns
351
404
  */
352
405
  setOutputDirection: (outputDirection: mat3 | null) => boolean;
353
406
 
354
407
  /**
355
408
  * @see setOutputDirection
356
- * @returns
409
+ * @returns
357
410
  */
358
411
  getOutputDirection: () => mat3 | null;
359
412
 
360
413
  /**
361
414
  * Set the background color (for multi-component images).
362
415
  * Defaults to full opaque black.
363
- * @param backgroundColor
364
- * @returns
416
+ * @param backgroundColor
417
+ * @returns
365
418
  */
366
419
  setBackgroundColor: (backgroundColor: RGBAColor) => boolean;
367
420
 
368
421
  /**
369
422
  * @see setBackgroundColor
370
- * @returns
423
+ * @returns
371
424
  */
372
425
  getBackgroundColor: () => RGBAColor;
373
426
 
@@ -382,14 +435,14 @@ export interface vtkImageReslice extends vtkImageResliceBase {
382
435
  * column specifies the y-axis, and the third column the
383
436
  * z-axis. The fourth column is the origin of the
384
437
  * axes (the fourth element must be set to one).
385
- * @param resliceAxes
386
- * @returns
438
+ * @param resliceAxes
439
+ * @returns
387
440
  */
388
441
  setResliceAxes: (resliceAxes: mat4) => boolean;
389
442
 
390
443
  /**
391
444
  * @see setResliceAxes
392
- * @returns
445
+ * @returns
393
446
  */
394
447
  getResliceAxes: () => mat4;
395
448
 
@@ -403,17 +456,17 @@ export interface vtkImageReslice extends vtkImageResliceBase {
403
456
  * VtkDataTypes.DOUBLE. Other types are not permitted. If the output type
404
457
  * is an integer type, the output will be rounded and clamped to the limits of
405
458
  * the type.
406
- *
459
+ *
407
460
  * See the documentation for [vtkDataArray::getDataType()](../api/Common_Core_DataArray.html#getDataType-String) for additional data type settings.
408
461
  * Defaults to null (automatically computed).
409
- * @param outputScalarType
410
- * @returns
462
+ * @param outputScalarType
463
+ * @returns
411
464
  */
412
465
  setOutputScalarType: (outputScalarType: string | null) => boolean;
413
466
 
414
467
  /**
415
468
  * @see setOutputScalarType
416
- * @returns
469
+ * @returns
417
470
  */
418
471
  getOutputScalarType: () => string | null;
419
472
 
@@ -424,14 +477,14 @@ export interface vtkImageReslice extends vtkImageResliceBase {
424
477
  * it is written to the output image. The result will always be clamped to
425
478
  * the limits of the output data type.
426
479
  * Defaults to 0.
427
- * @param scalarShift
428
- * @returns
480
+ * @param scalarShift
481
+ * @returns
429
482
  */
430
483
  setScalarShift: (scalarShift: number) => boolean;
431
484
 
432
485
  /**
433
486
  * @see setScalarShift
434
- * @returns
487
+ * @returns
435
488
  */
436
489
  getScalarShift: () => number;
437
490
 
@@ -442,42 +495,42 @@ export interface vtkImageReslice extends vtkImageResliceBase {
442
495
  * it is written to the output image. The result will always be clamped to
443
496
  * the limits of the output data type.
444
497
  * Defaults to 1.
445
- * @param scalarScale
446
- * @returns
498
+ * @param scalarScale
499
+ * @returns
447
500
  */
448
501
  setScalarScale: (scalarScale: number) => boolean;
449
502
 
450
503
  /**
451
504
  * @see setScalarScale
452
- * @returns
505
+ * @returns
453
506
  */
454
507
  getScalarScale: () => number;
455
508
 
456
509
  /**
457
510
  * Turn on wrap-pad feature.
458
511
  * Defaults to false.
459
- * @param wrap
460
- * @returns
512
+ * @param wrap
513
+ * @returns
461
514
  */
462
515
  setWrap: (wrap: boolean) => boolean;
463
516
 
464
517
  /**
465
518
  * @see setWrap
466
- * @returns
519
+ * @returns
467
520
  */
468
521
  getWrap: () => boolean;
469
522
 
470
523
  /**
471
524
  * Turn on mirror-pad feature. This will override the wrap-pad.
472
525
  * Defaults to false.
473
- * @param mirror
474
- * @returns
526
+ * @param mirror
527
+ * @returns
475
528
  */
476
529
  setMirror: (mirror: boolean) => boolean;
477
530
 
478
531
  /**
479
532
  * @see setMirror
480
- * @returns
533
+ * @returns
481
534
  */
482
535
  getMirror: () => boolean;
483
536
 
@@ -491,29 +544,29 @@ export interface vtkImageReslice extends vtkImageResliceBase {
491
544
  * the edges of the input.
492
545
  * This has no effect if Mirror or Wrap are on.
493
546
  * Defaults to true.
494
- * @param border
495
- * @returns
547
+ * @param border
548
+ * @returns
496
549
  */
497
550
  setBorder: (border: boolean) => boolean;
498
551
 
499
552
  /**
500
553
  * @see setBorder
501
- * @returns
554
+ * @returns
502
555
  */
503
556
  getBorder: () => boolean;
504
557
 
505
558
  /**
506
- * Set interpolation mode.
559
+ * Set interpolation mode.
507
560
  * Only nearest neighbor is supported at the moment.
508
561
  * Defaults to nearest neighbor.
509
- * @param interpolationMode
510
- * @returns
562
+ * @param interpolationMode
563
+ * @returns
511
564
  */
512
565
  setInterpolationMode: (interpolationMode: InterpolationMode) => boolean;
513
566
 
514
567
  /**
515
568
  * @see setInterpolationMode
516
- * @returns
569
+ * @returns
517
570
  */
518
571
  getInterpolationMode: () => InterpolationMode;
519
572
 
@@ -525,14 +578,14 @@ export interface vtkImageReslice extends vtkImageResliceBase {
525
578
  * that transform to the input volume. Nonlinear transforms such as
526
579
  * vtkGridTransform and vtkThinPlateSplineTransform can be used here.
527
580
  * Defaults to undefined.
528
- * @param resliceTransform
529
- * @returns
581
+ * @param resliceTransform
582
+ * @returns
530
583
  */
531
584
  setResliceTransform: (resliceTransform: vtkTransform | undefined) => boolean;
532
585
 
533
586
  /**
534
587
  * @see setResliceTransform
535
- * @returns
588
+ * @returns
536
589
  */
537
590
  getResliceTransform: () => vtkTransform | undefined;
538
591
 
@@ -541,14 +594,14 @@ export interface vtkImageReslice extends vtkImageResliceBase {
541
594
  * All this does is weigh the first and last slices by half when doing sum
542
595
  * and mean. It is off by default.
543
596
  * Defaults to false.
544
- * @param slabTrapezoidIntegration
545
- * @returns
597
+ * @param slabTrapezoidIntegration
598
+ * @returns
546
599
  */
547
600
  setSlabTrapezoidIntegration: (slabTrapezoidIntegration: boolean) => boolean;
548
601
 
549
602
  /**
550
603
  * @see setSlabTrapezoidIntegration
551
- * @returns
604
+ * @returns
552
605
  */
553
606
  getSlabTrapezoidIntegration: () => boolean;
554
607
 
@@ -561,14 +614,14 @@ export interface vtkImageReslice extends vtkImageResliceBase {
561
614
  * method sets the spacing between these temporary slices to be a fraction of
562
615
  * the output spacing.
563
616
  * Defaults to 1.
564
- * @param slabSliceSpacingFraction
565
- * @returns
617
+ * @param slabSliceSpacingFraction
618
+ * @returns
566
619
  */
567
620
  setSlabSliceSpacingFraction: (slabSliceSpacingFraction: number) => boolean;
568
621
 
569
622
  /**
570
623
  * @see setSlabSliceSpacingFraction
571
- * @returns
624
+ * @returns
572
625
  */
573
626
  getSlabSliceSpacingFraction: () => number;
574
627
  }
@@ -580,18 +633,23 @@ export interface vtkImageReslice extends vtkImageResliceBase {
580
633
  * @param model object on which data structure will be bounds (protected)
581
634
  * @param {IImageResliceInitialValues} [initialValues] (default: {})
582
635
  */
583
- export function extend(publicAPI: object, model: object, initialValues?: IImageResliceInitialValues): void;
636
+ export function extend(
637
+ publicAPI: object,
638
+ model: object,
639
+ initialValues?: IImageResliceInitialValues
640
+ ): void;
584
641
 
585
642
  /**
586
643
  * Method used to create a new instance of vtkImageReslice
587
644
  * @param {IImageResliceInitialValues} [initialValues] for pre-setting some of its content
588
645
  */
589
- export function newInstance(initialValues?: IImageResliceInitialValues): vtkImageReslice;
590
-
646
+ export function newInstance(
647
+ initialValues?: IImageResliceInitialValues
648
+ ): vtkImageReslice;
591
649
 
592
650
  /**
593
651
  * vtkImageReslice - Reslices a volume along a new set of axes
594
- *
652
+ *
595
653
  * vtkImageReslice is the swiss-army-knife of image geometry filters:
596
654
  * It can permute, rotate, flip, scale, resample, deform, and pad image
597
655
  * data in any combination with reasonably high efficiency. Simple
@@ -610,7 +668,7 @@ export function newInstance(initialValues?: IImageResliceInitialValues): vtkImag
610
668
  * volume that you have applied a transformation to.
611
669
  * */
612
670
  export declare const vtkImageReslice: {
613
- newInstance: typeof newInstance;
614
- extend: typeof extend;
615
- }
671
+ newInstance: typeof newInstance;
672
+ extend: typeof extend;
673
+ };
616
674
  export default vtkImageReslice;