@kitware/vtk.js 30.6.0 → 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 (206) 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 -217
  193. package/Widgets/Manipulators/LineManipulator.d.ts +33 -21
  194. package/Widgets/Manipulators/PickerManipulator.d.ts +22 -18
  195. package/Widgets/Manipulators/PlaneManipulator.d.ts +33 -22
  196. package/Widgets/Manipulators/TrackballManipulator.d.ts +40 -26
  197. package/Widgets/Representations/WidgetRepresentation.d.ts +62 -51
  198. package/Widgets/Widgets3D/ImplicitPlaneWidget.js +23 -5
  199. package/Widgets/Widgets3D/InteractiveOrientationWidget.d.ts +25 -10
  200. package/Widgets/Widgets3D/ResliceCursorWidget/Constants.d.ts +26 -7
  201. package/Widgets/Widgets3D/ResliceCursorWidget/behavior.d.ts +13 -12
  202. package/Widgets/Widgets3D/ResliceCursorWidget.d.ts +26 -15
  203. package/Widgets/Widgets3D/SeedWidget.d.ts +2 -2
  204. package/Widgets/Widgets3D/SphereWidget.d.ts +5 -3
  205. package/interfaces.d.ts +243 -243
  206. package/package.json +3 -3
@@ -1,732 +1,740 @@
1
1
  import { mat4 } from 'gl-matrix';
2
- import { vtkObject } from './../../interfaces' ;
2
+ import { vtkObject } from './../../interfaces';
3
3
  import { Bounds, Vector3, Range } from './../../types';
4
4
 
5
5
  /**
6
- *
6
+ *
7
7
  */
8
8
  export interface ICameraInitialValues {
9
- position?: number[];
10
- focalPoint?: number[];
11
- viewUp?: number[];
12
- directionOfProjection?: number[];
13
- parallelProjection?: boolean;
14
- useHorizontalViewAngle?: boolean;
15
- viewAngle?: number;
16
- parallelScale?: number;
17
- clippingRange?: number[];
18
- windowCenter?: number[];
19
- viewPlaneNormal?: number[];
20
- useOffAxisProjection?: boolean;
21
- screenBottomLeft?: number[];
22
- screenBottomRight?: number[];
23
- screenTopRight?: number[];
24
- freezeFocalPoint?: boolean;
25
- physicalTranslation?: number[];
26
- physicalScale?: number;
27
- physicalViewUp?: number[];
28
- physicalViewNorth?: number[];
9
+ position?: number[];
10
+ focalPoint?: number[];
11
+ viewUp?: number[];
12
+ directionOfProjection?: number[];
13
+ parallelProjection?: boolean;
14
+ useHorizontalViewAngle?: boolean;
15
+ viewAngle?: number;
16
+ parallelScale?: number;
17
+ clippingRange?: number[];
18
+ windowCenter?: number[];
19
+ viewPlaneNormal?: number[];
20
+ useOffAxisProjection?: boolean;
21
+ screenBottomLeft?: number[];
22
+ screenBottomRight?: number[];
23
+ screenTopRight?: number[];
24
+ freezeFocalPoint?: boolean;
25
+ physicalTranslation?: number[];
26
+ physicalScale?: number;
27
+ physicalViewUp?: number[];
28
+ physicalViewNorth?: number[];
29
29
  }
30
30
 
