@kitware/vtk.js 23.4.2 → 23.4.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/Math/Constants.js +12 -0
- package/Common/Core/Math/index.js +1 -1
- package/Common/Core/Math.js +1 -1
- package/Common/Core/ScalarsToColors/Constants.d.ts +18 -0
- package/Common/DataModel/AbstractPointLocator.d.ts +54 -0
- package/Common/DataModel/AbstractPointLocator.js +40 -0
- package/Common/DataModel/BoundingBox.d.ts +659 -0
- package/Common/DataModel/Collection.d.ts +118 -0
- package/Common/DataModel/Collection.js +113 -0
- package/Common/DataModel/DataSet/Constants.d.ts +27 -0
- package/Common/DataModel/EdgeLocator.d.ts +79 -0
- package/Common/DataModel/EdgeLocator.js +85 -0
- package/Common/DataModel/ITKHelper.d.ts +54 -0
- package/Common/DataModel/IncrementalOctreeNode.d.ts +297 -0
- package/Common/DataModel/IncrementalOctreeNode.js +640 -0
- package/Common/DataModel/IncrementalOctreePointLocator.d.ts +61 -0
- package/Common/DataModel/IncrementalOctreePointLocator.js +398 -0
- package/Common/DataModel/Locator.d.ts +43 -0
- package/Common/DataModel/Locator.js +37 -0
- package/Common/DataModel/Plane.js +1 -1
- package/Common/DataModel/PolyData/Constants.d.ts +6 -0
- package/Common/DataModel/PolyLine.d.ts +63 -0
- package/Common/DataModel/PolyLine.js +77 -0
- package/Common/DataModel/Polygon/Constants.js +12 -0
- package/Common/DataModel/Polygon.js +1 -1
- package/Common/DataModel/Quad/Constants.js +9 -0
- package/Common/DataModel/Quad.d.ts +91 -0
- package/Common/DataModel/Quad.js +235 -0
- package/Common/DataModel/SelectionNode/Constants.d.ts +27 -0
- package/Common/DataModel/Spline1D/Constants.js +17 -0
- package/Common/DataModel/Spline3D/Constants.d.ts +9 -0
- package/Common/Transform/Transform.js +51 -0
- package/Filters/Core/PolyDataNormals.js +124 -0
- package/Filters/General/ClipClosedSurface/Constants.js +10 -0
- package/Filters/General/ClipClosedSurface.d.ts +95 -0
- package/Filters/General/ClipClosedSurface.js +972 -0
- package/Filters/General/ContourTriangulator/Constants.js +6 -0
- package/Filters/General/ContourTriangulator/helper.js +1951 -0
- package/Filters/General/ContourTriangulator.d.ts +136 -0
- package/Filters/General/ContourTriangulator.js +202 -0
- package/Filters/General/ImageMarchingCubes.js +1 -1
- package/Filters/General/MoleculeToRepresentation.js +1 -1
- package/Filters/General/OBBTree/OBBNode.js +82 -0
- package/Filters/General/OBBTree/helper.js +92 -0
- package/Filters/General/OBBTree.js +1243 -0
- package/Filters/General/TubeFilter.js +1 -1
- package/Filters/Sources/LineSource.js +1 -1
- package/Filters/Sources/PlaneSource.js +1 -1
- package/Filters/Texture/TextureMapToPlane.js +1 -1
- package/Interaction/Manipulators/CompositeCameraManipulator.d.ts +68 -0
- package/Interaction/Manipulators/CompositeGestureManipulator.d.ts +168 -0
- package/Interaction/Manipulators/CompositeKeyboardManipulator.d.ts +48 -0
- package/Interaction/Manipulators/CompositeMouseManipulator.d.ts +149 -0
- package/Interaction/Manipulators/CompositeVRManipulator.d.ts +44 -0
- package/Interaction/Manipulators/GestureCameraManipulator.d.ts +34 -0
- package/Interaction/Manipulators/KeyboardCameraManipulator.js +1 -1
- package/Interaction/Manipulators/MouseBoxSelectorManipulator.d.ts +88 -0
- package/Interaction/Manipulators/MouseCameraAxisRotateManipulator.js +1 -1
- package/Interaction/Manipulators/MouseCameraTrackballMultiRotateManipulator.d.ts +32 -0
- package/Interaction/Manipulators/MouseCameraTrackballPanManipulator.d.ts +33 -0
- package/Interaction/Manipulators/MouseCameraTrackballPanManipulator.js +1 -1
- package/Interaction/Manipulators/MouseCameraTrackballRollManipulator.d.ts +33 -0
- package/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.d.ts +67 -0
- package/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.js +1 -1
- package/Interaction/Manipulators/MouseCameraTrackballZoomManipulator.d.ts +45 -0
- package/Interaction/Manipulators/MouseCameraTrackballZoomToMouseManipulator.d.ts +26 -0
- package/Interaction/Manipulators/MouseCameraUnicamManipulator.js +1 -1
- package/Interaction/Manipulators/MouseCameraUnicamRotateManipulator.js +1 -1
- package/Interaction/Manipulators/MouseRangeManipulator.d.ts +53 -0
- package/Interaction/Style/InteractorStyleImage.d.ts +107 -0
- package/Interaction/Style/InteractorStyleMPRSlice.js +1 -1
- package/Interaction/Style/InteractorStyleManipulator.d.ts +348 -0
- package/Interaction/Style/InteractorStyleTrackballCamera.d.ts +170 -0
- package/Interaction/Widgets/ImageCroppingRegionsWidget.js +1 -1
- package/Interaction/Widgets/LabelRepresentation.js +1 -1
- package/Interaction/Widgets/OrientationMarkerWidget/Constants.d.ts +11 -0
- package/Interaction/Widgets/ResliceCursor/ResliceCursor.js +1 -1
- package/Interaction/Widgets/ResliceCursor/ResliceCursorLineRepresentation.js +1 -1
- package/Interaction/Widgets/ResliceCursor/ResliceCursorRepresentation.js +1 -1
- package/Proxy/Core/AbstractRepresentationProxy.d.ts +24 -0
- package/Proxy/Core/LookupTableProxy.d.ts +45 -0
- package/Proxy/Core/PiecewiseFunctionProxy.d.ts +62 -0
- package/Proxy/Core/ProxyManager.d.ts +115 -0
- package/Proxy/Core/SourceProxy.d.ts +22 -0
- package/Proxy/Core/View2DProxy.d.ts +7 -0
- package/Proxy/Core/View2DProxy.js +1 -1
- package/Proxy/Core/ViewProxy.d.ts +86 -0
- package/Proxy/Representations/SliceRepresentationProxy.d.ts +27 -0
- package/Proxy/Representations/VolumeRepresentationProxy.d.ts +44 -0
- package/README.md +2 -2
- package/Rendering/Core/AbstractImageMapper/helper.js +127 -0
- package/Rendering/Core/AbstractImageMapper.d.ts +82 -0
- package/Rendering/Core/AbstractImageMapper.js +44 -0
- package/Rendering/Core/Camera.js +1 -1
- package/Rendering/Core/CellPicker.js +1 -1
- package/Rendering/Core/ColorTransferFunction/ColorMaps.d.ts +24 -0
- package/Rendering/Core/ColorTransferFunction/Constants.d.ts +17 -0
- package/Rendering/Core/ColorTransferFunction.js +1 -1
- package/Rendering/Core/Coordinate/Constants.d.ts +14 -0
- package/Rendering/Core/Coordinate.js +1 -1
- package/Rendering/Core/Glyph3DMapper/Constants.d.ts +17 -0
- package/Rendering/Core/Glyph3DMapper.js +1 -1
- package/Rendering/Core/HardwareSelector.d.ts +84 -0
- package/Rendering/Core/ImageArrayMapper.d.ts +253 -0
- package/Rendering/Core/ImageArrayMapper.js +242 -0
- package/Rendering/Core/ImageMapper/Constants.d.ts +14 -0
- package/Rendering/Core/ImageMapper.js +1 -1
- package/Rendering/Core/ImageProperty/Constants.d.ts +9 -0
- package/Rendering/Core/ImageResliceMapper/Constants.d.ts +11 -0
- package/Rendering/Core/ImageResliceMapper/Constants.js +11 -0
- package/Rendering/Core/ImageResliceMapper.d.ts +245 -0
- package/Rendering/Core/ImageResliceMapper.js +70 -0
- package/Rendering/Core/InteractorObserver.d.ts +132 -0
- package/Rendering/Core/InteractorStyle/Constants.d.ts +16 -0
- package/Rendering/Core/InteractorStyle.d.ts +229 -0
- package/Rendering/Core/Light.js +1 -1
- package/Rendering/Core/Mapper/Constants.d.ts +26 -0
- package/Rendering/Core/Mapper.js +1 -1
- package/Rendering/Core/Picker.js +1 -1
- package/Rendering/Core/Prop/Constants.d.ts +9 -0
- package/Rendering/Core/Prop/Constants.js +9 -0
- package/Rendering/Core/Property/Constants.d.ts +24 -0
- package/Rendering/Core/Property2D/Constants.d.ts +9 -0
- package/Rendering/Core/RenderWindow.js +1 -1
- package/Rendering/Core/RenderWindowInteractor/Constants.d.ts +31 -0
- package/Rendering/Core/Renderer.js +1 -1
- package/Rendering/Core/VolumeMapper/Constants.d.ts +20 -0
- package/Rendering/Core/VolumeMapper.js +1 -1
- package/Rendering/Core/VolumeProperty/Constants.d.ts +16 -0
- package/Rendering/Misc/SynchronizableRenderWindow/BehaviorManager/CameraSynchronizer.js +129 -0
- package/Rendering/Misc/SynchronizableRenderWindow/BehaviorManager.js +131 -0
- package/Rendering/Misc/SynchronizableRenderWindow/ObjectManager.d.ts +80 -0
- package/Rendering/Misc/SynchronizableRenderWindow/ObjectManager.js +763 -0
- package/Rendering/OpenGL/HardwareSelector/Constants.d.ts +8 -0
- package/Rendering/OpenGL/HardwareSelector.d.ts +339 -0
- package/Rendering/OpenGL/ImageResliceMapper.js +996 -0
- package/Rendering/OpenGL/PolyDataMapper.js +1 -1
- package/Rendering/OpenGL/PolyDataMapper2D.js +1 -1
- package/Rendering/OpenGL/RenderWindow/Constants.d.ts +10 -0
- package/Rendering/OpenGL/RenderWindow/Constants.js +13 -0
- package/Rendering/OpenGL/RenderWindow/ContextProxy.js +70 -0
- package/Rendering/OpenGL/RenderWindow.d.ts +9 -2
- package/Rendering/OpenGL/RenderWindow.js +2 -1
- package/Rendering/OpenGL/glsl/vtkImageResliceMapperFS.glsl.js +3 -0
- package/Rendering/OpenGL/glsl/vtkImageResliceMapperVS.glsl.js +3 -0
- package/Rendering/WebGPU/Actor2D.js +151 -0
- package/Rendering/WebGPU/BufferManager.js +1 -1
- package/Rendering/WebGPU/CellArrayMapper.js +853 -0
- package/Rendering/WebGPU/IndexBuffer.js +397 -0
- package/Rendering/WebGPU/PolyDataMapper2D.js +99 -0
- package/Rendering/WebGPU/RenderWindow.js +3 -1
- package/Rendering/WebGPU/SimpleMapper.js +290 -0
- package/Widgets/Core/AbstractWidget.d.ts +187 -0
- package/Widgets/Core/AbstractWidgetFactory.d.ts +131 -0
- package/Widgets/Core/StateBuilder/color3Mixin.js +24 -0
- package/Widgets/Core/StateBuilder/orientationMixin.js +1 -1
- package/Widgets/Core/StateBuilder.d.ts +29 -0
- package/Widgets/Core/WidgetManager/Constants.d.ts +27 -0
- package/Widgets/Core/WidgetManager.d.ts +231 -0
- package/Widgets/Core/WidgetState.d.ts +81 -0
- package/Widgets/Manipulators/AbstractManipulator.d.ts +221 -0
- package/Widgets/Manipulators/AbstractManipulator.js +57 -0
- package/Widgets/Manipulators/LineManipulator.js +1 -1
- package/Widgets/Manipulators/TrackballManipulator.js +1 -1
- package/Widgets/Representations/GlyphRepresentation.js +325 -0
- package/Widgets/Representations/LineHandleRepresentation.js +116 -0
- package/Widgets/Representations/ResliceCursorContextRepresentation.js +1 -1
- package/Widgets/Representations/WidgetRepresentation.js +1 -1
- package/Widgets/Widgets3D/AngleWidget.js +1 -1
- package/Widgets/Widgets3D/InteractiveOrientationWidget.d.ts +40 -0
- package/Widgets/Widgets3D/LabelWidget/behavior.js +157 -0
- package/Widgets/Widgets3D/LabelWidget/state.js +22 -0
- package/Widgets/Widgets3D/LabelWidget.js +78 -0
- package/Widgets/Widgets3D/LineWidget/behavior.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/index.d.ts +133 -74
- package/package.json +1 -1
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import vtkCompositeGestureManipulator from './../Manipulators/CompositeGestureManipulator';
|
|
2
|
+
import vtkCompositeKeyboardManipulator from './../Manipulators/CompositeKeyboardManipulator';
|
|
3
|
+
import vtkCompositeMouseManipulator from './../Manipulators/CompositeMouseManipulator';
|
|
4
|
+
import vtkCompositeVRManipulator from './../Manipulators/CompositeVRManipulator';
|
|
5
|
+
import vtkInteractorStyle from './../../Rendering/Core/InteractorStyle';
|
|
6
|
+
import {
|
|
7
|
+
Device,
|
|
8
|
+
Input,
|
|
9
|
+
} from './../../Rendering/Core/RenderWindowInteractor/Constants';
|
|
10
|
+
import { Nullable, Vector3 } from './../../types';
|
|
11
|
+
|
|
12
|
+
export interface vtkInteractorStyleManipulator extends vtkInteractorStyle {
|
|
13
|
+
/**
|
|
14
|
+
* Remove all manipulators.
|
|
15
|
+
*/
|
|
16
|
+
removeAllManipulators(): void;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Remove mouse manipulators.
|
|
20
|
+
*/
|
|
21
|
+
removeAllMouseManipulators(): void;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Remove keyboard manipulators.
|
|
25
|
+
*/
|
|
26
|
+
removeAllKeyboardManipulators(): void;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Remove VR manipulators.
|
|
30
|
+
*/
|
|
31
|
+
removeAllVRManipulators(): void;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Remove gesture manipulators.
|
|
35
|
+
*/
|
|
36
|
+
removeAllGestureManipulators(): void;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Adds a mouse manipulator.
|
|
40
|
+
* @param manipulator the manipulator to add
|
|
41
|
+
* @returns whether the manipulator has been added
|
|
42
|
+
*/
|
|
43
|
+
addMouseManipulator(manipulator: vtkCompositeMouseManipulator): boolean;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Adds a keyboard manipulator.
|
|
47
|
+
* @param manipulator the manipulator to add
|
|
48
|
+
* @returns whether the manipulator has been added
|
|
49
|
+
*/
|
|
50
|
+
addKeyboardManipulator(manipulator: vtkCompositeKeyboardManipulator): boolean;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Adds a VR manipulator.
|
|
54
|
+
* @param manipulator the manipulator to add
|
|
55
|
+
* @returns whether the manipulator has been added
|
|
56
|
+
*/
|
|
57
|
+
addVRManipulator(manipulator: vtkCompositeVRManipulator): boolean;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Adds a gesture manipulator.
|
|
61
|
+
* @param manipulator the manipulator to add
|
|
62
|
+
* @returns whether the manipulator has been added
|
|
63
|
+
*/
|
|
64
|
+
addGestureManipulator(manipulator: vtkCompositeGestureManipulator): boolean;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Removes a mouse manipulator.
|
|
68
|
+
* @param manipulator the manipulator to remove
|
|
69
|
+
*/
|
|
70
|
+
removeMouseManipulator(manipulator: vtkCompositeMouseManipulator): void;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Removes a keyboard manipulator.
|
|
74
|
+
* @param manipulator the manipulator to remove
|
|
75
|
+
*/
|
|
76
|
+
removeKeyboardManipulator(manipulator: vtkCompositeKeyboardManipulator): void;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Removes a VR manipulator.
|
|
80
|
+
* @param manipulator the manipulator to remove
|
|
81
|
+
*/
|
|
82
|
+
removeVRManipulator(manipulator: vtkCompositeVRManipulator): void;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Removes a gesture manipulator.
|
|
86
|
+
* @param manipulator the manipulator to remove
|
|
87
|
+
*/
|
|
88
|
+
removeGestureManipulator(manipulator: vtkCompositeGestureManipulator): void;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Gets the number of mouse manipulators.
|
|
92
|
+
*/
|
|
93
|
+
getNumberOfMouseManipulators(): number;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Gets the number of keyboard manipulators.
|
|
97
|
+
*/
|
|
98
|
+
getNumberOfKeyboardManipulators(): number;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Gets the number of VR manipulators.
|
|
102
|
+
*/
|
|
103
|
+
getNumberOfVRManipulators(): number;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Gets the number of gesture manipulators.
|
|
107
|
+
*/
|
|
108
|
+
getNumberOfGestureManipulators(): number;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Resets/clears the current manipulator.
|
|
112
|
+
*/
|
|
113
|
+
resetCurrentManipulator(): void;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Finds a mouse manipulator with a given control set.
|
|
117
|
+
* @param button which button
|
|
118
|
+
* @param shift shift enabled
|
|
119
|
+
* @param scroll scroll enabled
|
|
120
|
+
* @param alt alt enabled
|
|
121
|
+
*/
|
|
122
|
+
findMouseManipulator(
|
|
123
|
+
button: number,
|
|
124
|
+
shift: boolean,
|
|
125
|
+
scroll: boolean,
|
|
126
|
+
alt: boolean
|
|
127
|
+
): Nullable<vtkCompositeMouseManipulator>;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Finds a VR manipulator with a given device + input.
|
|
131
|
+
* @param device
|
|
132
|
+
* @param input
|
|
133
|
+
*/
|
|
134
|
+
findVRManipulator(
|
|
135
|
+
device: Device,
|
|
136
|
+
input: Input
|
|
137
|
+
): Nullable<vtkCompositeVRManipulator>;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Handles a left button press event.
|
|
141
|
+
* @param callData event data
|
|
142
|
+
*/
|
|
143
|
+
handleLeftButtonPress(callData: unknown): void;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Handles a middle button press event.
|
|
147
|
+
* @param callData event data
|
|
148
|
+
*/
|
|
149
|
+
handleMiddleButtonPress(callData: unknown): void;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Handles a right button press event.
|
|
153
|
+
* @param callData event data
|
|
154
|
+
*/
|
|
155
|
+
handleRightButtonPress(callData: unknown): void;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Handles a left button release event.
|
|
159
|
+
* @param callData event data
|
|
160
|
+
*/
|
|
161
|
+
handleLeftButtonRelease(callData: unknown): void;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Handles a middle button release event.
|
|
165
|
+
* @param callData event data
|
|
166
|
+
*/
|
|
167
|
+
handleMiddleButtonRelease(callData: unknown): void;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Handles a right button release event.
|
|
171
|
+
* @param callData event data
|
|
172
|
+
*/
|
|
173
|
+
handleRightButtonRelease(callData: unknown): void;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Handles the start of a wheel event.
|
|
177
|
+
* @param callData event data
|
|
178
|
+
*/
|
|
179
|
+
handleStartMouseWheel(callData: unknown): void;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Handles a wheel event.
|
|
183
|
+
* @param callData event data
|
|
184
|
+
*/
|
|
185
|
+
handleMouseWheel(callData: unknown): void;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Handles the end of a wheel event.
|
|
189
|
+
* @param callData event data
|
|
190
|
+
*/
|
|
191
|
+
handleEndMouseWheel(callData: unknown): void;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Handles a mouse move.
|
|
195
|
+
* @param callData event data
|
|
196
|
+
*/
|
|
197
|
+
handleMouseMove(callData: unknown): void;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Handles a 3D button event.
|
|
201
|
+
* @param callData event data
|
|
202
|
+
*/
|
|
203
|
+
handleButton3D(ed: unknown): void;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Handles a 3D move event.
|
|
207
|
+
* @param ed event data
|
|
208
|
+
*/
|
|
209
|
+
handleMove3D(ed: unknown): void;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Handles a keypress.
|
|
213
|
+
* @param callData event data
|
|
214
|
+
*/
|
|
215
|
+
handleKeyPress(callData: unknown): void;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Handles a keydown event.
|
|
219
|
+
* @param callData event data
|
|
220
|
+
*/
|
|
221
|
+
handleKeyDown(callData: unknown): void;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Handles a keyup event.
|
|
225
|
+
* @param callData event data
|
|
226
|
+
*/
|
|
227
|
+
handleKeyUp(callData: unknown): void;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Handles the start of a pinch gesture.
|
|
231
|
+
* @param callData event data
|
|
232
|
+
*/
|
|
233
|
+
handleStartPinch(callData: unknown): void;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Handles the end of a pinch gesture.
|
|
237
|
+
* @param callData event data
|
|
238
|
+
*/
|
|
239
|
+
handleEndPinch(callData: unknown): void;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Handles the start of a rotate gesture.
|
|
243
|
+
* @param callData event data
|
|
244
|
+
*/
|
|
245
|
+
handleStartRotate(callData: unknown): void;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Handles the end of a rotate gesture.
|
|
249
|
+
* @param callData event data
|
|
250
|
+
*/
|
|
251
|
+
handleEndRotate(callData: unknown): void;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Handles the start of a pan gesture.
|
|
255
|
+
* @param callData event data
|
|
256
|
+
*/
|
|
257
|
+
handleStartPan(callData: unknown): void;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Handles the end of a pan gesture.
|
|
261
|
+
* @param callData event data
|
|
262
|
+
*/
|
|
263
|
+
handleEndPan(callData: unknown): void;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Handles a pinch gesture.
|
|
267
|
+
* @param callData event data
|
|
268
|
+
*/
|
|
269
|
+
handlePinch(callData: unknown): void;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Handles a rotate gesture.
|
|
273
|
+
* @param callData event data
|
|
274
|
+
*/
|
|
275
|
+
handleRotate(callData: unknown): void;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Handles a pan gesture.
|
|
279
|
+
* @param callData event data
|
|
280
|
+
*/
|
|
281
|
+
handlePan(callData: unknown): void;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Handles a button down event.
|
|
285
|
+
* @param button which button
|
|
286
|
+
* @param callData event data
|
|
287
|
+
*/
|
|
288
|
+
onButtonDown(button: number, callData: unknown): void;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Handles a button up event.
|
|
292
|
+
* @param button which button
|
|
293
|
+
*/
|
|
294
|
+
onButtonUp(button: number): void;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Sets the rotation factor.
|
|
298
|
+
* @param factor rotation factor
|
|
299
|
+
*/
|
|
300
|
+
setRotationFactor(factor: number): boolean;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Gets the rotation factor.
|
|
304
|
+
*/
|
|
305
|
+
getRotationFactor(): number;
|
|
306
|
+
|
|
307
|
+
getMouseManipulators(): vtkCompositeMouseManipulator[];
|
|
308
|
+
getMouseManipulators(): vtkCompositeMouseManipulator[];
|
|
309
|
+
getMouseManipulators(): vtkCompositeMouseManipulator[];
|
|
310
|
+
getMouseManipulators(): vtkCompositeMouseManipulator[];
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Sets the center of rotation
|
|
314
|
+
* @param {Number} x
|
|
315
|
+
* @param {Number} y
|
|
316
|
+
* @param {Number} z
|
|
317
|
+
*/
|
|
318
|
+
setCenterOfRotation(x: number, y: number, z: number): boolean;
|
|
319
|
+
setCenterOfRotation(xyz: Vector3): boolean;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Gets the center of rotation.
|
|
323
|
+
* @returns {Vector3}
|
|
324
|
+
*/
|
|
325
|
+
getCenterOfRotation(): Vector3;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export interface IInteractorStyleManipulatorInitialValues {
|
|
329
|
+
centerOfRotation?: Vector3;
|
|
330
|
+
rotationFactor?: number;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export function newInstance(
|
|
334
|
+
initialValues?: IInteractorStyleManipulatorInitialValues
|
|
335
|
+
): vtkInteractorStyleManipulator;
|
|
336
|
+
|
|
337
|
+
export function extend(
|
|
338
|
+
publicAPI: object,
|
|
339
|
+
model: object,
|
|
340
|
+
initialValues?: IInteractorStyleManipulatorInitialValues
|
|
341
|
+
): void;
|
|
342
|
+
|
|
343
|
+
export const vtkInteractorStyleManipulator: {
|
|
344
|
+
newInstance: typeof newInstance;
|
|
345
|
+
extend: typeof extend;
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
export default vtkInteractorStyleManipulator;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import vtkInteractorStyle from './../../Rendering/Core/InteractorStyle';
|
|
2
|
+
import vtkRenderer from './../../Rendering/Core/Renderer';
|
|
3
|
+
|
|
4
|
+
export interface vtkInteractorStyleTrackballCamera extends vtkInteractorStyle {
|
|
5
|
+
/**
|
|
6
|
+
* Handles a mouse move.
|
|
7
|
+
* @param callData event data
|
|
8
|
+
*/
|
|
9
|
+
handleMouseMove(callData: unknown): void;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Handles a 3D button event.
|
|
13
|
+
* @param callData event data
|
|
14
|
+
*/
|
|
15
|
+
handleButton3D(ed: unknown): void;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Handles a 3D move event.
|
|
19
|
+
* @param ed event data
|
|
20
|
+
*/
|
|
21
|
+
handleMove3D(ed: unknown): void;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Update camera pose
|
|
25
|
+
* @param ed event data
|
|
26
|
+
*/
|
|
27
|
+
updateCameraPose(ed: unknown): void;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Handles a left button press event.
|
|
31
|
+
* @param callData event data
|
|
32
|
+
*/
|
|
33
|
+
handleLeftButtonPress(callData: unknown): void;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Handles a left button release event.
|
|
37
|
+
* @param callData event data
|
|
38
|
+
*/
|
|
39
|
+
handleLeftButtonRelease(callData: unknown): void;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Handles the start of a wheel event.
|
|
43
|
+
* @param callData event data
|
|
44
|
+
*/
|
|
45
|
+
handleStartMouseWheel(callData: unknown): void;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Handles the end of a wheel event.
|
|
49
|
+
* @param callData event data
|
|
50
|
+
*/
|
|
51
|
+
handleEndMouseWheel(callData: unknown): void;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Handles the start of a pinch gesture.
|
|
55
|
+
* @param callData event data
|
|
56
|
+
*/
|
|
57
|
+
handleStartPinch(callData: unknown): void;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Handles the end of a pinch gesture.
|
|
61
|
+
* @param callData event data
|
|
62
|
+
*/
|
|
63
|
+
handleEndPinch(callData: unknown): void;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Handles the start of a rotate gesture.
|
|
67
|
+
* @param callData event data
|
|
68
|
+
*/
|
|
69
|
+
handleStartRotate(callData: unknown): void;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Handles the end of a rotate gesture.
|
|
73
|
+
* @param callData event data
|
|
74
|
+
*/
|
|
75
|
+
handleEndRotate(callData: unknown): void;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Handles the start of a pan gesture.
|
|
79
|
+
* @param callData event data
|
|
80
|
+
*/
|
|
81
|
+
handleStartPan(callData: unknown): void;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Handles the end of a pan gesture.
|
|
85
|
+
* @param callData event data
|
|
86
|
+
*/
|
|
87
|
+
handleEndPan(callData: unknown): void;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Handles a pinch gesture.
|
|
91
|
+
* @param callData event data
|
|
92
|
+
*/
|
|
93
|
+
handlePinch(callData: unknown): void;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Handles a pan gesture.
|
|
97
|
+
* @param callData event data
|
|
98
|
+
*/
|
|
99
|
+
handlePan(callData: unknown): void;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Handles a rotate gesture.
|
|
103
|
+
* @param callData event data
|
|
104
|
+
*/
|
|
105
|
+
handleRotate(callData: unknown): void;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Handles rotate with a mouse.
|
|
109
|
+
* @param renderer the renderer
|
|
110
|
+
* @param position the display position
|
|
111
|
+
*/
|
|
112
|
+
handleMouseRotate(renderer: vtkRenderer, position: { x: number, y: number }): void;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Handles spin with a mouse.
|
|
116
|
+
* @param renderer the renderer
|
|
117
|
+
* @param position the display position
|
|
118
|
+
*/
|
|
119
|
+
handleMouseSpin(renderer: vtkRenderer, position: { x: number, y: number }): void;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Handles pan with a mouse.
|
|
123
|
+
* @param renderer the renderer
|
|
124
|
+
* @param position the display position
|
|
125
|
+
*/
|
|
126
|
+
handleMousePan(renderer: vtkRenderer, position: { x: number, y: number }): void;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Handles dolly with a mouse.
|
|
130
|
+
* @param renderer the renderer
|
|
131
|
+
* @param position the display position
|
|
132
|
+
*/
|
|
133
|
+
handleMouseDolly(renderer: vtkRenderer, position: { x: number, y: number }): void;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Handles a wheel event.
|
|
137
|
+
* @param callData event data
|
|
138
|
+
*/
|
|
139
|
+
handleMouseWheel(callData: unknown): void;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Dolly by factor.
|
|
143
|
+
* @param renderer the renderer
|
|
144
|
+
* @param factor factor
|
|
145
|
+
*/
|
|
146
|
+
dollyByFactor(renderer: vtkRenderer, factor: number): void;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface IInteractorStyleTrackballCameraInitialValues {
|
|
150
|
+
motionFactor: number;
|
|
151
|
+
zoomFactor: number;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function newInstance(
|
|
155
|
+
initialValues?: IInteractorStyleTrackballCameraInitialValues
|
|
156
|
+
): vtkInteractorStyleTrackballCamera;
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
export function extend(
|
|
160
|
+
publicAPI: object,
|
|
161
|
+
model: object,
|
|
162
|
+
initialValues?: IInteractorStyleTrackballCameraInitialValues
|
|
163
|
+
): void;
|
|
164
|
+
|
|
165
|
+
export const vtkInteractorStyleTrackballCamera: {
|
|
166
|
+
newInstance: typeof newInstance;
|
|
167
|
+
extend: typeof extend;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export default vtkInteractorStyleTrackballCamera;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import macro from '../../macros.js';
|
|
4
|
-
import {
|
|
4
|
+
import { g as normalize, d as dot, j as subtract, B as projectVector, l as add } from '../../Common/Core/Math/index.js';
|
|
5
5
|
import vtkPlane from '../../Common/DataModel/Plane.js';
|
|
6
6
|
import vtkAbstractWidget from './AbstractWidget.js';
|
|
7
7
|
import vtkImageCroppingRegionsRepresentation from './ImageCroppingRegionsRepresentation.js';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import macro from '../../macros.js';
|
|
3
3
|
import vtkActor from '../../Rendering/Core/Actor.js';
|
|
4
4
|
import vtkInteractorObserver from '../../Rendering/Core/InteractorObserver.js';
|
|
5
|
-
import {
|
|
5
|
+
import { j as subtract, l as add } from '../../Common/Core/Math/index.js';
|
|
6
6
|
import vtkPixelSpaceCallbackMapper from '../../Rendering/Core/PixelSpaceCallbackMapper.js';
|
|
7
7
|
import vtkPointSource from '../../Filters/Sources/PointSource.js';
|
|
8
8
|
import vtkHandleRepresentation from './HandleRepresentation.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
2
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
3
|
import macro from '../../../macros.js';
|
|
4
|
-
import {
|
|
4
|
+
import { k as cross, g as normalize, A as clampValue } from '../../../Common/Core/Math/index.js';
|
|
5
5
|
import vtkPolyData from '../../../Common/DataModel/PolyData.js';
|
|
6
6
|
import vtkPlane from '../../../Common/DataModel/Plane.js';
|
|
7
7
|
import vtkCellArray from '../../../Common/Core/CellArray.js';
|
|
@@ -2,7 +2,7 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
2
2
|
import macro from '../../../macros.js';
|
|
3
3
|
import vtkInteractorObserver from '../../../Rendering/Core/InteractorObserver.js';
|
|
4
4
|
import vtkLine from '../../../Common/DataModel/Line.js';
|
|
5
|
-
import { f as distance2BetweenPoints,
|
|
5
|
+
import { f as distance2BetweenPoints, g as normalize, d as dot, k as cross, u as uninitializeBounds } from '../../../Common/Core/Math/index.js';
|
|
6
6
|
import vtkMatrixBuilder from '../../../Common/Core/MatrixBuilder.js';
|
|
7
7
|
import vtkPlane from '../../../Common/DataModel/Plane.js';
|
|
8
8
|
import vtkResliceCursorActor from './ResliceCursorActor.js';
|
|
@@ -4,7 +4,7 @@ import { mat4, vec4 } from 'gl-matrix';
|
|
|
4
4
|
import vtkImageMapper from '../../../Rendering/Core/ImageMapper.js';
|
|
5
5
|
import vtkImageReslice from '../../../Imaging/Core/ImageReslice.js';
|
|
6
6
|
import vtkImageSlice from '../../../Rendering/Core/ImageSlice.js';
|
|
7
|
-
import {
|
|
7
|
+
import { l as add, j as subtract, g as normalize } from '../../../Common/Core/Math/index.js';
|
|
8
8
|
import vtkPlaneSource from '../../../Filters/Sources/PlaneSource.js';
|
|
9
9
|
import vtkWidgetRepresentation from '../WidgetRepresentation.js';
|
|
10
10
|
import { transformPlane, boundPlane } from '../../../Widgets/Widgets3D/ResliceCursorWidget/helpers.js';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { vtkObject } from './../../interfaces';
|
|
2
|
+
import { VtkProxy } from './../../macros';
|
|
3
|
+
import vtkSourceProxy from './SourceProxy';
|
|
4
|
+
import vtkAbstractMapper from './../../Rendering/Core/AbstractMapper';
|
|
5
|
+
import vtkActor from './../../Rendering/Core/Actor';
|
|
6
|
+
import vtkVolume from './../../Rendering/Core/Volume';
|
|
7
|
+
|
|
8
|
+
export interface vtkAbstractRepresentationProxy extends VtkProxy {
|
|
9
|
+
setInput<T>(source: vtkSourceProxy<T>): void;
|
|
10
|
+
getInputDataSet(): vtkObject | null;
|
|
11
|
+
setColorBy(
|
|
12
|
+
arrayName: string | null,
|
|
13
|
+
arrayLocation: string,
|
|
14
|
+
componentIndex?: number
|
|
15
|
+
);
|
|
16
|
+
setRescaleOnColorBy(rescale: boolean): boolean;
|
|
17
|
+
getRescaleOnColorBy(): boolean;
|
|
18
|
+
getInput(): VtkProxy;
|
|
19
|
+
getMapper(): vtkAbstractMapper;
|
|
20
|
+
getActors(): vtkActor[];
|
|
21
|
+
getVolumes(): vtkVolume[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default vtkAbstractRepresentationProxy;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { VtkProxy } from './../../macros';
|
|
2
|
+
import vtkColorTransferFunction from './../../Rendering/Core/ColorTransferFunction';
|
|
3
|
+
|
|
4
|
+
// [x, r/h, g/s, b/v, m=0.5, s=0.0]
|
|
5
|
+
export type RGBHSVPoint = [number, number, number, number, number?, number?];
|
|
6
|
+
|
|
7
|
+
export enum Mode {
|
|
8
|
+
Preset = 0,
|
|
9
|
+
RGBPoints = 1,
|
|
10
|
+
HSVPoints = 2,
|
|
11
|
+
Nodes = 3,
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface vtkLookupTableProxy extends VtkProxy {
|
|
15
|
+
setPresetName(name: string): void;
|
|
16
|
+
getPresetName(): string;
|
|
17
|
+
setRGBPoints(points: RGBHSVPoint[]): void;
|
|
18
|
+
getRGBPoints(): RGBHSVPoint[];
|
|
19
|
+
setHSVPoints(points: RGBHSVPoint[]): void;
|
|
20
|
+
getHSVPoints(): RGBHSVPoint[];
|
|
21
|
+
// Node: { x, y, midpoint, sharpness }
|
|
22
|
+
setNodes(nodes: number[][]): void;
|
|
23
|
+
getNodes(nodes): number[][];
|
|
24
|
+
setMode(mode: number): void;
|
|
25
|
+
getMode(): number;
|
|
26
|
+
applyMode(): void;
|
|
27
|
+
setDataRange(min: number, max: number): void;
|
|
28
|
+
getDataRange(): [number, number];
|
|
29
|
+
getLookupTable(): vtkColorTransferFunction;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface ILookupTableProxyInitialValues {
|
|
33
|
+
lookupTable?: vtkColorTransferFunction;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function newInstance(
|
|
37
|
+
initialValues?: ILookupTableProxyInitialValues
|
|
38
|
+
): vtkLookupTableProxy;
|
|
39
|
+
|
|
40
|
+
export declare const vtkLookupTableProxy: {
|
|
41
|
+
newInstance: typeof newInstance;
|
|
42
|
+
Mode: Mode;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export default vtkLookupTableProxy;
|