@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.
- package/Common/Core/Base64.d.ts +2 -2
- package/Common/Core/CellArray.d.ts +45 -42
- package/Common/Core/DataArray.d.ts +465 -449
- package/Common/Core/Endian.d.ts +5 -5
- package/Common/Core/HalfFloat.d.ts +3 -3
- package/Common/Core/ImageHelper.d.ts +11 -5
- package/Common/Core/LookupTable.d.ts +260 -257
- package/Common/Core/Math.d.ts +461 -270
- package/Common/Core/MatrixBuilder.d.ts +117 -112
- package/Common/Core/Points.d.ts +114 -106
- package/Common/Core/PriorityQueue.d.ts +34 -30
- package/Common/Core/ProgressHandler.d.ts +44 -39
- package/Common/Core/ScalarsToColors/Constants.d.ts +9 -9
- package/Common/Core/ScalarsToColors.d.ts +351 -326
- package/Common/Core/StringArray.d.ts +94 -89
- package/Common/Core/URLExtract.d.ts +9 -6
- package/Common/Core/VariantArray.d.ts +94 -89
- package/Common/DataModel/AbstractPointLocator.d.ts +18 -18
- package/Common/DataModel/Box.d.ts +60 -52
- package/Common/DataModel/CardinalSpline1D.d.ts +59 -34
- package/Common/DataModel/Cell.d.ts +70 -67
- package/Common/DataModel/Collection.d.ts +100 -84
- package/Common/DataModel/Cone.d.ts +30 -27
- package/Common/DataModel/Cylinder.d.ts +122 -112
- package/Common/DataModel/DataSet/Constants.d.ts +9 -9
- package/Common/DataModel/DataSet.d.ts +38 -35
- package/Common/DataModel/DataSetAttributes/FieldData.d.ts +217 -206
- package/Common/DataModel/DataSetAttributes.d.ts +420 -415
- package/Common/DataModel/EdgeLocator.d.ts +82 -79
- package/Common/DataModel/ITKHelper.d.ts +33 -22
- package/Common/DataModel/ImageData.d.ts +362 -340
- package/Common/DataModel/IncrementalOctreeNode.d.ts +242 -242
- package/Common/DataModel/IncrementalOctreePointLocator.d.ts +16 -16
- package/Common/DataModel/KochanekSpline1D.d.ts +60 -36
- package/Common/DataModel/Line.d.ts +104 -83
- package/Common/DataModel/Locator.d.ts +10 -10
- package/Common/DataModel/PiecewiseFunction.d.ts +215 -199
- package/Common/DataModel/Plane.d.ts +255 -223
- package/Common/DataModel/PointSet.d.ts +32 -28
- package/Common/DataModel/PolyData/Constants.d.ts +2 -2
- package/Common/DataModel/PolyData.d.ts +143 -140
- package/Common/DataModel/PolyLine.d.ts +51 -28
- package/Common/DataModel/Polygon.d.ts +34 -33
- package/Common/DataModel/SelectionNode/Constants.d.ts +18 -18
- package/Common/DataModel/SelectionNode.d.ts +62 -56
- package/Common/DataModel/Sphere.d.ts +74 -72
- package/Common/DataModel/Spline1D.d.ts +60 -40
- package/Common/DataModel/Spline3D/Constants.d.ts +3 -3
- package/Common/DataModel/Spline3D.d.ts +27 -22
- package/Common/Transform/LandmarkTransform.d.ts +67 -64
- package/Common/Transform/Transform.d.ts +148 -126
- package/Filters/General/AppendPolyData.d.ts +43 -37
- package/Filters/General/ClipClosedSurface.d.ts +41 -41
- package/Filters/General/ContourTriangulator.d.ts +38 -38
- package/Filters/General/ImageCropFilter.d.ts +48 -44
- package/Filters/General/ImageDataOutlineFilter.d.ts +41 -37
- package/Filters/General/ImageOutlineFilter.d.ts +41 -37
- package/Filters/General/ImageSliceFilter.d.ts +38 -34
- package/Filters/General/ImageStreamline.d.ts +120 -93
- package/Filters/General/LineFilter.d.ts +18 -15
- package/Filters/General/OutlineFilter.d.ts +19 -16
- package/Filters/General/TriangleFilter.d.ts +23 -19
- package/Filters/General/TubeFilter.d.ts +194 -188
- package/Filters/Sources/Arrow2DSource.d.ts +151 -143
- package/Filters/Sources/ArrowSource.d.ts +148 -140
- package/Filters/Sources/CircleSource.d.ts +138 -130
- package/Filters/Sources/ConeSource.d.ts +167 -159
- package/Filters/Sources/CubeSource.d.ts +198 -181
- package/Filters/Sources/Cursor3D.d.ts +171 -164
- package/Filters/Sources/CylinderSource.d.ts +173 -166
- package/Filters/Sources/LineSource.d.ts +100 -92
- package/Filters/Sources/PlaneSource.d.ts +211 -203
- package/Filters/Sources/PointSource.d.ts +90 -82
- package/Filters/Sources/SphereSource.d.ts +171 -164
- package/Filters/Texture/TextureMapToPlane.d.ts +213 -208
- package/Filters/Texture/TextureMapToSphere.d.ts +77 -72
- package/IO/Core/DataAccessHelper/HtmlDataAccessHelper.d.ts +18 -5
- package/IO/Core/DataAccessHelper/HttpDataAccessHelper.d.ts +18 -5
- package/IO/Core/DataAccessHelper/JSZipDataAccessHelper.d.ts +19 -6
- package/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.d.ts +18 -5
- package/IO/Core/DataAccessHelper.d.ts +36 -22
- package/IO/Core/HttpDataSetReader.d.ts +279 -249
- package/IO/Core/HttpSceneLoader.d.ts +92 -87
- package/IO/Core/ImageStream/DefaultProtocol.d.ts +27 -20
- package/IO/Core/ImageStream/ViewStream.d.ts +7 -7
- package/IO/Core/ImageStream.d.ts +52 -47
- package/IO/Core/WSLinkClient.d.ts +12 -6
- package/IO/Geometry/DracoReader.d.ts +106 -88
- package/IO/Geometry/PLYReader.d.ts +92 -75
- package/IO/Geometry/PLYWriter.d.ts +163 -148
- package/IO/Geometry/STLReader.d.ts +92 -77
- package/IO/Geometry/STLWriter.d.ts +50 -42
- package/IO/Misc/ElevationReader.d.ts +155 -139
- package/IO/Misc/ITKImageReader.d.ts +58 -50
- package/IO/Misc/ITKPolyDataReader.d.ts +58 -50
- package/IO/Misc/JSONNucleoReader.d.ts +74 -57
- package/IO/Misc/JSONReader.d.ts +78 -72
- package/IO/Misc/MTLReader.d.ts +143 -130
- package/IO/Misc/OBJReader.d.ts +129 -110
- package/IO/Misc/PDBReader.d.ts +109 -93
- package/IO/XML/XMLImageDataReader.d.ts +31 -19
- package/IO/XML/XMLPolyDataReader.d.ts +31 -19
- package/IO/XML/XMLReader.d.ts +141 -105
- package/Imaging/Core/AbstractImageInterpolator/Constants.d.ts +2 -2
- package/Imaging/Core/ImageReslice.d.ts +231 -173
- package/Interaction/Style/InteractorStyleHMDXR.d.ts +7 -3
- package/Interaction/Style/InteractorStyleImage.d.ts +5 -4
- package/Interaction/Style/InteractorStyleTrackballCamera.d.ts +17 -6
- package/Interaction/Widgets/OrientationMarkerWidget/Constants.d.ts +5 -5
- package/Interaction/Widgets/OrientationMarkerWidget.d.ts +146 -142
- package/Proxy/Core/ViewProxy.d.ts +1 -1
- package/Proxy/Representations/GeometryRepresentationProxy.d.ts +28 -27
- package/Proxy/Representations/ResliceRepresentationProxy.d.ts +0 -1
- package/Rendering/Core/AbstractImageMapper.d.ts +125 -113
- package/Rendering/Core/AbstractMapper.d.ts +58 -52
- package/Rendering/Core/AbstractMapper3D.d.ts +32 -25
- package/Rendering/Core/AbstractPicker.d.ts +91 -88
- package/Rendering/Core/Actor.d.ts +117 -114
- package/Rendering/Core/Actor2D.d.ts +101 -98
- package/Rendering/Core/AnnotatedCubeActor.d.ts +58 -53
- package/Rendering/Core/AxesActor.d.ts +10 -4
- package/Rendering/Core/Camera.d.ts +739 -727
- package/Rendering/Core/CellPicker.d.ts +87 -77
- package/Rendering/Core/ColorTransferFunction/Constants.d.ts +2 -2
- package/Rendering/Core/ColorTransferFunction/CssFilters.d.ts +39 -13
- package/Rendering/Core/ColorTransferFunction.d.ts +3 -6
- package/Rendering/Core/Coordinate/Constants.d.ts +1 -1
- package/Rendering/Core/Coordinate.d.ts +154 -150
- package/Rendering/Core/Follower.d.ts +52 -47
- package/Rendering/Core/Glyph3DMapper/Constants.d.ts +8 -8
- package/Rendering/Core/Glyph3DMapper.d.ts +152 -149
- package/Rendering/Core/ImageArrayMapper.d.ts +237 -213
- package/Rendering/Core/ImageCPRMapper/Constants.d.ts +4 -4
- package/Rendering/Core/ImageCPRMapper.d.ts +424 -392
- package/Rendering/Core/ImageMapper/Constants.d.ts +8 -8
- package/Rendering/Core/ImageMapper.d.ts +292 -268
- package/Rendering/Core/ImageProperty/Constants.d.ts +3 -3
- package/Rendering/Core/ImageProperty.d.ts +204 -197
- package/Rendering/Core/ImageResliceMapper/Constants.d.ts +5 -5
- package/Rendering/Core/ImageResliceMapper.d.ts +235 -210
- package/Rendering/Core/ImageSlice.d.ts +142 -136
- package/Rendering/Core/InteractorObserver.d.ts +41 -32
- package/Rendering/Core/Light.d.ts +321 -318
- package/Rendering/Core/Mapper/Constants.d.ts +14 -14
- package/Rendering/Core/Mapper.d.ts +539 -512
- package/Rendering/Core/Mapper2D.d.ts +342 -330
- package/Rendering/Core/Picker.d.ts +114 -106
- package/Rendering/Core/PixelSpaceCallbackMapper.d.ts +56 -40
- package/Rendering/Core/PointPicker.d.ts +42 -37
- package/Rendering/Core/Prop/Constants.d.ts +3 -3
- package/Rendering/Core/Prop.d.ts +274 -274
- package/Rendering/Core/Prop3D.d.ts +259 -257
- package/Rendering/Core/Property/Constants.d.ts +12 -12
- package/Rendering/Core/Property.d.ts +535 -531
- package/Rendering/Core/Property2D/Constants.d.ts +1 -1
- package/Rendering/Core/Property2D.d.ts +114 -109
- package/Rendering/Core/RenderWindow.d.ts +193 -191
- package/Rendering/Core/RenderWindowInteractor/Constants.d.ts +19 -19
- package/Rendering/Core/RenderWindowInteractor.d.ts +1335 -1219
- package/Rendering/Core/Renderer.d.ts +677 -663
- package/Rendering/Core/ScalarBarActor.d.ts +333 -322
- package/Rendering/Core/Skybox.d.ts +45 -42
- package/Rendering/Core/SphereMapper.d.ts +49 -44
- package/Rendering/Core/StickMapper.d.ts +49 -44
- package/Rendering/Core/Texture.d.ts +87 -80
- package/Rendering/Core/Viewport.d.ts +229 -222
- package/Rendering/Core/Volume.d.ts +78 -73
- package/Rendering/Core/VolumeMapper/Constants.d.ts +11 -11
- package/Rendering/Core/VolumeMapper.d.ts +295 -285
- package/Rendering/Core/VolumeProperty/Constants.d.ts +19 -19
- package/Rendering/Core/VolumeProperty.d.ts +375 -365
- package/Rendering/Misc/CanvasView.d.ts +148 -145
- package/Rendering/Misc/FullScreenRenderWindow.d.ts +111 -108
- package/Rendering/Misc/GenericRenderWindow.d.ts +69 -65
- package/Rendering/Misc/RenderWindowWithControlBar.d.ts +46 -39
- package/Rendering/Misc/SynchronizableRenderWindow/ObjectManager.d.ts +49 -29
- package/Rendering/Misc/SynchronizableRenderWindow.d.ts +51 -35
- package/Rendering/Misc/TextureLODsDownloader.d.ts +110 -106
- package/Rendering/OpenGL/BufferObject.d.ts +3 -2
- package/Rendering/OpenGL/RenderWindow.d.ts +456 -405
- package/Rendering/OpenGL/Texture.d.ts +66 -14
- package/Rendering/SceneGraph/RenderPass.d.ts +88 -83
- package/Rendering/SceneGraph/ViewNode.d.ts +150 -146
- package/Rendering/SceneGraph/ViewNodeFactory.d.ts +17 -12
- package/Rendering/WebXR/RenderWindowHelper/Constants.d.ts +5 -5
- package/Rendering/WebXR/RenderWindowHelper.d.ts +54 -49
- package/Widgets/Core/AbstractWidget.d.ts +30 -24
- package/Widgets/Core/AbstractWidgetFactory.d.ts +53 -33
- package/Widgets/Core/WidgetManager/Constants.d.ts +4 -4
- package/Widgets/Core/WidgetManager.d.ts +21 -15
- package/Widgets/Core/WidgetState.d.ts +11 -7
- package/Widgets/Manipulators/AbstractManipulator.d.ts +224 -217
- package/Widgets/Manipulators/LineManipulator.d.ts +33 -21
- package/Widgets/Manipulators/PickerManipulator.d.ts +22 -18
- package/Widgets/Manipulators/PlaneManipulator.d.ts +33 -22
- package/Widgets/Manipulators/TrackballManipulator.d.ts +40 -26
- package/Widgets/Representations/WidgetRepresentation.d.ts +62 -51
- package/Widgets/Widgets3D/ImplicitPlaneWidget.js +23 -5
- package/Widgets/Widgets3D/InteractiveOrientationWidget.d.ts +25 -10
- package/Widgets/Widgets3D/ResliceCursorWidget/Constants.d.ts +26 -7
- package/Widgets/Widgets3D/ResliceCursorWidget/behavior.d.ts +13 -12
- package/Widgets/Widgets3D/ResliceCursorWidget.d.ts +26 -15
- package/Widgets/Widgets3D/SeedWidget.d.ts +2 -2
- package/Widgets/Widgets3D/SphereWidget.d.ts +5 -3
- package/interfaces.d.ts +243 -243
- 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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
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(
|
|
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
|
-
|
|
758
|
-
|
|
769
|
+
newInstance: typeof newInstance;
|
|
770
|
+
extend: typeof extend;
|
|
759
771
|
};
|
|
760
772
|
export default vtkCamera;
|