31
31
  export interface vtkCamera extends vtkObject {
32
-
33
- /**
34
- * Apply a transform to the camera.
35
- * The camera position, focal-point, and view-up are re-calculated
36
- * using the transform's matrix to multiply the old points by the new transform.
37
- * @param {mat4} transformMat4 Transform matrix.
38
- */
39
- applyTransform(transformMat4: mat4): void;
40
-
41
- /**
42
- * Rotate the camera about the view up vector centered at the focal point.
43
- * @param {Number} angle The angle value.
44
- */
45
- azimuth(angle: number): void;
46
-
47
- /**
48
- *
49
- * @param {Bounds} bounds The bounds value.
50
- */
51
- computeClippingRange(bounds: Bounds): Range;
52
-
53
- /**
54
- * This method must be called when the focal point or camera position changes
55
- */
56
- computeDistance(): void;
57
-
58
- /**
59
- *
60
- */
61
- computeCameraLightTransform(): void;
62
-
63
- /**
64
- * the provided matrix should include translation and orientation only mat
65
- * is physical to view
66
- * @param {mat4} mat The physical matrix.
67
- */
68
- computeViewParametersFromPhysicalMatrix(mat: mat4): void;
69
-
70
- /**
71
- *
72
- * @param {mat4} vmat The view matrix.
73
- */
74
- computeViewParametersFromViewMatrix(vmat: mat4): void;
75
-
76
- /**
77
- * Not implemented yet
78
- * @param {vtkCamera} sourceCamera The camera source.
79
- */
80
- deepCopy(sourceCamera: vtkCamera): void;
81
-
82
- /**
83
- * Move the position of the camera along the view plane normal. Moving
84
- * towards the focal point (e.g., > 1) is a dolly-in, moving away
85
- * from the focal point (e.g., < 1) is a dolly-out.
86
- * @param {Number} amount The amount value.
87
- */
88
- dolly(amount: number): void;
89
-
90
- /**
91
- * Rotate the camera about the cross product of the negative of the
92
- * direction of projection and the view up vector, using the focal point as
93
- * the center of rotation.
94
- * @param {Number} angle The angle value.
95
- */
96
- elevation(angle: number): void;
97
-
98
- /**
99
- * Not implemented yet
100
- */
101
- getCameraLightTransformMatrix(): void;
102
-
103
- /**
104
- * Get the location of the near and far clipping planes along the direction
105
- * of projection.
106
- */
107
- getClippingRange(): Range;
108
-
109
- /**
110
- * Get the location of the near and far clipping planes along the direction
111
- * of projection.
112
- */
113
- getClippingRangeByReference(): Range;
114
-
115
- /**
116
- *
117
- * @param {Number} aspect Camera frustum aspect ratio.
118
- * @param {Number} nearz Camera frustum near plane.
119
- * @param {Number} farz Camera frustum far plane.
120
- */
121
- getCompositeProjectionMatrix(aspect: number, nearz: number, farz: number): mat4;
122
-
123
- /**
124
- * Get the vector in the direction from the camera position to the focal
125
- * point.
126
- */
127
- getDirectionOfProjection(): Vector3;
128
-
129
- /**
130
- * Get the vector in the direction from the camera position to the focal
131
- * point.
132
- */
133
- getDirectionOfProjectionByReference(): Vector3;
134
-
135
- /**
136
- * Get the distance from the camera position to the focal point.
137
- */
138
- getDistance(): number;
139
-
140
- /**
141
- * Get the focal of the camera in world coordinates.
142
- */
143
- getFocalPoint(): Vector3;
144
-
145
- /**
146
- * Get the focal of the camera in world coordinates.
147
- */
148
- getFocalPointByReference(): Vector3;
149
-
150
- /**
151
- * Get the value of the FreezeDolly instance variable.
152
- */
153
- getFreezeFocalPoint(): boolean;
154
-
155
- /**
156
- * Not implemented yet
157
- * Get the plane equations that bound the view frustum.
158
- * @param {Number} aspect Camera frustum aspect ratio.
159
- */
160
- getFrustumPlanes(aspect: number): void;
161
-
162
- /**
163
- * Not implemented yet
164
- * Get the orientation of the camera.
165
- */
166
- getOrientation(): void;
167
-
168
- /**
169
- * Not implemented yet
170
- * Get the orientation of the camera.
171
- */
172
- getOrientationWXYZ(): void;
173
-
174
- /**
175
- * Get the value of the ParallelProjection instance variable.
176
- * This determines if the camera should do a perspective or parallel projection.
177
- */
178
- getParallelProjection(): boolean;
179
-
180
- /**
181
- * Get the scaling used for a parallel projection.
182
- */
183
- getParallelScale(): number;
184
-
185
- /**
186
- *
187
- */
188
- getPhysicalScale(): number;
189
-
190
- /**
191
- *
192
- * @param {mat4} result The world matrix.
193
- */
194
- getPhysicalToWorldMatrix(result: mat4): void;
195
-
196
- /**
197
- *
198
- */
199
- getPhysicalTranslation(): number[];
200
-
201
- /**
202
- *
203
- */
204
- getPhysicalTranslationByReference(): number[];
205
-
206
- /**
207
- *
208
- */
209
- getPhysicalViewNorth(): number[];
210
-
211
- /**
212
- *
213
- */
214
- getPhysicalViewNorthByReference(): number[];
215
-
216
- /**
217
- *
218
- */
219
- getPhysicalViewUp(): number[];
220
-
221
- /**
222
- *
223
- */
224
- getPhysicalViewUpByReference(): number[];
225
-
226
- /**
227
- * Get the position of the camera in world coordinates.
228
- */
229
- getPosition(): Vector3;
230
-
231
- /**
232
- * Get the position of the camera in world coordinates.
233
- */
234
- getPositionByReference(): Vector3;
235
-
236
- /**
237
- * Get the projection matrix.
238
- * @param {Number} aspect Camera frustum aspect ratio.
239
- * @param {Number} nearz Camera frustum near plane.
240
- * @param {Number} farz Camera frustum far plane.
241
- */
242
- getProjectionMatrix(aspect: number, nearz: number, farz: number): mat4;
243
-
244
- /**
245
- * Not implemented yet
246
- * Get the roll angle of the camera about the direction of projection.
247
- */
248
- getRoll(): void;
249
-
250
- /**
251
- * Get top left corner point of the screen.
252
- */
253
- getScreenBottomLeft(): Vector3;
254
-
255
- /**
256
- *
257
- */
258
- getScreenBottomLeftByReference(): Vector3;
259
-
260
- /**
261
- * Get bottom left corner point of the screen
262
- */
263
- getScreenBottomRight(): Vector3;
264
-
265
- /**
266
- *
267
- */
268
- getScreenBottomRightByReference(): Vector3;
269
-
270
- /**
271
- *
272
- */
273
- getScreenTopRight(): Vector3;
274
-
275
- /**
276
- *
277
- */
278
- getScreenTopRightByReference(): Vector3;
279
-
280
- /**
281
- * Get the center of the window in viewport coordinates.
282
- */
283
- getThickness(): number;
284
-
285
- /**
286
- * Get the value of the UseHorizontalViewAngle.
287
- */
288
- getUseHorizontalViewAngle(): boolean;
289
-
290
- /**
291
- * Get use offaxis frustum.
292
- */
293
- getUseOffAxisProjection(): boolean;
294
-
295
- /**
296
- * Get the camera view angle.
297
- */
298
- getViewAngle(): number;
299
-
300
- /**
301
- *
302
- */
303
- getViewMatrix(): mat4;
304
-
305
- /**
306
- * Get the ViewPlaneNormal.
307
- * This vector will point opposite to the direction of projection,
308
- * unless you have created a sheared output view using SetViewShear/SetObliqueAngles.
309
- */
310
- getViewPlaneNormal(): Vector3;
311
-
312
- /**
313
- * Get the ViewPlaneNormal by reference.
314
- */
315
- getViewPlaneNormalByReference(): Vector3;
316
-
317
- /**
318
- * Get ViewUp vector.
319
- */
320
- getViewUp(): Vector3;
321
-
322
- /**
323
- * Get ViewUp vector by reference.
324
- */
325
- getViewUpByReference(): Vector3;
326
-
327
- /**
328
- * Get the center of the window in viewport coordinates.
329
- * The viewport coordinate range is ([-1,+1],[-1,+1]).
330
- */
331
- getWindowCenter(): Range;
332
-
333
- /**
334
- *
335
- */
336
- getWindowCenterByReference(): Range;
337
-
338
- /**
339
- *
340
- * @param {mat4} result
341
- */
342
- getWorldToPhysicalMatrix(result: mat4): void;
343
-
344
- /**
345
- * Recompute the ViewUp vector to force it to be perpendicular to
346
- * camera.focalpoint vector.
347
- */
348
- orthogonalizeViewUp(): void;
349
-
350
- /**
351
- *
352
- * @param {Number[]} ori
353
- */
354
- physicalOrientationToWorldDirection(ori: number[]): any;
355
-
356
- /**
357
- * Rotate the focal point about the cross product of the view up vector and
358
- * the direction of projection, using the camera's position as the center of
359
- * rotation.
360
- * @param {Number} angle The value of the angle.
361
- */
362
- pitch(angle: number): void;
363
-
364
- /**
365
- * Rotate the camera about the direction of projection.
366
- * @param {Number} angle The value of the angle.
367
- */
368
- roll(angle: number): void;
369
-
370
- /**
371
- * Set the location of the near and far clipping planes along the direction
372
- * of projection.
373
- * @param {Number} near The near clipping planes.
374
- * @param {Number} far The far clipping planes.
375
- */
376
- setClippingRange(near: number, far: number): boolean;
377
-
378
- /**
379
- * Set the location of the near and far clipping planes along the direction
380
- * of projection.
381
- * @param {Range} clippingRange
382
- */
383
- setClippingRange(clippingRange: Range): boolean;
384
-
385
- /**
386
- * Set the location of the near and far clipping planes along the direction
387
- * of projection.
388
- * @param {Range} clippingRange
389
- */
390
- setClippingRangeFrom(clippingRange: Range): boolean;
391
-
392
- /**
393
- * Used to handle convert js device orientation angles
394
- * when you use this method the camera will adjust to the
395
- * device orientation such that the physicalViewUp you set
396
- * in world coordinates looks up, and the physicalViewNorth
397
- * you set in world coorindates will (maybe) point north
398
- *
399
- * NOTE WARNING - much of the documentation out there on how
400
- * orientation works is seriously wrong. Even worse the Chrome
401
- * device orientation simulator is completely wrong and should
402
- * never be used. OMG it is so messed up.
403
- *
404
- * how it seems to work on iOS is that the device orientation
405
- * is specified in extrinsic angles with a alpha, beta, gamma
406
- * convention with axes of Z, X, Y (the code below substitutes
407
- * the physical coordinate system for these axes to get the right
408
- * modified coordinate system.
409
- * @param {Number} alpha The value of the alpha.
410
- * @param {Number} beta The value of the beta.
411
- * @param {Number} gamma The value of the gamma.
412
- * @param {Number} screen The value of the screen.
413
- */
414
- setDeviceAngles(alpha: number, beta: number, gamma: number, screen: number): boolean;
415
-
416
- /**
417
- * Set the direction of projection.
418
- * @param {Number} x The x coordinate.
419
- * @param {Number} y The y coordinate.
420
- * @param {Number} z The z coordinate.
421
- */
422
- setDirectionOfProjection(x: number, y: number, z: number): boolean;
423
-
424
- /**
425
- * Move the focal point so that it is the specified distance from the camera
426
- * position.
427
- *
428
- * This distance must be positive.
429
- * @param {Number} distance The value of the distance.
430
- */
431
- setDistance(distance: number): boolean;
432
-
433
- /**
434
- * Set the focal of the camera in world coordinates.
435
- * @param {Number} x The x coordinate.
436
- * @param {Number} y The y coordinate.
437
- * @param {Number} z The z coordinate.
438
- */
439
- setFocalPoint(x: number, y: number, z: number): boolean;
440
-
441
- /**
442
- * Set the focal of the camera in world coordinates.
443
- * @param {Vector3} focalPoint
444
- */
445
- setFocalPointFrom(focalPoint: Vector3): boolean;
446
-
447
- /**
448
- * Set the value of the FreezeDolly instance variable.
449
- * @param {Boolean} freezeFocalPoint
450
- */
451
- setFreezeFocalPoint(freezeFocalPoint: boolean): boolean;
452
-
453
- /**
454
- * Not implement yet
455
- * Set the oblique viewing angles.
456
- * The first angle, alpha, is the angle (measured from the horizontal) that
457
- * rays along the direction of projection will follow once projected onto
458
- * the 2D screen. The second angle, beta, is the angle between the view
459
- * plane and the direction of projection. This creates a shear transform x'
460
- * = x + dz*cos(alpha)/tan(beta), y' = dz*sin(alpha)/tan(beta) where dz is
461
- * the distance of the point from the focal plane. The angles are (45,90) by
462
- * default. Oblique projections commonly use (30,63.435).
463
- *
464
- * @param {Number} alpha The aplha angle value.
465
- * @param {Number} beta The beta angle value.
466
- */
467
- setObliqueAngles(alpha: number, beta: number): boolean;
468
-
469
- /**
470
- * Set the value of the OrientationWXYZ.
471
- * @param {Number} degrees
472
- * @param {Number} x The x coordinate.
473
- * @param {Number} y The y coordinate.
474
- * @param {Number} z The z coordinate.
475
- */
476
- setOrientationWXYZ(degrees: number, x: number, y: number, z: number): boolean;
477
-
478
- /**
479
- * Set the value of the ParallelProjection.
480
- * @param {Boolean} parallelProjection The value of the parallelProjection.
481
- */
482
- setParallelProjection(parallelProjection: boolean): boolean;
483
-
484
- /**
485
- * Set the value of the parallelScale.
486
- * @param {Number} parallelScale The value of the parallelScale.
487
- */
488
- setParallelScale(parallelScale: number): boolean;
489
-
490
- /**
491
- * Set the value of the physicalScale.
492
- * @param {Number} physicalScale The value of the the physicalScale.
493
- */
494
- setPhysicalScale(physicalScale: number): boolean;
495
-
496
- /**
497
- * Set the value of the physicalTranslation.
498
- * @param {Number} x The x coordinate.
499
- * @param {Number} y The y coordinate.
500
- * @param {Number} z The z coordinate.
501
- */
502
- setPhysicalTranslation(x: number, y: number, z: number): boolean;
503
-
504
- /**
505
- * Set the value of the physicalTranslation.
506
- * @param {Number[]} physicalTranslation The value of the physicalTranslation.
507
- */
508
- setPhysicalTranslationFrom(physicalTranslation: number[]): boolean;
509
-
510
- /**
511
- *
512
- * @param {Number} x The x coordinate.
513
- * @param {Number} y The y coordinate.
514
- * @param {Number} z The z coordinate.
515
- */
516
- setPhysicalViewNorth(x: number, y: number, z: number): boolean;
517
-
518
- /**
519
- *
520
- * @param {Number[]} physicalViewNorth
521
- */
522
- setPhysicalViewNorthFrom(physicalViewNorth: number[]): boolean;
523
-
524
- /**
525
- *
526
- * @param {Number} x The x coordinate.
527
- * @param {Number} y The y coordinate.
528
- * @param {Number} z The z coordinate.
529
- */
530
- setPhysicalViewUp(x: number, y: number, z: number): boolean;
531
-
532
- /**
533
- *
534
- * @param {Number[]} physicalViewUp
535
- */
536
- setPhysicalViewUpFrom(physicalViewUp: number[]): boolean;
537
-
538
- /**
539
- * Set the position of the camera in world coordinates.
540
- * @param {Number} x The x coordinate.
541
- * @param {Number} y The y coordinate.
542
- * @param {Number} z The z coordinate.
543
- */
544
- setPosition(x: number, y: number, z: number): boolean;
545
-
546
- /**
547
- *
548
- * @param {mat4} mat
549
- */
550
- setProjectionMatrix(mat: mat4): boolean;
551
-
552
- /**
553
- * Set the roll angle of the camera about the direction of projection.
554
- * @todo Not implemented yet
555
- * @param {Number} angle The value of the roll angle.
556
- */
557
- setRoll(angle: number): boolean;
558
-
559
- /**
560
- * Set top left corner point of the screen.
561
- *
562
- * This will be used only for offaxis frustum calculation.
563
- * @param {Number} x The x coordinate.
564
- * @param {Number} y The y coordinate.
565
- * @param {Number} z The z coordinate.
566
- */
567
- setScreenBottomLeft(x: number, y: number, z: number): boolean;
568
-
569
- /**
570
- * Set top left corner point of the screen.
571
- *
572
- * This will be used only for offaxis frustum calculation.
573
- * @param {Vector3} screenBottomLeft The screenBottomLeft coordiante.
574
- */
575
- setScreenBottomLeft(screenBottomLeft: Vector3): boolean;
576
-
577
- /**
578
- * Set top left corner point of the screen.
579
- * @param {Vector3} screenBottomLeft The screenBottomLeft coordiante.
580
- */
581
- setScreenBottomLeftFrom(screenBottomLeft: Vector3): boolean;
582
-
583
- /**
584
- *
585
- * @param {Number} x The x coordinate.
586
- * @param {Number} y The y coordinate.
587
- * @param {Number} z The z coordinate.
588
- */
589
- setScreenBottomRight(x: number, y: number, z: number): boolean;
590
-
591
- /**
592
- * Set bottom right corner point of the screen.
593
- * @param {Vector3} screenBottomRight The screenBottomRight coordiante.
594
- */
595
- setScreenBottomRight(screenBottomRight: Vector3): boolean;
596
-
597
- /**
598
- * Set bottom right corner point of the screen.
599
- * @param {Vector3} screenBottomRight The screenBottomRight coordiante.
600
- */
601
- setScreenBottomRightFrom(screenBottomRight: Vector3): boolean;
602
-
603
- /**
604
- * Set top right corner point of the screen.
605
- *
606
- * This will be used only for offaxis frustum calculation.
607
- * @param {Number} x The x coordinate.
608
- * @param {Number} y The y coordinate.
609
- * @param {Number} z The z coordinate.
610
- */
611
- setScreenTopRight(x: number, y: number, z: number): boolean;
612
-
613
- /**
614
- * Set top right corner point of the screen.
615
- *
616
- * This will be used only for offaxis frustum calculation.
617
- * @param {Vector3} screenTopRight The screenTopRight coordiante.
618
- */
619
- setScreenTopRight(screenTopRight: Vector3): boolean;
620
-
621
- /**
622
- * Set top right corner point of the screen.
623
- * @param {Vector3} screenTopRight The screenTopRight coordiante.
624
- */
625
- setScreenTopRightFrom(screenTopRight: Vector3): boolean;
626
-
627
- /**
628
- * Set the distance between clipping planes.
629
- *
630
- * This method adjusts the far clipping plane to be set a distance
631
- * 'thickness' beyond the near clipping plane.
632
- * @param {Number} thickness
633
- */
634
- setThickness(thickness: number): boolean;
635
-
636
- /**
637
- *
638
- * @param {Number} thickness The value of the thickness.
639
- */
640
- setThicknessFromFocalPoint(thickness: number): boolean;
641
-
642
- /**
643
- * Set the value of the useHorizontalViewAngle.
644
- * @param {Boolean} useHorizontalViewAngle The value of the useHorizontalViewAngle.
645
- */
646
- setUseHorizontalViewAngle(useHorizontalViewAngle: boolean): boolean;
647
-
648
- /**
649
- * Set use offaxis frustum.
650
- *
651
- * OffAxis frustum is used for off-axis frustum calculations specifically for
652
- * stereo rendering. For reference see "High Resolution Virtual Reality", in
653
- * Proc. SIGGRAPH '92, Computer Graphics, pages 195-202, 1992.
654
- * @param {Boolean} useOffAxisProjection The value of the useOffAxisProjection.
655
- */
656
- setUseOffAxisProjection(useOffAxisProjection: boolean): boolean;
657
-
658
- /**
659
- * Set the camera view angle, which is the angular height of the camera view
660
- * measured in degrees.
661
- * @param {Number} viewAngle The value of the viewAngle.
662
- */
663
- setViewAngle(viewAngle: number): boolean;
664
-
665
- /**
666
- * Set the view matrix for the camera.
667
- * @param {mat4} mat The value of the view matrix.
668
- */
669
- setViewMatrix(mat: mat4): boolean;
670
-
671
- /**
672
- * Set the view up direction for the camera.
673
- * @param {Number} x The x coordinate.
674
- * @param {Number} y The y coordinate.
675
- * @param {Number} z The z coordinate.
676
- */
677
- setViewUp(x: number, y: number, z: number): boolean;
678
-
679
- /**
680
- * Set the view up direction for the camera.
681
- * @param {Vector3} viewUp The viewUp coordinate.
682
- */
683
- setViewUp(viewUp: Vector3): boolean;
684
-
685
- /**
686
- * Set the view up direction for the camera.
687
- * @param {Vector3} viewUp The viewUp coordinate.
688
- */
689
- setViewUpFrom(viewUp: Vector3): boolean;
690
-
691
- /**
692
- * Set the center of the window in viewport coordinates.
693
- *
694
- * The viewport coordinate range is ([-1,+1],[-1,+1]).
695
- *
696
- * This method is for if you have one window which consists of several
697
- * viewports, or if you have several screens which you want to act together
698
- * as one large screen.
699
- * @param {Number} x The x coordinate.
700
- * @param {Number} y The y coordinate.
701
- */
702
- setWindowCenter(x: number, y: number): boolean;
703
-
704
- /**
705
- * Set the center of the window in viewport coordinates from an array.
706
- * @param {Range} windowCenter
707
- */
708
- setWindowCenterFrom(windowCenter: Range): boolean;
709
-
710
- /**
711
- *
712
- * @param {Number} x The x coordinate.
713
- * @param {Number} y The y coordinate.
714
- * @param {Number} z The z coordinate.
715
- */
716
- translate(x: number, y: number, z: number): void;
717
-
718
- /**
719
- * Rotate the focal point about the view up vector, using the camera's
720
- * position as the center of rotation.
721
- * @param {Number} angle The value of the angle.
722
- */
723
- yaw(angle: number): void;
724
-
725
- /**
726
- * In perspective mode, decrease the view angle by the specified factor.
727
- * @param {Number} factor The value of the zoom factor.
728
- */
729
- zoom(factor: number): void;
32
+ /**
33
+ * Apply a transform to the camera.
34
+ * The camera position, focal-point, and view-up are re-calculated
35
+ * using the transform's matrix to multiply the old points by the new transform.
36
+ * @param {mat4} transformMat4 Transform matrix.
37
+ */
38
+ applyTransform(transformMat4: mat4): void;
39
+
40
+ /**
41
+ * Rotate the camera about the view up vector centered at the focal point.
42
+ * @param {Number} angle The angle value.
43
+ */
44
+ azimuth(angle: number): void;
45
+
46
+ /**
47
+ *
48
+ * @param {Bounds} bounds The bounds value.
49
+ */
50
+ computeClippingRange(bounds: Bounds): Range;
51
+
52
+ /**
53
+ * This method must be called when the focal point or camera position changes
54
+ */
55
+ computeDistance(): void;
56
+
57
+ /**
58
+ *
59
+ */
60
+ computeCameraLightTransform(): void;
61
+
62
+ /**
63
+ * the provided matrix should include translation and orientation only mat
64
+ * is physical to view
65
+ * @param {mat4} mat The physical matrix.
66
+ */
67
+ computeViewParametersFromPhysicalMatrix(mat: mat4): void;
68
+
69
+ /**
70
+ *
71
+ * @param {mat4} vmat The view matrix.
72
+ */
73
+ computeViewParametersFromViewMatrix(vmat: mat4): void;
74
+
75
+ /**
76
+ * Not implemented yet
77
+ * @param {vtkCamera} sourceCamera The camera source.
78
+ */
79
+ deepCopy(sourceCamera: vtkCamera): void;
80
+
81
+ /**
82
+ * Move the position of the camera along the view plane normal. Moving
83
+ * towards the focal point (e.g., > 1) is a dolly-in, moving away
84
+ * from the focal point (e.g., < 1) is a dolly-out.
85
+ * @param {Number} amount The amount value.
86
+ */
87
+ dolly(amount: number): void;
88
+
89
+ /**
90
+ * Rotate the camera about the cross product of the negative of the
91
+ * direction of projection and the view up vector, using the focal point as
92
+ * the center of rotation.
93
+ * @param {Number} angle The angle value.
94
+ */
95
+ elevation(angle: number): void;
96
+
97
+ /**
98
+ * Not implemented yet
99
+ */
100
+ getCameraLightTransformMatrix(): void;
101
+
102
+ /**
103
+ * Get the location of the near and far clipping planes along the direction
104
+ * of projection.
105
+ */
106
+ getClippingRange(): Range;
107
+
108
+ /**
109
+ * Get the location of the near and far clipping planes along the direction
110
+ * of projection.
111
+ */
112
+ getClippingRangeByReference(): Range;
113
+
114
+ /**
115
+ *
116
+ * @param {Number} aspect Camera frustum aspect ratio.
117
+ * @param {Number} nearz Camera frustum near plane.
118
+ * @param {Number} farz Camera frustum far plane.
119
+ */
120
+ getCompositeProjectionMatrix(
121
+ aspect: number,
122
+ nearz: number,
123
+ farz: number
124
+ ): mat4;
125
+
126
+ /**
127
+ * Get the vector in the direction from the camera position to the focal
128
+ * point.
129
+ */
130
+ getDirectionOfProjection(): Vector3;
131
+
132
+ /**
133
+ * Get the vector in the direction from the camera position to the focal
134
+ * point.
135
+ */
136
+ getDirectionOfProjectionByReference(): Vector3;
137
+
138
+ /**
139
+ * Get the distance from the camera position to the focal point.
140
+ */
141
+ getDistance(): number;
142
+
143
+ /**
144
+ * Get the focal of the camera in world coordinates.
145
+ */
146
+ getFocalPoint(): Vector3;
147
+
148
+ /**
149
+ * Get the focal of the camera in world coordinates.
150
+ */
151
+ getFocalPointByReference(): Vector3;
152
+
153
+ /**
154
+ * Get the value of the FreezeDolly instance variable.
155
+ */
156
+ getFreezeFocalPoint(): boolean;
157
+
158
+ /**
159
+ * Not implemented yet
160
+ * Get the plane equations that bound the view frustum.
161
+ * @param {Number} aspect Camera frustum aspect ratio.
162
+ */
163
+ getFrustumPlanes(aspect: number): void;
164
+
165
+ /**
166
+ * Not implemented yet
167
+ * Get the orientation of the camera.
168
+ */
169
+ getOrientation(): void;
170
+
171
+ /**
172
+ * Not implemented yet
173
+ * Get the orientation of the camera.
174
+ */
175
+ getOrientationWXYZ(): void;
176
+
177
+ /**
178
+ * Get the value of the ParallelProjection instance variable.
179
+ * This determines if the camera should do a perspective or parallel projection.
180
+ */
181
+ getParallelProjection(): boolean;
182
+
183
+ /**
184
+ * Get the scaling used for a parallel projection.
185
+ */
186
+ getParallelScale(): number;
187
+
188
+ /**
189
+ *
190
+ */
191
+ getPhysicalScale(): number;
192
+
193
+ /**
194
+ *
195
+ * @param {mat4} result The world matrix.
196
+ */
197
+ getPhysicalToWorldMatrix(result: mat4): void;
198
+
199
+ /**
200
+ *
201
+ */
202
+ getPhysicalTranslation(): number[];
203
+
204
+ /**
205
+ *
206
+ */
207
+ getPhysicalTranslationByReference(): number[];
208
+
209
+ /**
210
+ *
211
+ */
212
+ getPhysicalViewNorth(): number[];
213
+
214
+ /**
215
+ *
216
+ */
217
+ getPhysicalViewNorthByReference(): number[];
218
+
219
+ /**
220
+ *
221
+ */
222
+ getPhysicalViewUp(): number[];
223
+
224
+ /**
225
+ *
226
+ */
227
+ getPhysicalViewUpByReference(): number[];
228
+
229
+ /**
230
+ * Get the position of the camera in world coordinates.
231
+ */
232
+ getPosition(): Vector3;
233
+
234
+ /**
235
+ * Get the position of the camera in world coordinates.
236
+ */
237
+ getPositionByReference(): Vector3;
238
+
239
+ /**
240
+ * Get the projection matrix.
241
+ * @param {Number} aspect Camera frustum aspect ratio.
242
+ * @param {Number} nearz Camera frustum near plane.
243
+ * @param {Number} farz Camera frustum far plane.
244
+ */
245
+ getProjectionMatrix(aspect: number, nearz: number, farz: number): mat4;
246
+
247
+ /**
248
+ * Not implemented yet
249
+ * Get the roll angle of the camera about the direction of projection.
250
+ */
251
+ getRoll(): void;
252
+
253
+ /**
254
+ * Get top left corner point of the screen.
255
+ */
256
+ getScreenBottomLeft(): Vector3;
257
+
258
+ /**
259
+ *
260
+ */
261
+ getScreenBottomLeftByReference(): Vector3;
262
+
263
+ /**
264
+ * Get bottom left corner point of the screen
265
+ */
266
+ getScreenBottomRight(): Vector3;
267
+
268
+ /**
269
+ *
270
+ */
271
+ getScreenBottomRightByReference(): Vector3;
272
+
273
+ /**
274
+ *
275
+ */
276
+ getScreenTopRight(): Vector3;
277
+
278
+ /**
279
+ *
280
+ */
281
+ getScreenTopRightByReference(): Vector3;
282
+
283
+ /**
284
+ * Get the center of the window in viewport coordinates.
285
+ */
286
+ getThickness(): number;
287
+
288
+ /**
289
+ * Get the value of the UseHorizontalViewAngle.
290
+ */
291
+ getUseHorizontalViewAngle(): boolean;
292
+
293
+ /**
294
+ * Get use offaxis frustum.
295
+ */
296
+ getUseOffAxisProjection(): boolean;
297
+
298
+ /**
299
+ * Get the camera view angle.
300
+ */
301
+ getViewAngle(): number;
302
+
303
+ /**
304
+ *
305
+ */
306
+ getViewMatrix(): mat4;
307
+
308
+ /**
309
+ * Get the ViewPlaneNormal.
310
+ * This vector will point opposite to the direction of projection,
311
+ * unless you have created a sheared output view using SetViewShear/SetObliqueAngles.
312
+ */
313
+ getViewPlaneNormal(): Vector3;
314
+
315
+ /**
316
+ * Get the ViewPlaneNormal by reference.
317
+ */
318
+ getViewPlaneNormalByReference(): Vector3;
319
+
320
+ /**
321
+ * Get ViewUp vector.
322
+ */
323
+ getViewUp(): Vector3;
324
+
325
+ /**
326
+ * Get ViewUp vector by reference.
327
+ */
328
+ getViewUpByReference(): Vector3;
329
+
330
+ /**
331
+ * Get the center of the window in viewport coordinates.
332
+ * The viewport coordinate range is ([-1,+1],[-1,+1]).
333
+ */
334
+ getWindowCenter(): Range;
335
+
336
+ /**
337
+ *
338
+ */
339
+ getWindowCenterByReference(): Range;
340
+
341
+ /**
342
+ *
343
+ * @param {mat4} result
344
+ */
345
+ getWorldToPhysicalMatrix(result: mat4): void;
346
+
347
+ /**
348
+ * Recompute the ViewUp vector to force it to be perpendicular to
349
+ * camera.focalpoint vector.
350
+ */
351
+ orthogonalizeViewUp(): void;
352
+
353
+ /**
354
+ *
355
+ * @param {Number[]} ori
356
+ */
357
+ physicalOrientationToWorldDirection(ori: number[]): any;
358
+
359
+ /**
360
+ * Rotate the focal point about the cross product of the view up vector and
361
+ * the direction of projection, using the camera's position as the center of
362
+ * rotation.
363
+ * @param {Number} angle The value of the angle.
364
+ */
365
+ pitch(angle: number): void;
366
+
367
+ /**
368
+ * Rotate the camera about the direction of projection.
369
+ * @param {Number} angle The value of the angle.
370
+ */
371
+ roll(angle: number): void;
372
+
373
+ /**
374
+ * Set the location of the near and far clipping planes along the direction
375
+ * of projection.
376
+ * @param {Number} near The near clipping planes.
377
+ * @param {Number} far The far clipping planes.
378
+ */
379
+ setClippingRange(near: number, far: number): boolean;
380
+
381
+ /**
382
+ * Set the location of the near and far clipping planes along the direction
383
+ * of projection.
384
+ * @param {Range} clippingRange
385
+ */
386
+ setClippingRange(clippingRange: Range): boolean;
387
+
388
+ /**
389
+ * Set the location of the near and far clipping planes along the direction
390
+ * of projection.
391
+ * @param {Range} clippingRange
392
+ */
393
+ setClippingRangeFrom(clippingRange: Range): boolean;
394
+
395
+ /**
396
+ * Used to handle convert js device orientation angles
397
+ * when you use this method the camera will adjust to the
398
+ * device orientation such that the physicalViewUp you set
399
+ * in world coordinates looks up, and the physicalViewNorth
400
+ * you set in world coorindates will (maybe) point north
401
+ *
402
+ * NOTE WARNING - much of the documentation out there on how
403
+ * orientation works is seriously wrong. Even worse the Chrome
404
+ * device orientation simulator is completely wrong and should
405
+ * never be used. OMG it is so messed up.
406
+ *
407
+ * how it seems to work on iOS is that the device orientation
408
+ * is specified in extrinsic angles with a alpha, beta, gamma
409
+ * convention with axes of Z, X, Y (the code below substitutes
410
+ * the physical coordinate system for these axes to get the right
411
+ * modified coordinate system.
412
+ * @param {Number} alpha The value of the alpha.
413
+ * @param {Number} beta The value of the beta.
414
+ * @param {Number} gamma The value of the gamma.
415
+ * @param {Number} screen The value of the screen.
416
+ */
417
+ setDeviceAngles(
418
+ alpha: number,
419
+ beta: number,
420
+ gamma: number,
421
+ screen: number
422
+ ): boolean;
423
+
424
+ /**
425
+ * Set the direction of projection.
426
+ * @param {Number} x The x coordinate.
427
+ * @param {Number} y The y coordinate.
428
+ * @param {Number} z The z coordinate.
429
+ */
430
+ setDirectionOfProjection(x: number, y: number, z: number): boolean;
431
+
432
+ /**
433
+ * Move the focal point so that it is the specified distance from the camera
434
+ * position.
435
+ *
436
+ * This distance must be positive.
437
+ * @param {Number} distance The value of the distance.
438
+ */
439
+ setDistance(distance: number): boolean;
440
+
441
+ /**
442
+ * Set the focal of the camera in world coordinates.
443
+ * @param {Number} x The x coordinate.
444
+ * @param {Number} y The y coordinate.
445
+ * @param {Number} z The z coordinate.
446
+ */
447
+ setFocalPoint(x: number, y: number, z: number): boolean;
448
+
449
+ /**
450
+ * Set the focal of the camera in world coordinates.
451
+ * @param {Vector3} focalPoint
452
+ */
453
+ setFocalPointFrom(focalPoint: Vector3): boolean;
454
+
455
+ /**
456
+ * Set the value of the FreezeDolly instance variable.
457
+ * @param {Boolean} freezeFocalPoint
458
+ */
459
+ setFreezeFocalPoint(freezeFocalPoint: boolean): boolean;
460
+
461
+ /**
462
+ * Not implement yet
463
+ * Set the oblique viewing angles.
464
+ * The first angle, alpha, is the angle (measured from the horizontal) that
465
+ * rays along the direction of projection will follow once projected onto
466
+ * the 2D screen. The second angle, beta, is the angle between the view
467
+ * plane and the direction of projection. This creates a shear transform x'
468
+ * = x + dz*cos(alpha)/tan(beta), y' = dz*sin(alpha)/tan(beta) where dz is
469
+ * the distance of the point from the focal plane. The angles are (45,90) by
470
+ * default. Oblique projections commonly use (30,63.435).
471
+ *
472
+ * @param {Number} alpha The aplha angle value.
473
+ * @param {Number} beta The beta angle value.
474
+ */
475
+ setObliqueAngles(alpha: number, beta: number): boolean;
476
+
477
+ /**
478
+ * Set the value of the OrientationWXYZ.
479
+ * @param {Number} degrees
480
+ * @param {Number} x The x coordinate.
481
+ * @param {Number} y The y coordinate.
482
+ * @param {Number} z The z coordinate.
483
+ */
484
+ setOrientationWXYZ(degrees: number, x: number, y: number, z: number): boolean;
485
+
486
+ /**
487
+ * Set the value of the ParallelProjection.
488
+ * @param {Boolean} parallelProjection The value of the parallelProjection.
489
+ */
490
+ setParallelProjection(parallelProjection: boolean): boolean;
491
+
492
+ /**
493
+ * Set the value of the parallelScale.
494
+ * @param {Number} parallelScale The value of the parallelScale.
495
+ */
496
+ setParallelScale(parallelScale: number): boolean;
497
+
498
+ /**
499
+ * Set the value of the physicalScale.
500
+ * @param {Number} physicalScale The value of the the physicalScale.
501
+ */
502
+ setPhysicalScale(physicalScale: number): boolean;
503
+
504
+ /**
505
+ * Set the value of the physicalTranslation.
506
+ * @param {Number} x The x coordinate.
507
+ * @param {Number} y The y coordinate.
508
+ * @param {Number} z The z coordinate.
509
+ */
510
+ setPhysicalTranslation(x: number, y: number, z: number): boolean;
511
+
512
+ /**
513
+ * Set the value of the physicalTranslation.
514
+ * @param {Number[]} physicalTranslation The value of the physicalTranslation.
515
+ */
516
+ setPhysicalTranslationFrom(physicalTranslation: number[]): boolean;
517
+
518
+ /**
519
+ *
520
+ * @param {Number} x The x coordinate.
521
+ * @param {Number} y The y coordinate.
522
+ * @param {Number} z The z coordinate.
523
+ */
524
+ setPhysicalViewNorth(x: number, y: number, z: number): boolean;
525
+
526
+ /**
527
+ *
528
+ * @param {Number[]} physicalViewNorth
529
+ */
530
+ setPhysicalViewNorthFrom(physicalViewNorth: number[]): boolean;
531
+
532
+ /**
533
+ *
534
+ * @param {Number} x The x coordinate.
535
+ * @param {Number} y The y coordinate.
536
+ * @param {Number} z The z coordinate.
537
+ */
538
+ setPhysicalViewUp(x: number, y: number, z: number): boolean;
539
+
540
+ /**
541
+ *
542
+ * @param {Number[]} physicalViewUp
543
+ */
544
+ setPhysicalViewUpFrom(physicalViewUp: number[]): boolean;
545
+
546
+ /**
547
+ * Set the position of the camera in world coordinates.
548
+ * @param {Number} x The x coordinate.
549
+ * @param {Number} y The y coordinate.
550
+ * @param {Number} z The z coordinate.
551
+ */
552
+ setPosition(x: number, y: number, z: number): boolean;
553
+
554
+ /**
555
+ *
556
+ * @param {mat4} mat
557
+ */
558
+ setProjectionMatrix(mat: mat4): boolean;
559
+
560
+ /**
561
+ * Set the roll angle of the camera about the direction of projection.
562
+ * @todo Not implemented yet
563
+ * @param {Number} angle The value of the roll angle.
564
+ */
565
+ setRoll(angle: number): boolean;
566
+
567
+ /**
568
+ * Set top left corner point of the screen.
569
+ *
570
+ * This will be used only for offaxis frustum calculation.
571
+ * @param {Number} x The x coordinate.
572
+ * @param {Number} y The y coordinate.
573
+ * @param {Number} z The z coordinate.
574
+ */
575
+ setScreenBottomLeft(x: number, y: number, z: number): boolean;
576
+
577
+ /**
578
+ * Set top left corner point of the screen.
579
+ *
580
+ * This will be used only for offaxis frustum calculation.
581
+ * @param {Vector3} screenBottomLeft The screenBottomLeft coordiante.
582
+ */
583
+ setScreenBottomLeft(screenBottomLeft: Vector3): boolean;
584
+
585
+ /**
586
+ * Set top left corner point of the screen.
587
+ * @param {Vector3} screenBottomLeft The screenBottomLeft coordiante.
588
+ */
589
+ setScreenBottomLeftFrom(screenBottomLeft: Vector3): boolean;
590
+
591
+ /**
592
+ *
593
+ * @param {Number} x The x coordinate.
594
+ * @param {Number} y The y coordinate.
595
+ * @param {Number} z The z coordinate.
596
+ */
597
+ setScreenBottomRight(x: number, y: number, z: number): boolean;
598
+
599
+ /**
600
+ * Set bottom right corner point of the screen.
601
+ * @param {Vector3} screenBottomRight The screenBottomRight coordiante.
602
+ */
603
+ setScreenBottomRight(screenBottomRight: Vector3): boolean;
604
+
605
+ /**
606
+ * Set bottom right corner point of the screen.
607
+ * @param {Vector3} screenBottomRight The screenBottomRight coordiante.
608
+ */
609
+ setScreenBottomRightFrom(screenBottomRight: Vector3): boolean;
610
+
611
+ /**
612
+ * Set top right corner point of the screen.
613
+ *
614
+ * This will be used only for offaxis frustum calculation.
615
+ * @param {Number} x The x coordinate.
616
+ * @param {Number} y The y coordinate.
617
+ * @param {Number} z The z coordinate.
618
+ */
619
+ setScreenTopRight(x: number, y: number, z: number): boolean;
620
+
621
+ /**
622
+ * Set top right corner point of the screen.
623
+ *
624
+ * This will be used only for offaxis frustum calculation.
625
+ * @param {Vector3} screenTopRight The screenTopRight coordiante.
626
+ */
627
+ setScreenTopRight(screenTopRight: Vector3): boolean;
628
+
629
+ /**
630
+ * Set top right corner point of the screen.
631
+ * @param {Vector3} screenTopRight The screenTopRight coordiante.
632
+ */
633
+ setScreenTopRightFrom(screenTopRight: Vector3): boolean;
634
+
635
+ /**
636
+ * Set the distance between clipping planes.
637
+ *
638
+ * This method adjusts the far clipping plane to be set a distance
639
+ * 'thickness' beyond the near clipping plane.
640
+ * @param {Number} thickness
641
+ */
642
+ setThickness(thickness: number): boolean;
643
+
644
+ /**
645
+ *
646
+ * @param {Number} thickness The value of the thickness.
647
+ */
648
+ setThicknessFromFocalPoint(thickness: number): boolean;
649
+
650
+ /**
651
+ * Set the value of the useHorizontalViewAngle.
652
+ * @param {Boolean} useHorizontalViewAngle The value of the useHorizontalViewAngle.
653
+ */
654
+ setUseHorizontalViewAngle(useHorizontalViewAngle: boolean): boolean;
655
+
656
+ /**
657
+ * Set use offaxis frustum.
658
+ *
659
+ * OffAxis frustum is used for off-axis frustum calculations specifically for
660
+ * stereo rendering. For reference see "High Resolution Virtual Reality", in
661
+ * Proc. SIGGRAPH '92, Computer Graphics, pages 195-202, 1992.
662
+ * @param {Boolean} useOffAxisProjection The value of the useOffAxisProjection.
663
+ */
664
+ setUseOffAxisProjection(useOffAxisProjection: boolean): boolean;
665
+
666
+ /**
667
+ * Set the camera view angle, which is the angular height of the camera view
668
+ * measured in degrees.
669
+ * @param {Number} viewAngle The value of the viewAngle.
670
+ */
671
+ setViewAngle(viewAngle: number): boolean;
672
+
673
+ /**
674
+ * Set the view matrix for the camera.
675
+ * @param {mat4} mat The value of the view matrix.
676
+ */
677
+ setViewMatrix(mat: mat4): boolean;
678
+
679
+ /**
680
+ * Set the view up direction for the camera.
681
+ * @param {Number} x The x coordinate.
682
+ * @param {Number} y The y coordinate.
683
+ * @param {Number} z The z coordinate.
684
+ */
685
+ setViewUp(x: number, y: number, z: number): boolean;
686
+
687
+ /**
688
+ * Set the view up direction for the camera.
689
+ * @param {Vector3} viewUp The viewUp coordinate.
690
+ */
691
+ setViewUp(viewUp: Vector3): boolean;
692
+
693
+ /**
694
+ * Set the view up direction for the camera.
695
+ * @param {Vector3} viewUp The viewUp coordinate.
696
+ */
697
+ setViewUpFrom(viewUp: Vector3): boolean;
698
+
699
+ /**
700
+ * Set the center of the window in viewport coordinates.
701
+ *
702
+ * The viewport coordinate range is ([-1,+1],[-1,+1]).
703
+ *
704
+ * This method is for if you have one window which consists of several
705
+ * viewports, or if you have several screens which you want to act together
706
+ * as one large screen.
707
+ * @param {Number} x The x coordinate.
708
+ * @param {Number} y The y coordinate.
709
+ */
710
+ setWindowCenter(x: number, y: number): boolean;
711
+
712
+ /**
713
+ * Set the center of the window in viewport coordinates from an array.
714
+ * @param {Range} windowCenter
715
+ */
716
+ setWindowCenterFrom(windowCenter: Range): boolean;
717
+
718
+ /**
719
+ *
720
+ * @param {Number} x The x coordinate.
721
+ * @param {Number} y The y coordinate.
722
+ * @param {Number} z The z coordinate.
723
+ */
724
+ translate(x: number, y: number, z: number): void;
725
+
726
+ /**
727
+ * Rotate the focal point about the view up vector, using the camera's
728
+ * position as the center of rotation.
729
+ * @param {Number} angle The value of the angle.
730
+ */
731
+ yaw(angle: number): void;
732
+
733
+ /**
734
+ * In perspective mode, decrease the view angle by the specified factor.
735
+ * @param {Number} factor The value of the zoom factor.
736
+ */
737
+ zoom(factor: number): void;
730
738
  }
