@kitware/vtk.js 24.5.1 → 24.5.4
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 +4 -2
- package/Common/Core/CellArray.d.ts +2 -2
- package/Common/Core/DataArray.d.ts +2 -2
- package/Common/Core/Endian.d.ts +1 -1
- package/Common/Core/ImageHelper.d.ts +1 -1
- package/Common/Core/LookupTable.d.ts +1 -1
- package/Common/Core/Math/index.js +1 -1
- package/Common/Core/Math.d.ts +1 -1
- package/Common/Core/Math.js +1 -1
- package/Common/Core/MatrixBuilder.d.ts +1 -1
- package/Common/Core/Points.d.ts +2 -2
- package/Common/Core/PriorityQueue.d.ts +1 -1
- package/Common/Core/ProgressHandler.d.ts +1 -1
- package/Common/Core/ScalarsToColors.d.ts +3 -3
- package/Common/Core/StringArray.d.ts +1 -1
- package/Common/Core/VariantArray.d.ts +1 -1
- package/Common/DataModel/Box.d.ts +2 -2
- package/Common/DataModel/CardinalSpline1D.d.ts +1 -1
- package/Common/DataModel/Cell.d.ts +3 -3
- package/Common/DataModel/Cone.d.ts +2 -2
- package/Common/DataModel/Cylinder.d.ts +2 -2
- package/Common/DataModel/DataSet.d.ts +1 -1
- package/Common/DataModel/DataSetAttributes/FieldData.d.ts +4 -2
- package/Common/DataModel/DataSetAttributes.d.ts +3 -3
- package/Common/DataModel/ImageData.d.ts +1 -1
- package/Common/DataModel/Line.d.ts +1 -1
- package/Common/DataModel/PiecewiseFunction.d.ts +2 -2
- package/Common/DataModel/Plane.d.ts +2 -2
- package/Common/DataModel/PointSet.d.ts +2 -2
- package/Common/DataModel/PolyData.d.ts +2 -2
- package/Common/DataModel/Polygon.d.ts +2 -2
- package/Common/DataModel/SelectionNode.d.ts +2 -2
- package/Common/DataModel/Sphere.d.ts +2 -2
- package/Common/DataModel/Spline1D.d.ts +1 -1
- package/Common/DataModel/Spline3D.d.ts +1 -1
- package/Common/DataModel/Triangle.d.ts +1 -1
- package/Common/DataModel/Triangle.js +1 -1
- package/Common/Transform/LandmarkTransform.d.ts +2 -2
- package/Common/Transform/LandmarkTransform.js +1 -1
- package/Filters/Core/PolyDataNormals.js +1 -1
- package/Filters/General/AppendPolyData.d.ts +1 -1
- package/Filters/General/ImageCropFilter.d.ts +1 -1
- package/Filters/General/ImageOutlineFilter.d.ts +1 -1
- package/Filters/General/ImageSliceFilter.d.ts +1 -1
- package/Filters/General/ImageStreamline.d.ts +3 -3
- package/Filters/General/LineFilter.d.ts +1 -1
- package/Filters/General/OBBTree.js +1 -1
- package/Filters/General/OutlineFilter.d.ts +1 -1
- package/Filters/General/TriangleFilter.d.ts +1 -1
- package/Filters/General/TubeFilter.d.ts +2 -2
- package/Filters/General/WindowedSincPolyDataFilter.js +1 -1
- package/Filters/Sources/Arrow2DSource.d.ts +2 -2
- package/Filters/Sources/ArrowSource.d.ts +2 -2
- package/Filters/Sources/CircleSource.d.ts +2 -2
- package/Filters/Sources/CircleSource.js +1 -1
- package/Filters/Sources/ConeSource.d.ts +2 -2
- package/Filters/Sources/CubeSource.d.ts +2 -2
- package/Filters/Sources/Cursor3D.d.ts +3 -3
- package/Filters/Sources/CylinderSource.d.ts +2 -2
- package/Filters/Sources/LineSource.d.ts +2 -2
- package/Filters/Sources/PlaneSource.d.ts +2 -2
- package/Filters/Sources/PointSource.d.ts +2 -2
- package/Filters/Sources/PointSource.js +1 -1
- package/Filters/Sources/SphereSource.d.ts +2 -2
- package/Filters/Texture/TextureMapToPlane.d.ts +1 -1
- package/Filters/Texture/TextureMapToPlane.js +1 -1
- package/Filters/Texture/TextureMapToSphere.d.ts +1 -1
- package/IO/Core/DataAccessHelper.d.ts +4 -4
- package/IO/Core/HttpDataSetReader.d.ts +1 -1
- package/IO/Core/HttpSceneLoader.d.ts +5 -5
- package/IO/Core/ImageStream/DefaultProtocol.d.ts +1 -1
- package/IO/Core/ImageStream/ViewStream.d.ts +4 -4
- package/IO/Core/ImageStream.d.ts +3 -3
- package/IO/Core/WSLinkClient.d.ts +1 -1
- package/IO/Geometry/DracoReader.d.ts +5 -5
- package/IO/Geometry/PLYReader.d.ts +5 -5
- package/IO/Geometry/PLYWriter.d.ts +2 -2
- package/IO/Geometry/STLReader.d.ts +5 -5
- package/IO/Geometry/STLWriter.d.ts +2 -2
- package/IO/Misc/ElevationReader.d.ts +5 -5
- package/IO/Misc/ITKImageReader.d.ts +1 -1
- package/IO/Misc/ITKPolyDataReader.d.ts +1 -1
- package/IO/Misc/JSONNucleoReader.d.ts +5 -5
- package/IO/Misc/JSONReader.d.ts +1 -1
- package/IO/Misc/MTLReader.d.ts +6 -6
- package/IO/Misc/OBJReader.d.ts +5 -5
- package/IO/Misc/PDBReader.d.ts +5 -5
- package/IO/XML/XMLReader.d.ts +5 -5
- package/Interaction/Manipulators/MouseCameraTrackballRollManipulator.js +1 -1
- package/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.js +1 -1
- package/Interaction/Manipulators/MouseCameraUnicamManipulator.js +1 -1
- package/Interaction/Manipulators/MouseCameraUnicamRotateManipulator.js +1 -1
- package/Interaction/Style/InteractorStyleTrackballCamera.js +1 -1
- package/Interaction/Widgets/OrientationMarkerWidget.d.ts +6 -6
- package/Interaction/Widgets/PiecewiseGaussianWidget.js +1 -1
- package/Proxy/Core/View2DProxy.js +1 -1
- package/Rendering/Core/AbstractMapper.d.ts +2 -2
- package/Rendering/Core/AbstractMapper3D.d.ts +1 -1
- package/Rendering/Core/AbstractPicker.d.ts +2 -2
- package/Rendering/Core/Actor.d.ts +1 -1
- package/Rendering/Core/Actor2D.d.ts +1 -1
- package/Rendering/Core/Camera.d.ts +2 -2
- package/Rendering/Core/CellPicker.d.ts +2 -2
- package/Rendering/Core/ColorTransferFunction.d.ts +1 -1
- package/Rendering/Core/ColorTransferFunction.js +1 -1
- package/Rendering/Core/Coordinate.d.ts +1 -1
- package/Rendering/Core/Coordinate.js +1 -1
- package/Rendering/Core/CubeAxesActor.js +1 -1
- package/Rendering/Core/Glyph3DMapper.d.ts +1 -1
- package/Rendering/Core/Glyph3DMapper.js +1 -1
- package/Rendering/Core/ImageMapper.d.ts +1 -1
- package/Rendering/Core/ImageMapper.js +1 -1
- package/Rendering/Core/ImageProperty.d.ts +1 -1
- package/Rendering/Core/ImageSlice.d.ts +1 -1
- package/Rendering/Core/Light.d.ts +2 -2
- package/Rendering/Core/Mapper.d.ts +1 -1
- package/Rendering/Core/Mapper.js +1 -1
- package/Rendering/Core/Mapper2D.d.ts +1 -1
- package/Rendering/Core/Picker.d.ts +1 -1
- package/Rendering/Core/PointPicker.d.ts +1 -1
- package/Rendering/Core/Prop.d.ts +1 -1
- package/Rendering/Core/Prop3D.d.ts +1 -1
- package/Rendering/Core/Prop3D.js +1 -1
- package/Rendering/Core/Property.d.ts +2 -2
- package/Rendering/Core/Property2D.d.ts +2 -2
- package/Rendering/Core/RenderWindow.d.ts +2 -2
- package/Rendering/Core/RenderWindowInteractor.d.ts +123 -109
- package/Rendering/Core/RenderWindowInteractor.js +1 -1
- package/Rendering/Core/Renderer.d.ts +1 -1
- package/Rendering/Core/Renderer.js +1 -1
- package/Rendering/Core/ScalarBarActor.d.ts +2 -2
- package/Rendering/Core/ScalarBarActor.js +3 -3
- package/Rendering/Core/Texture.d.ts +1 -1
- package/Rendering/Core/Viewport.d.ts +2 -2
- package/Rendering/Core/Volume.d.ts +1 -1
- package/Rendering/Core/VolumeMapper.d.ts +1 -1
- package/Rendering/Core/VolumeMapper.js +1 -1
- package/Rendering/Core/VolumeProperty.d.ts +1 -1
- package/Rendering/Misc/CanvasView.d.ts +2 -2
- package/Rendering/Misc/FullScreenRenderWindow.d.ts +8 -8
- package/Rendering/Misc/GenericRenderWindow.d.ts +6 -6
- package/Rendering/Misc/RemoteView.d.ts +2 -2
- package/Rendering/Misc/RenderWindowWithControlBar.d.ts +1 -1
- package/Rendering/Misc/SynchronizableRenderWindow.d.ts +2 -2
- package/Rendering/Misc/TextureLODsDownloader.d.ts +3 -3
- package/Rendering/OpenGL/OrderIndependentTranslucentPass.js +5 -1
- package/Rendering/OpenGL/PolyDataMapper2D.js +1 -1
- package/Rendering/OpenGL/RenderWindow.d.ts +7 -7
- package/Rendering/OpenGL/Texture.js +1 -1
- package/Rendering/OpenGL/VolumeMapper.js +1 -1
- package/Rendering/SceneGraph/RenderPass.d.ts +1 -1
- package/Rendering/SceneGraph/ViewNode.d.ts +1 -1
- package/Rendering/SceneGraph/ViewNode.js +28 -2
- package/Rendering/SceneGraph/ViewNodeFactory.d.ts +1 -1
- package/Rendering/WebGPU/CellArrayMapper.js +629 -0
- package/Rendering/WebGPU/FullScreenQuad.js +4 -6
- package/Rendering/WebGPU/Glyph3DMapper.js +60 -27
- package/Rendering/WebGPU/ImageMapper.js +23 -60
- package/Rendering/WebGPU/OrderIndependentTranslucentPass.js +4 -6
- package/Rendering/WebGPU/Pipeline.js +12 -0
- package/Rendering/WebGPU/PolyDataMapper.js +49 -623
- package/Rendering/WebGPU/RenderEncoder.js +34 -0
- package/Rendering/WebGPU/Renderer.js +4 -62
- package/Rendering/WebGPU/ShaderDescription.js +6 -6
- package/Rendering/WebGPU/{MapperHelper.js → SimpleMapper.js} +64 -38
- package/Rendering/WebGPU/SphereMapper.js +41 -37
- package/Rendering/WebGPU/StickMapper.js +35 -30
- package/Rendering/WebGPU/StorageBuffer.js +2 -2
- package/Rendering/WebGPU/UniformBuffer.js +1 -1
- package/Rendering/WebGPU/Volume.js +1 -14
- package/Rendering/WebGPU/VolumePass.js +15 -19
- package/Rendering/WebGPU/VolumePassFSQ.js +19 -25
- package/Widgets/Manipulators/LineManipulator.d.ts +1 -1
- package/Widgets/Manipulators/LineManipulator.js +1 -1
- package/Widgets/Manipulators/PlaneManipulator.d.ts +1 -1
- package/Widgets/Manipulators/TrackballManipulator.d.ts +1 -1
- package/Widgets/Representations/PolyLineRepresentation.js +1 -1
- package/Widgets/Representations/ResliceCursorContextRepresentation.js +1 -1
- package/Widgets/Representations/WidgetRepresentation.d.ts +1 -1
- package/Widgets/Widgets3D/AngleWidget.js +1 -1
- package/Widgets/Widgets3D/LineWidget/helpers.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget/helpers.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget.js +1 -1
- package/Widgets/Widgets3D/ShapeWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/SphereWidget.d.ts +2 -2
- package/index.d.ts +2 -2
- package/interfaces.d.ts +2 -2
- package/macros.d.ts +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -1
- package/tsconfig.json +0 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { vtkObject, vtkSubscription } from '
|
|
1
|
+
import { vtkObject, vtkSubscription } from './../../interfaces';
|
|
2
2
|
import vtkRenderer from './Renderer';
|
|
3
3
|
import vtkRenderWindowInteractor from './RenderWindowInteractor';
|
|
4
|
-
// import vtkOpenGLRenderWindow from '
|
|
4
|
+
// import vtkOpenGLRenderWindow from './../../OpenGL/RenderWindow';
|
|
5
5
|
|
|
6
6
|
export interface IRenderWindowInitialValues {
|
|
7
7
|
renderers?: vtkRenderer[],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { vtkObject } from '
|
|
1
|
+
import { vtkObject, vtkSubscription } from './../../interfaces';
|
|
2
2
|
import vtkRenderer from './Renderer';
|
|
3
3
|
|
|
4
4
|
export enum Device {
|
|
@@ -36,6 +36,20 @@ interface IPosition {
|
|
|
36
36
|
type: string;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
export type InteractorEventCallback = (e: IRenderWindowInteractorEvent) => void
|
|
40
|
+
|
|
41
|
+
export type InteractorEventType = "StartInteractionEvent" | "InteractionEvent" | "EndInteractionEvent"
|
|
42
|
+
|
|
43
|
+
export interface IRenderWindowInteractorEvent {
|
|
44
|
+
altKey: boolean;
|
|
45
|
+
controlKey: boolean;
|
|
46
|
+
firstRenderer: vtkRenderer;
|
|
47
|
+
pokedRenderer: vtkRenderer;
|
|
48
|
+
position: { x: number; y: number; z: number };
|
|
49
|
+
shiftKey: boolean;
|
|
50
|
+
type: InteractorEventType;
|
|
51
|
+
}
|
|
52
|
+
|
|
39
53
|
export interface vtkRenderWindowInteractor extends vtkObject {
|
|
40
54
|
|
|
41
55
|
/**
|
|
@@ -113,398 +127,398 @@ export interface vtkRenderWindowInteractor extends vtkObject {
|
|
|
113
127
|
/**
|
|
114
128
|
*
|
|
115
129
|
*/
|
|
116
|
-
invokeStartAnimation(callData:
|
|
130
|
+
invokeStartAnimation(callData: IRenderWindowInteractorEvent): void;
|
|
117
131
|
|
|
118
132
|
/**
|
|
119
133
|
*
|
|
120
134
|
*/
|
|
121
|
-
invokeAnimation(callData:
|
|
135
|
+
invokeAnimation(callData: IRenderWindowInteractorEvent): void;
|
|
122
136
|
|
|
123
137
|
/**
|
|
124
138
|
*
|
|
125
139
|
*/
|
|
126
|
-
invokeEndAnimation(callData:
|
|
140
|
+
invokeEndAnimation(callData: IRenderWindowInteractorEvent): void;
|
|
127
141
|
|
|
128
142
|
/**
|
|
129
143
|
*
|
|
130
144
|
*/
|
|
131
|
-
invokeMouseEnter(callData:
|
|
145
|
+
invokeMouseEnter(callData: IRenderWindowInteractorEvent): void;
|
|
132
146
|
|
|
133
147
|
/**
|
|
134
148
|
*
|
|
135
149
|
*/
|
|
136
|
-
invokeMouseLeave(callData:
|
|
150
|
+
invokeMouseLeave(callData: IRenderWindowInteractorEvent): void;
|
|
137
151
|
|
|
138
152
|
/**
|
|
139
153
|
*
|
|
140
154
|
*/
|
|
141
|
-
invokeStartMouseMove(callData:
|
|
155
|
+
invokeStartMouseMove(callData: IRenderWindowInteractorEvent): void;
|
|
142
156
|
|
|
143
157
|
/**
|
|
144
158
|
*
|
|
145
159
|
*/
|
|
146
|
-
invokeMouseMove(callData:
|
|
160
|
+
invokeMouseMove(callData: IRenderWindowInteractorEvent): void;
|
|
147
161
|
|
|
148
162
|
/**
|
|
149
163
|
*
|
|
150
164
|
*/
|
|
151
|
-
invokeEndMouseMove(callData:
|
|
165
|
+
invokeEndMouseMove(callData: IRenderWindowInteractorEvent): void;
|
|
152
166
|
|
|
153
167
|
/**
|
|
154
168
|
*
|
|
155
169
|
*/
|
|
156
|
-
invokeLeftButtonPress(callData:
|
|
170
|
+
invokeLeftButtonPress(callData: IRenderWindowInteractorEvent): void;
|
|
157
171
|
|
|
158
172
|
/**
|
|
159
173
|
*
|
|
160
174
|
*/
|
|
161
|
-
invokeLeftButtonRelease(callData:
|
|
175
|
+
invokeLeftButtonRelease(callData: IRenderWindowInteractorEvent): void;
|
|
162
176
|
|
|
163
177
|
/**
|
|
164
178
|
*
|
|
165
179
|
*/
|
|
166
|
-
invokeMiddleButtonPress(callData:
|
|
180
|
+
invokeMiddleButtonPress(callData: IRenderWindowInteractorEvent): void;
|
|
167
181
|
|
|
168
182
|
/**
|
|
169
183
|
*
|
|
170
184
|
*/
|
|
171
|
-
invokeMiddleButtonRelease(callData:
|
|
185
|
+
invokeMiddleButtonRelease(callData: IRenderWindowInteractorEvent): void;
|
|
172
186
|
|
|
173
187
|
/**
|
|
174
188
|
*
|
|
175
189
|
*/
|
|
176
|
-
invokeRightButtonPress(callData:
|
|
190
|
+
invokeRightButtonPress(callData: IRenderWindowInteractorEvent): void;
|
|
177
191
|
|
|
178
192
|
/**
|
|
179
193
|
*
|
|
180
194
|
*/
|
|
181
|
-
invokeRightButtonRelease(callData:
|
|
195
|
+
invokeRightButtonRelease(callData: IRenderWindowInteractorEvent): void;
|
|
182
196
|
|
|
183
197
|
/**
|
|
184
198
|
*
|
|
185
199
|
*/
|
|
186
|
-
invokeKeyPress(callData:
|
|
200
|
+
invokeKeyPress(callData: IRenderWindowInteractorEvent): void;
|
|
187
201
|
|
|
188
202
|
/**
|
|
189
203
|
*
|
|
190
204
|
*/
|
|
191
|
-
invokeKeyDown(callData:
|
|
205
|
+
invokeKeyDown(callData: IRenderWindowInteractorEvent): void;
|
|
192
206
|
|
|
193
207
|
/**
|
|
194
208
|
*
|
|
195
209
|
*/
|
|
196
|
-
invokeKeyUp(callData:
|
|
210
|
+
invokeKeyUp(callData: IRenderWindowInteractorEvent): void;
|
|
197
211
|
|
|
198
212
|
/**
|
|
199
213
|
*
|
|
200
214
|
*/
|
|
201
|
-
invokeStartMouseWheel(callData:
|
|
215
|
+
invokeStartMouseWheel(callData: IRenderWindowInteractorEvent): void;
|
|
202
216
|
|
|
203
217
|
/**
|
|
204
218
|
*
|
|
205
219
|
*/
|
|
206
|
-
invokeMouseWheel(callData:
|
|
220
|
+
invokeMouseWheel(callData: IRenderWindowInteractorEvent): void;
|
|
207
221
|
|
|
208
222
|
/**
|
|
209
223
|
*
|
|
210
224
|
*/
|
|
211
|
-
invokeEndMouseWheel(callData:
|
|
225
|
+
invokeEndMouseWheel(callData: IRenderWindowInteractorEvent): void;
|
|
212
226
|
|
|
213
227
|
/**
|
|
214
228
|
*
|
|
215
229
|
*/
|
|
216
|
-
invokeStartPinch(callData:
|
|
230
|
+
invokeStartPinch(callData: IRenderWindowInteractorEvent): void;
|
|
217
231
|
|
|
218
232
|
/**
|
|
219
233
|
*
|
|
220
234
|
*/
|
|
221
|
-
invokePinch(callData:
|
|
235
|
+
invokePinch(callData: IRenderWindowInteractorEvent): void;
|
|
222
236
|
|
|
223
237
|
/**
|
|
224
238
|
*
|
|
225
239
|
*/
|
|
226
|
-
invokeEndPinch(callData:
|
|
240
|
+
invokeEndPinch(callData: IRenderWindowInteractorEvent): void;
|
|
227
241
|
|
|
228
242
|
/**
|
|
229
243
|
*
|
|
230
244
|
*/
|
|
231
|
-
invokeStartPan(callData:
|
|
245
|
+
invokeStartPan(callData: IRenderWindowInteractorEvent): void;
|
|
232
246
|
|
|
233
247
|
/**
|
|
234
248
|
*
|
|
235
249
|
*/
|
|
236
|
-
invokePan(callData:
|
|
250
|
+
invokePan(callData: IRenderWindowInteractorEvent): void;
|
|
237
251
|
|
|
238
252
|
/**
|
|
239
253
|
*
|
|
240
254
|
*/
|
|
241
|
-
invokeEndPan(callData:
|
|
255
|
+
invokeEndPan(callData: IRenderWindowInteractorEvent): void;
|
|
242
256
|
|
|
243
257
|
/**
|
|
244
258
|
*
|
|
245
259
|
*/
|
|
246
|
-
invokeStartRotate(callData:
|
|
260
|
+
invokeStartRotate(callData: IRenderWindowInteractorEvent): void;
|
|
247
261
|
|
|
248
262
|
/**
|
|
249
263
|
*
|
|
250
264
|
*/
|
|
251
|
-
invokeRotate(callData:
|
|
265
|
+
invokeRotate(callData: IRenderWindowInteractorEvent): void;
|
|
252
266
|
|
|
253
267
|
/**
|
|
254
268
|
*
|
|
255
269
|
*/
|
|
256
|
-
invokeEndRotate(callData:
|
|
270
|
+
invokeEndRotate(callData: IRenderWindowInteractorEvent): void;
|
|
257
271
|
|
|
258
272
|
/**
|
|
259
273
|
*
|
|
260
274
|
*/
|
|
261
|
-
invokeButton3D(callData:
|
|
275
|
+
invokeButton3D(callData: IRenderWindowInteractorEvent): void;
|
|
262
276
|
|
|
263
277
|
/**
|
|
264
278
|
*
|
|
265
279
|
*/
|
|
266
|
-
invokeMove3D(callData:
|
|
280
|
+
invokeMove3D(callData: IRenderWindowInteractorEvent): void;
|
|
267
281
|
|
|
268
282
|
/**
|
|
269
283
|
*
|
|
270
284
|
*/
|
|
271
|
-
invokeStartPointerLock(callData:
|
|
285
|
+
invokeStartPointerLock(callData: IRenderWindowInteractorEvent): void;
|
|
272
286
|
|
|
273
287
|
/**
|
|
274
288
|
*
|
|
275
289
|
*/
|
|
276
|
-
invokeEndPointerLock(callData:
|
|
290
|
+
invokeEndPointerLock(callData: IRenderWindowInteractorEvent): void;
|
|
277
291
|
|
|
278
292
|
/**
|
|
279
293
|
*
|
|
280
294
|
*/
|
|
281
|
-
invokeStartInteractionEvent(callData:
|
|
295
|
+
invokeStartInteractionEvent(callData: IRenderWindowInteractorEvent): void;
|
|
282
296
|
|
|
283
297
|
/**
|
|
284
298
|
*
|
|
285
299
|
*/
|
|
286
|
-
invokeInteractionEvent(callData:
|
|
300
|
+
invokeInteractionEvent(callData: IRenderWindowInteractorEvent): void;
|
|
287
301
|
|
|
288
302
|
/**
|
|
289
303
|
*
|
|
290
304
|
*/
|
|
291
|
-
invokeEndInteractionEvent(callData:
|
|
305
|
+
invokeEndInteractionEvent(callData: IRenderWindowInteractorEvent): void;
|
|
292
306
|
|
|
293
307
|
/**
|
|
294
308
|
*
|
|
295
|
-
* @param
|
|
309
|
+
* @param cb The callback to be called
|
|
296
310
|
*/
|
|
297
|
-
onStartAnimation(
|
|
311
|
+
onStartAnimation(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
298
312
|
|
|
299
313
|
/**
|
|
300
314
|
*
|
|
301
|
-
* @param
|
|
315
|
+
* @param cb The callback to be called
|
|
302
316
|
*/
|
|
303
|
-
onAnimation(
|
|
317
|
+
onAnimation(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
304
318
|
|
|
305
319
|
/**
|
|
306
320
|
*
|
|
307
|
-
* @param
|
|
321
|
+
* @param cb The callback to be called
|
|
308
322
|
*/
|
|
309
|
-
onEndAnimation(
|
|
323
|
+
onEndAnimation(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
310
324
|
|
|
311
325
|
/**
|
|
312
326
|
*
|
|
313
|
-
* @param
|
|
327
|
+
* @param cb The callback to be called
|
|
314
328
|
*/
|
|
315
|
-
onMouseEnter(
|
|
329
|
+
onMouseEnter(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
316
330
|
|
|
317
331
|
/**
|
|
318
332
|
*
|
|
319
|
-
* @param
|
|
333
|
+
* @param cb The callback to be called
|
|
320
334
|
*/
|
|
321
|
-
onMouseLeave(
|
|
335
|
+
onMouseLeave(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
322
336
|
|
|
323
337
|
/**
|
|
324
338
|
*
|
|
325
|
-
* @param
|
|
339
|
+
* @param cb The callback to be called
|
|
326
340
|
*/
|
|
327
|
-
onStartMouseMove(
|
|
341
|
+
onStartMouseMove(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
328
342
|
|
|
329
343
|
/**
|
|
330
344
|
*
|
|
331
|
-
* @param
|
|
345
|
+
* @param cb The callback to be called
|
|
332
346
|
*/
|
|
333
|
-
onMouseMove(
|
|
347
|
+
onMouseMove(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
334
348
|
|
|
335
349
|
/**
|
|
336
350
|
*
|
|
337
|
-
* @param
|
|
351
|
+
* @param cb The callback to be called
|
|
338
352
|
*/
|
|
339
|
-
onEndMouseMove(
|
|
353
|
+
onEndMouseMove(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
340
354
|
|
|
341
355
|
/**
|
|
342
356
|
*
|
|
343
|
-
* @param
|
|
357
|
+
* @param cb The callback to be called
|
|
344
358
|
*/
|
|
345
|
-
onLeftButtonPress(
|
|
359
|
+
onLeftButtonPress(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
346
360
|
|
|
347
361
|
/**
|
|
348
362
|
*
|
|
349
|
-
* @param
|
|
363
|
+
* @param cb The callback to be called
|
|
350
364
|
*/
|
|
351
|
-
onLeftButtonRelease(
|
|
365
|
+
onLeftButtonRelease(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
352
366
|
|
|
353
367
|
/**
|
|
354
368
|
*
|
|
355
|
-
* @param
|
|
369
|
+
* @param cb The callback to be called
|
|
356
370
|
*/
|
|
357
|
-
onMiddleButtonPress(
|
|
371
|
+
onMiddleButtonPress(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
358
372
|
|
|
359
373
|
/**
|
|
360
374
|
*
|
|
361
|
-
* @param
|
|
375
|
+
* @param cb The callback to be called
|
|
362
376
|
*/
|
|
363
|
-
onMiddleButtonRelease(
|
|
377
|
+
onMiddleButtonRelease(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
364
378
|
|
|
365
379
|
/**
|
|
366
380
|
*
|
|
367
|
-
* @param
|
|
381
|
+
* @param cb The callback to be called
|
|
368
382
|
*/
|
|
369
|
-
onRightButtonPress(
|
|
383
|
+
onRightButtonPress(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
370
384
|
|
|
371
385
|
/**
|
|
372
386
|
*
|
|
373
|
-
* @param
|
|
387
|
+
* @param cb The callback to be called
|
|
374
388
|
*/
|
|
375
|
-
onRightButtonRelease(
|
|
389
|
+
onRightButtonRelease(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
376
390
|
|
|
377
391
|
/**
|
|
378
392
|
*
|
|
379
|
-
* @param
|
|
393
|
+
* @param cb The callback to be called
|
|
380
394
|
*/
|
|
381
|
-
onKeyPress(
|
|
395
|
+
onKeyPress(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
382
396
|
|
|
383
397
|
/**
|
|
384
398
|
*
|
|
385
|
-
* @param
|
|
399
|
+
* @param cb The callback to be called
|
|
386
400
|
*/
|
|
387
|
-
onKeyDown(
|
|
401
|
+
onKeyDown(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
388
402
|
|
|
389
403
|
/**
|
|
390
404
|
*
|
|
391
|
-
* @param
|
|
405
|
+
* @param cb The callback to be called
|
|
392
406
|
*/
|
|
393
|
-
onKeyUp(
|
|
407
|
+
onKeyUp(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
394
408
|
|
|
395
409
|
/**
|
|
396
410
|
*
|
|
397
|
-
* @param
|
|
411
|
+
* @param cb The callback to be called
|
|
398
412
|
*/
|
|
399
|
-
onStartMouseWheel(
|
|
413
|
+
onStartMouseWheel(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
400
414
|
|
|
401
415
|
/**
|
|
402
416
|
*
|
|
403
|
-
* @param
|
|
417
|
+
* @param cb The callback to be called
|
|
404
418
|
*/
|
|
405
|
-
onMouseWheel(
|
|
419
|
+
onMouseWheel(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
406
420
|
|
|
407
421
|
/**
|
|
408
422
|
*
|
|
409
|
-
* @param
|
|
423
|
+
* @param cb The callback to be called
|
|
410
424
|
*/
|
|
411
|
-
onEndMouseWheel(
|
|
425
|
+
onEndMouseWheel(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
412
426
|
|
|
413
427
|
/**
|
|
414
428
|
*
|
|
415
|
-
* @param
|
|
429
|
+
* @param cb The callback to be called
|
|
416
430
|
*/
|
|
417
|
-
onStartPinch(
|
|
431
|
+
onStartPinch(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
418
432
|
|
|
419
433
|
/**
|
|
420
434
|
*
|
|
421
|
-
* @param
|
|
435
|
+
* @param cb The callback to be called
|
|
422
436
|
*/
|
|
423
|
-
onPinch(
|
|
437
|
+
onPinch(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
424
438
|
|
|
425
439
|
/**
|
|
426
440
|
*
|
|
427
|
-
* @param
|
|
441
|
+
* @param cb The callback to be called
|
|
428
442
|
*/
|
|
429
|
-
onEndPinch(
|
|
443
|
+
onEndPinch(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
430
444
|
|
|
431
445
|
/**
|
|
432
446
|
*
|
|
433
|
-
* @param
|
|
447
|
+
* @param cb The callback to be called
|
|
434
448
|
*/
|
|
435
|
-
onStartPan(
|
|
449
|
+
onStartPan(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
436
450
|
|
|
437
451
|
/**
|
|
438
452
|
*
|
|
439
|
-
* @param
|
|
453
|
+
* @param cb The callback to be called
|
|
440
454
|
*/
|
|
441
|
-
onPan(
|
|
455
|
+
onPan(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
442
456
|
|
|
443
457
|
/**
|
|
444
458
|
*
|
|
445
|
-
* @param
|
|
459
|
+
* @param cb The callback to be called
|
|
446
460
|
*/
|
|
447
|
-
onEndPan(
|
|
461
|
+
onEndPan(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
448
462
|
|
|
449
463
|
/**
|
|
450
464
|
*
|
|
451
|
-
* @param
|
|
465
|
+
* @param cb The callback to be called
|
|
452
466
|
*/
|
|
453
|
-
onStartRotate(
|
|
467
|
+
onStartRotate(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
454
468
|
|
|
455
469
|
/**
|
|
456
470
|
*
|
|
457
|
-
* @param
|
|
471
|
+
* @param cb The callback to be called
|
|
458
472
|
*/
|
|
459
|
-
onRotate(
|
|
473
|
+
onRotate(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
460
474
|
|
|
461
475
|
/**
|
|
462
476
|
*
|
|
463
|
-
* @param
|
|
477
|
+
* @param cb The callback to be called
|
|
464
478
|
*/
|
|
465
|
-
onEndRotate(
|
|
479
|
+
onEndRotate(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
466
480
|
|
|
467
481
|
/**
|
|
468
482
|
*
|
|
469
|
-
* @param
|
|
483
|
+
* @param cb The callback to be called
|
|
470
484
|
*/
|
|
471
|
-
onButton3D(
|
|
485
|
+
onButton3D(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
472
486
|
|
|
473
487
|
/**
|
|
474
488
|
*
|
|
475
|
-
* @param
|
|
489
|
+
* @param cb The callback to be called
|
|
476
490
|
*/
|
|
477
|
-
onMove3D(
|
|
491
|
+
onMove3D(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
478
492
|
|
|
479
493
|
/**
|
|
480
494
|
*
|
|
481
|
-
* @param
|
|
495
|
+
* @param cb The callback to be called
|
|
482
496
|
*/
|
|
483
|
-
onStartPointerLock(
|
|
497
|
+
onStartPointerLock(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
484
498
|
|
|
485
499
|
/**
|
|
486
500
|
*
|
|
487
|
-
* @param
|
|
501
|
+
* @param cb The callback to be called
|
|
488
502
|
*/
|
|
489
|
-
onEndPointerLock(
|
|
503
|
+
onEndPointerLock(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
490
504
|
|
|
491
505
|
/**
|
|
492
506
|
*
|
|
493
|
-
* @param
|
|
507
|
+
* @param cb The callback to be called
|
|
494
508
|
*/
|
|
495
|
-
onStartInteractionEvent(
|
|
509
|
+
onStartInteractionEvent(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
496
510
|
|
|
497
511
|
/**
|
|
498
512
|
*
|
|
499
|
-
* @param
|
|
513
|
+
* @param cb The callback to be called
|
|
500
514
|
*/
|
|
501
|
-
onInteractionEvent(
|
|
515
|
+
onInteractionEvent(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
502
516
|
|
|
503
517
|
/**
|
|
504
518
|
*
|
|
505
|
-
* @param
|
|
519
|
+
* @param cb The callback to be called
|
|
506
520
|
*/
|
|
507
|
-
onEndInteractionEvent(
|
|
521
|
+
onEndInteractionEvent(cb: InteractorEventCallback, priority?: number): Readonly<vtkSubscription>;
|
|
508
522
|
|
|
509
523
|
/**
|
|
510
524
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import macro from '../../macros.js';
|
|
3
|
-
import {
|
|
3
|
+
import { y as degreesFromRadians } from '../../Common/Core/Math/index.js';
|
|
4
4
|
import Constants from './RenderWindowInteractor/Constants.js';
|
|
5
5
|
|
|
6
6
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -2,7 +2,7 @@ import { mat4, vec3 } from 'gl-matrix';
|
|
|
2
2
|
import { newInstance as newInstance$1, get, setGet, getArray, setGetArray, moveToProtected, vtkDebugMacro as vtkDebugMacro$1, vtkErrorMacro as vtkErrorMacro$1, vtkWarningMacro as vtkWarningMacro$1 } from '../../macros.js';
|
|
3
3
|
import vtkCamera from './Camera.js';
|
|
4
4
|
import vtkLight from './Light.js';
|
|
5
|
-
import {
|
|
5
|
+
import { N as areBoundsInitialized, u as uninitializeBounds, r as radiansFromDegrees, d as dot, L as createUninitializedBounds } from '../../Common/Core/Math/index.js';
|
|
6
6
|
import vtkViewport from './Viewport.js';
|
|
7
7
|
import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js';
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import vtkScalarsToColors from '
|
|
2
|
-
import { Size, Vector2, Vector3 } from '
|
|
1
|
+
import vtkScalarsToColors from './../../Common/Core/ScalarsToColors';
|
|
2
|
+
import { Size, Vector2, Vector3 } from './../../types';
|
|
3
3
|
import vtkActor, { IActorInitialValues } from './Actor';
|
|
4
4
|
|
|
5
5
|
|
|
@@ -2,7 +2,7 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import { vec3, mat4 } from 'gl-matrix';
|
|
4
4
|
import * as d3 from 'd3-scale';
|
|
5
|
-
import {
|
|
5
|
+
import { K as nearestPowerOfTwo } from '../../Common/Core/Math/index.js';
|
|
6
6
|
import macro from '../../macros.js';
|
|
7
7
|
import vtkActor from './Actor.js';
|
|
8
8
|
import vtkDataArray from '../../Common/Core/DataArray.js';
|
|
@@ -180,8 +180,7 @@ function vtkScalarBarActorHelper(publicAPI, model) {
|
|
|
180
180
|
|
|
181
181
|
if (model.forceUpdate || Math.max(scalarsToColors.getMTime(), publicAPI.getMTime()) > model.lastRebuildTime.getMTime()) {
|
|
182
182
|
var range = scalarsToColors.getMappingRange();
|
|
183
|
-
model.lastTickBounds = _toConsumableArray(range);
|
|
184
|
-
model.barMapper.setScalarRange(model.lastTickBounds); // compute tick marks for axes (update for log scale)
|
|
183
|
+
model.lastTickBounds = _toConsumableArray(range); // compute tick marks for axes (update for log scale)
|
|
185
184
|
|
|
186
185
|
var scale = d3.scaleLinear().domain([model.lastTickBounds[0], model.lastTickBounds[1]]);
|
|
187
186
|
model.ticks = scale.ticks(5);
|
|
@@ -695,6 +694,7 @@ var newScalarBarActorHelper = macro.newInstance(function (publicAPI, model) {
|
|
|
695
694
|
model._tmAtlas = new Map();
|
|
696
695
|
model.barMapper = vtkMapper.newInstance();
|
|
697
696
|
model.barMapper.setInterpolateScalarsBeforeMapping(true);
|
|
697
|
+
model.barMapper.setUseLookupTableScalarRange(true);
|
|
698
698
|
model.polyData = vtkPolyData.newInstance();
|
|
699
699
|
model.barMapper.setInputData(model.polyData);
|
|
700
700
|
model.barActor = vtkActor.newInstance();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
|
-
import {
|
|
2
|
+
import { L as createUninitializedBounds } from '../../Common/Core/Math/index.js';
|
|
3
3
|
import Constants from './VolumeMapper/Constants.js';
|
|
4
4
|
import vtkAbstractMapper from './AbstractMapper.js';
|
|
5
5
|
|