731
739
 
732
740
  /**
@@ -736,25 +744,29 @@ export interface vtkCamera extends vtkObject {
736
744
  * @param model object on which data structure will be bounds (protected)
737
745
  * @param {ICameraInitialValues} [initialValues] (default: {})
738
746
  */
739
- export function extend(publicAPI: object, model: object, initialValues?: ICameraInitialValues): void;
747
+ export function extend(
748
+ publicAPI: object,
749
+ model: object,
750
+ initialValues?: ICameraInitialValues
751
+ ): void;
740
752
 
741
753
  /**
742
- * Method use to create a new instance of vtkCamera with its focal point at the origin,
743
- * and position=(0,0,1). The view up is along the y-axis, view angle is 30 degrees,
754
+ * Method use to create a new instance of vtkCamera with its focal point at the origin,
755
+ * and position=(0,0,1). The view up is along the y-axis, view angle is 30 degrees,
744
756
  * and the clipping range is (.1,1000).
745
757
  * @param {ICameraInitialValues} [initialValues] for pre-setting some of its content
746
758
  */
747
759
  export function newInstance(initialValues?: ICameraInitialValues): vtkCamera;
748
760
 
749
- /**
761
+ /**
750
762
  * vtkCamera is a virtual camera for 3D rendering. It provides methods
751
763
  * to position and orient the view point and focal point. Convenience
752
764
  * methods for moving about the focal point also are provided. More
753
- * complex methods allow the manipulation of the computer graphics model
765
+ * complex methods allow the manipulation of the computer graphics model
754
766
  * including view up vector, clipping planes, and camera perspective.
755
767
  */
756
768
  export declare const vtkCamera: {
757
- newInstance: typeof newInstance,
758
- extend: typeof extend,
769
+ newInstance: typeof newInstance;
770
+ extend: typeof extend;
759
771
  };
760
772
  export default vtkCamera;