@kitware/vtk.js 26.3.2 → 26.4.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/CellArray.d.ts +4 -0
- package/Common/Core/CellArray.js +4 -0
- package/Common/Core/LookupTable.js +4 -2
- package/Common/DataModel/Collection.d.ts +118 -0
- package/Common/DataModel/Collection.js +113 -0
- 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/MouseBoxSelectorManipulator.d.ts +88 -0
- package/Interaction/Manipulators/MouseCameraTrackballMultiRotateManipulator.d.ts +32 -0
- package/Interaction/Manipulators/MouseCameraTrackballPanManipulator.d.ts +33 -0
- package/Interaction/Manipulators/MouseCameraTrackballRollManipulator.d.ts +33 -0
- package/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.d.ts +67 -0
- package/Interaction/Manipulators/MouseCameraTrackballZoomManipulator.d.ts +45 -0
- package/Interaction/Manipulators/MouseCameraTrackballZoomToMouseManipulator.d.ts +26 -0
- package/Interaction/Manipulators/MouseRangeManipulator.d.ts +53 -0
- package/Interaction/Style/InteractorStyleManipulator.d.ts +333 -0
- 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 +81 -0
- package/Proxy/Core/SourceProxy.d.ts +22 -0
- package/Proxy/Core/View2DProxy.d.ts +7 -0
- 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/Rendering/Core/AbstractImageMapper/helper.js +127 -0
- package/Rendering/Core/AbstractImageMapper.d.ts +82 -0
- package/Rendering/Core/AbstractImageMapper.js +42 -0
- package/Rendering/Core/CellPicker.js +1 -1
- package/Rendering/Core/ImageArrayMapper.d.ts +252 -0
- package/Rendering/Core/ImageArrayMapper.js +242 -0
- package/Rendering/Core/ImageMapper.d.ts +5 -35
- package/Rendering/Core/ImageMapper.js +16 -108
- package/Rendering/Core/InteractorStyle/Constants.d.ts +16 -0
- package/Rendering/Core/InteractorStyle.d.ts +229 -0
- package/Rendering/Core/PointPicker.js +1 -1
- package/Rendering/Core/ScalarBarActor.js +4 -2
- package/Rendering/Core/Texture.d.ts +5 -0
- package/Rendering/Core/Texture.js +3 -1
- package/Rendering/OpenGL/ImageMapper.js +13 -7
- package/Rendering/OpenGL/PolyDataMapper.js +3 -1
- package/Rendering/OpenGL/RenderWindow.d.ts +8 -1
- package/Rendering/OpenGL/RenderWindow.js +3 -2
- package/Rendering/OpenGL/Texture.js +19 -18
- package/Rendering/OpenGL/glsl/vtkVolumeFS.glsl.js +1 -1
- package/Widgets/Core/StateBuilder.d.ts +29 -0
- package/Widgets/Representations/PolyLineRepresentation.js +16 -8
- package/Widgets/Widgets3D/ResliceCursorWidget/behavior.js +0 -11
- package/Widgets/Widgets3D/ResliceCursorWidget.js +7 -14
- package/index.d.ts +30 -0
- package/package.json +1 -1
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import vtkRenderer from './../../Rendering/Core/Renderer';
|
|
2
|
+
import vtkRenderWindowInteractor from './../../Rendering/Core/RenderWindowInteractor';
|
|
3
|
+
|
|
4
|
+
export interface vtkCompositeMouseManipulator {
|
|
5
|
+
/**
|
|
6
|
+
* Starts an interaction event.
|
|
7
|
+
*/
|
|
8
|
+
startInteraction(): void;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Ends an interaction event.
|
|
12
|
+
*/
|
|
13
|
+
endInteraction(): void;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Handles a button down event.
|
|
17
|
+
* @param interactor the interactor
|
|
18
|
+
* @param renderer the renderer
|
|
19
|
+
* @param position the display position
|
|
20
|
+
*/
|
|
21
|
+
onButtonDown(
|
|
22
|
+
interactor: vtkRenderWindowInteractor,
|
|
23
|
+
renderer: vtkRenderer,
|
|
24
|
+
position: { x: number; y: number }
|
|
25
|
+
): void;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Handles a button up event.
|
|
29
|
+
* @param interactor the interactor
|
|
30
|
+
*/
|
|
31
|
+
onButtonUp(interactor: vtkRenderWindowInteractor): void;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Handles a mouse move event.
|
|
35
|
+
* @param interactor the interactor
|
|
36
|
+
* @param renderer the renderer
|
|
37
|
+
* @param position the display position
|
|
38
|
+
*/
|
|
39
|
+
onMouseMove(
|
|
40
|
+
interactor: vtkRenderWindowInteractor,
|
|
41
|
+
renderer: vtkRenderer,
|
|
42
|
+
position: { x: number; y: number }
|
|
43
|
+
): void;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Handles a start scroll event.
|
|
47
|
+
* @param interactor the interactor
|
|
48
|
+
* @param renderer the renderer
|
|
49
|
+
* @param delta the scroll delta
|
|
50
|
+
*/
|
|
51
|
+
onStartScroll(
|
|
52
|
+
interactor: vtkRenderWindowInteractor,
|
|
53
|
+
renderer: vtkRenderer,
|
|
54
|
+
delta: number
|
|
55
|
+
): void;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Handles a scroll event.
|
|
59
|
+
* @param interactor the interactor
|
|
60
|
+
*/
|
|
61
|
+
onEndScroll(interactor: vtkRenderWindowInteractor): void;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Is drag enabled.
|
|
65
|
+
*/
|
|
66
|
+
isDragEnabled(): boolean;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Sets if drag is enabled.
|
|
70
|
+
* @param enabled
|
|
71
|
+
*/
|
|
72
|
+
setDragEnabled(enabled: boolean): boolean;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Is scroll enabled.
|
|
76
|
+
*/
|
|
77
|
+
isScrollEnabled(): boolean;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Sets if scroll is enabled.
|
|
81
|
+
* @param enabled
|
|
82
|
+
*/
|
|
83
|
+
setScrollEnabled(enabled: boolean): boolean;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Sets the associated button.
|
|
87
|
+
* @param btn
|
|
88
|
+
*/
|
|
89
|
+
setButton(btn: number): boolean;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Gets the associated button.
|
|
93
|
+
*/
|
|
94
|
+
getButton(): number;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Sets if the shift key is required.
|
|
98
|
+
* @param shift
|
|
99
|
+
*/
|
|
100
|
+
setShift(shift: boolean): boolean;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Gets flag if shift key is required.
|
|
104
|
+
*/
|
|
105
|
+
getShift(): boolean;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Sets if the control key is required.
|
|
109
|
+
* @param ctrl
|
|
110
|
+
*/
|
|
111
|
+
setControl(ctrl: boolean): boolean;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Gets flag if control key is required.
|
|
115
|
+
*/
|
|
116
|
+
getControl(): boolean;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Sets if the alt key is required.
|
|
120
|
+
* @param alt
|
|
121
|
+
*/
|
|
122
|
+
setAlt(alt: boolean): boolean;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Gets flag if alt key is required.
|
|
126
|
+
*/
|
|
127
|
+
getAlt(): boolean;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface ICompositeMouseManipulatorInitialValues {
|
|
131
|
+
button?: number;
|
|
132
|
+
shift?: boolean;
|
|
133
|
+
control?: boolean;
|
|
134
|
+
alt?: boolean;
|
|
135
|
+
dragEnabled?: boolean;
|
|
136
|
+
scrollEnabled?: boolean;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function extend(
|
|
140
|
+
publicAPI: object,
|
|
141
|
+
model: object,
|
|
142
|
+
initialValues?: ICompositeMouseManipulatorInitialValues
|
|
143
|
+
): void;
|
|
144
|
+
|
|
145
|
+
export const vtkCompositeMouseManipulator: {
|
|
146
|
+
extend: typeof extend;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
export default vtkCompositeMouseManipulator;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { States } from './../../Rendering/Core/InteractorStyle/Constants';
|
|
2
|
+
import vtkRenderer from './../../Rendering/Core/Renderer';
|
|
3
|
+
import vtkRenderWindowInteractor from './../../Rendering/Core/RenderWindowInteractor';
|
|
4
|
+
import {
|
|
5
|
+
Device,
|
|
6
|
+
Input,
|
|
7
|
+
} from './../../Rendering/Core/RenderWindowInteractor/Constants';
|
|
8
|
+
|
|
9
|
+
export interface vtkCompositeVRManipulator {
|
|
10
|
+
onButton3D(
|
|
11
|
+
interactor: vtkRenderWindowInteractor,
|
|
12
|
+
renderer: vtkRenderer,
|
|
13
|
+
state: States,
|
|
14
|
+
device: Device,
|
|
15
|
+
input: Input,
|
|
16
|
+
pressed: boolean
|
|
17
|
+
): void;
|
|
18
|
+
|
|
19
|
+
onMove3D(
|
|
20
|
+
interactor: vtkRenderWindowInteractor,
|
|
21
|
+
renderer: vtkRenderer,
|
|
22
|
+
state: States,
|
|
23
|
+
device: Device,
|
|
24
|
+
input: Input,
|
|
25
|
+
pressed: boolean
|
|
26
|
+
): void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface ICompositeVRManipulatorInitialValues {
|
|
30
|
+
device?: Device;
|
|
31
|
+
input?: Input;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function extend(
|
|
35
|
+
publicAPI: object,
|
|
36
|
+
model: object,
|
|
37
|
+
initialValues?: ICompositeVRManipulatorInitialValues
|
|
38
|
+
): void;
|
|
39
|
+
|
|
40
|
+
export const vtkCompositeVRManipulator: {
|
|
41
|
+
extend: typeof extend;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export default vtkCompositeVRManipulator;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import vtkCompositeCameraManipulator, {
|
|
2
|
+
ICompositeCameraManipulatorInitialValues,
|
|
3
|
+
} from './CompositeCameraManipulator';
|
|
4
|
+
import vtkCompositeGestureManipulator, {
|
|
5
|
+
ICompositeGestureManipulatorInitialValues,
|
|
6
|
+
} from './CompositeGestureManipulator';
|
|
7
|
+
import { vtkObject } from './../../interfaces';
|
|
8
|
+
export interface vtkGestureCameraManipulator
|
|
9
|
+
extends vtkObject,
|
|
10
|
+
vtkCompositeCameraManipulator,
|
|
11
|
+
vtkCompositeGestureManipulator {}
|
|
12
|
+
|
|
13
|
+
export interface IGestureCameraManipulatorInitialValues
|
|
14
|
+
extends ICompositeCameraManipulatorInitialValues,
|
|
15
|
+
ICompositeGestureManipulatorInitialValues {
|
|
16
|
+
flipDirection?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function newInstance(
|
|
20
|
+
initialValues?: IGestureCameraManipulatorInitialValues
|
|
21
|
+
): vtkGestureCameraManipulator;
|
|
22
|
+
|
|
23
|
+
export function extend(
|
|
24
|
+
publicAPI: object,
|
|
25
|
+
model: object,
|
|
26
|
+
initialValues?: IGestureCameraManipulatorInitialValues
|
|
27
|
+
): void;
|
|
28
|
+
|
|
29
|
+
export const vtkGestureCameraManipulator: {
|
|
30
|
+
newInstance: typeof newInstance;
|
|
31
|
+
extend: typeof extend;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default vtkGestureCameraManipulator;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import vtkCompositeMouseManipulator, {
|
|
2
|
+
ICompositeMouseManipulatorInitialValues,
|
|
3
|
+
} from './CompositeMouseManipulator';
|
|
4
|
+
import { EventHandler, vtkObject, vtkSubscription } from './../../interfaces';
|
|
5
|
+
import { Nullable } from './../../types';
|
|
6
|
+
|
|
7
|
+
export interface vtkMouseBoxSelectorManipulator
|
|
8
|
+
extends vtkObject,
|
|
9
|
+
vtkCompositeMouseManipulator {
|
|
10
|
+
/**
|
|
11
|
+
* Invokes a box select change event.
|
|
12
|
+
*/
|
|
13
|
+
invokeBoxSelectChange(data: unknown): void;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Registers a callback when a box select change event occurs.
|
|
17
|
+
* @param cb EventHandler
|
|
18
|
+
*/
|
|
19
|
+
onBoxSelectChange(cb: EventHandler): vtkSubscription;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Invokes a box select input event.
|
|
23
|
+
*/
|
|
24
|
+
invokeBoxSelectInput(data: unknown): void;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Registers a callback when a box select input event occurs.
|
|
28
|
+
* @param cb EventHandler
|
|
29
|
+
*/
|
|
30
|
+
onBoxSelectInput(cb: EventHandler): vtkSubscription;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Sets whether to render the selection.
|
|
34
|
+
* @param render
|
|
35
|
+
*/
|
|
36
|
+
setRenderSelection(render: boolean): boolean;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Get whether to render the selection.
|
|
40
|
+
*/
|
|
41
|
+
getRenderSelection(): boolean;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Sets the selection box style.
|
|
45
|
+
* @param style
|
|
46
|
+
*/
|
|
47
|
+
setSelectionStyle(style: Record<string, string>): boolean;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Gets the selection box style.
|
|
51
|
+
*/
|
|
52
|
+
getSelectionStyle(): Record<string, string>;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Sets the box container.
|
|
56
|
+
* @param container
|
|
57
|
+
*/
|
|
58
|
+
setContainer(container: Element): boolean;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Gets the box container.
|
|
62
|
+
*/
|
|
63
|
+
getContainer(): Nullable<Element>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface IMouseBoxSelectorManipulatorInitialValues
|
|
67
|
+
extends ICompositeMouseManipulatorInitialValues {
|
|
68
|
+
renderSelection?: boolean;
|
|
69
|
+
selectionStyle?: Record<string, string>;
|
|
70
|
+
container?: Element;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function newInstance(
|
|
74
|
+
initialValues?: IMouseBoxSelectorManipulatorInitialValues
|
|
75
|
+
): vtkMouseBoxSelectorManipulator;
|
|
76
|
+
|
|
77
|
+
export function extend(
|
|
78
|
+
publicAPI: object,
|
|
79
|
+
model: object,
|
|
80
|
+
initialValues?: IMouseBoxSelectorManipulatorInitialValues
|
|
81
|
+
): void;
|
|
82
|
+
|
|
83
|
+
export const vtkMouseBoxSelectorManipulator: {
|
|
84
|
+
newInstance: typeof newInstance;
|
|
85
|
+
extend: typeof extend;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export default vtkMouseBoxSelectorManipulator;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import vtkCompositeCameraManipulator, {
|
|
2
|
+
ICompositeCameraManipulatorInitialValues,
|
|
3
|
+
} from './CompositeCameraManipulator';
|
|
4
|
+
import vtkCompositeMouseManipulator, {
|
|
5
|
+
ICompositeMouseManipulatorInitialValues,
|
|
6
|
+
} from './CompositeMouseManipulator';
|
|
7
|
+
import { vtkObject } from './../../interfaces';
|
|
8
|
+
export interface vtkMouseCameraTrackballMultiRotateManipulator
|
|
9
|
+
extends vtkObject,
|
|
10
|
+
vtkCompositeCameraManipulator,
|
|
11
|
+
vtkCompositeMouseManipulator {}
|
|
12
|
+
|
|
13
|
+
export interface IMouseCameraTrackballMultiRotateManipulatorInitialValues
|
|
14
|
+
extends ICompositeCameraManipulatorInitialValues,
|
|
15
|
+
ICompositeMouseManipulatorInitialValues {}
|
|
16
|
+
|
|
17
|
+
export function newInstance(
|
|
18
|
+
initialValues?: IMouseCameraTrackballMultiRotateManipulatorInitialValues
|
|
19
|
+
): vtkMouseCameraTrackballMultiRotateManipulator;
|
|
20
|
+
|
|
21
|
+
export function extend(
|
|
22
|
+
publicAPI: object,
|
|
23
|
+
model: object,
|
|
24
|
+
initialValues?: IMouseCameraTrackballMultiRotateManipulatorInitialValues
|
|
25
|
+
): void;
|
|
26
|
+
|
|
27
|
+
export const vtkMouseCameraTrackballMultiRotateManipulator: {
|
|
28
|
+
newInstance: typeof newInstance;
|
|
29
|
+
extend: typeof extend;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default vtkMouseCameraTrackballMultiRotateManipulator;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import vtkCompositeCameraManipulator, {
|
|
2
|
+
ICompositeCameraManipulatorInitialValues,
|
|
3
|
+
} from './CompositeCameraManipulator';
|
|
4
|
+
import vtkCompositeMouseManipulator, {
|
|
5
|
+
ICompositeMouseManipulatorInitialValues,
|
|
6
|
+
} from './CompositeMouseManipulator';
|
|
7
|
+
import { vtkObject } from './../../interfaces';
|
|
8
|
+
|
|
9
|
+
export interface vtkMouseCameraTrackballPanManipulator
|
|
10
|
+
extends vtkObject,
|
|
11
|
+
vtkCompositeCameraManipulator,
|
|
12
|
+
vtkCompositeMouseManipulator {}
|
|
13
|
+
|
|
14
|
+
export interface IMouseCameraTrackballPanManipulatorInitialValues
|
|
15
|
+
extends ICompositeCameraManipulatorInitialValues,
|
|
16
|
+
ICompositeMouseManipulatorInitialValues {}
|
|
17
|
+
|
|
18
|
+
export function newInstance(
|
|
19
|
+
initialValues?: IMouseCameraTrackballPanManipulatorInitialValues
|
|
20
|
+
): vtkMouseCameraTrackballPanManipulator;
|
|
21
|
+
|
|
22
|
+
export function extend(
|
|
23
|
+
publicAPI: object,
|
|
24
|
+
model: object,
|
|
25
|
+
initialValues?: IMouseCameraTrackballPanManipulatorInitialValues
|
|
26
|
+
): void;
|
|
27
|
+
|
|
28
|
+
export const vtkMouseCameraTrackballPanManipulator: {
|
|
29
|
+
newInstance: typeof newInstance;
|
|
30
|
+
extend: typeof extend;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default vtkMouseCameraTrackballPanManipulator;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import vtkCompositeCameraManipulator, {
|
|
2
|
+
ICompositeCameraManipulatorInitialValues,
|
|
3
|
+
} from './CompositeCameraManipulator';
|
|
4
|
+
import vtkCompositeMouseManipulator, {
|
|
5
|
+
ICompositeMouseManipulatorInitialValues,
|
|
6
|
+
} from './CompositeMouseManipulator';
|
|
7
|
+
import { vtkObject } from './../../interfaces';
|
|
8
|
+
|
|
9
|
+
export interface vtkMouseCameraTrackballRollManipulator
|
|
10
|
+
extends vtkObject,
|
|
11
|
+
vtkCompositeCameraManipulator,
|
|
12
|
+
vtkCompositeMouseManipulator {}
|
|
13
|
+
|
|
14
|
+
export interface IMouseCameraTrackballRollManipulatorInitialValues
|
|
15
|
+
extends ICompositeCameraManipulatorInitialValues,
|
|
16
|
+
ICompositeMouseManipulatorInitialValues {}
|
|
17
|
+
|
|
18
|
+
export function newInstance(
|
|
19
|
+
initialValues?: IMouseCameraTrackballRollManipulatorInitialValues
|
|
20
|
+
): vtkMouseCameraTrackballRollManipulator;
|
|
21
|
+
|
|
22
|
+
export function extend(
|
|
23
|
+
publicAPI: object,
|
|
24
|
+
model: object,
|
|
25
|
+
initialValues?: IMouseCameraTrackballRollManipulatorInitialValues
|
|
26
|
+
): void;
|
|
27
|
+
|
|
28
|
+
export const vtkMouseCameraTrackballRollManipulator: {
|
|
29
|
+
newInstance: typeof newInstance;
|
|
30
|
+
extend: typeof extend;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default vtkMouseCameraTrackballRollManipulator;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import vtkCompositeCameraManipulator, {
|
|
2
|
+
ICompositeCameraManipulatorInitialValues,
|
|
3
|
+
} from './CompositeCameraManipulator';
|
|
4
|
+
import vtkCompositeMouseManipulator, {
|
|
5
|
+
ICompositeMouseManipulatorInitialValues,
|
|
6
|
+
} from './CompositeMouseManipulator';
|
|
7
|
+
import { vtkObject } from './../../interfaces';
|
|
8
|
+
import { Vector3 } from './../../types';
|
|
9
|
+
|
|
10
|
+
export interface vtkMouseCameraTrackballRotateManipulator
|
|
11
|
+
extends vtkObject,
|
|
12
|
+
vtkCompositeCameraManipulator,
|
|
13
|
+
vtkCompositeMouseManipulator {
|
|
14
|
+
/**
|
|
15
|
+
* Sets whether to use a given world-up vector.
|
|
16
|
+
* @param use boolean
|
|
17
|
+
*/
|
|
18
|
+
setUseWorldUpVec(use: boolean): boolean;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Sets the world-up vector.
|
|
22
|
+
* @param vec the world-up vector
|
|
23
|
+
*/
|
|
24
|
+
setWorldUpVec(vec: Vector3): boolean;
|
|
25
|
+
setWorldUpVec(x: number, y: number, z: number): boolean;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Gets the world-up vector.
|
|
29
|
+
*/
|
|
30
|
+
getWorldUpVec(): Vector3;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Gets whether to use the focal point as the center of rotation.
|
|
34
|
+
*/
|
|
35
|
+
getUseFocalPointAsCenterOfRotation(): boolean;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Sets using the focal point as the center of rotation.
|
|
39
|
+
* @param useFocalPoint
|
|
40
|
+
*/
|
|
41
|
+
setUseFocalPointAsCenterOfRotation(useFocalPoint: boolean): boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface IMouseCameraTrackballRotateManipulatorInitialValues
|
|
45
|
+
extends ICompositeCameraManipulatorInitialValues,
|
|
46
|
+
ICompositeMouseManipulatorInitialValues {
|
|
47
|
+
useWorldUpVec?: boolean;
|
|
48
|
+
worldUpVec?: Vector3;
|
|
49
|
+
useFocalPointAsCenterOfRotation?: boolean;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function newInstance(
|
|
53
|
+
initialValues?: IMouseCameraTrackballRotateManipulatorInitialValues
|
|
54
|
+
): vtkMouseCameraTrackballRotateManipulator;
|
|
55
|
+
|
|
56
|
+
export function extend(
|
|
57
|
+
publicAPI: object,
|
|
58
|
+
model: object,
|
|
59
|
+
initialValues?: IMouseCameraTrackballRotateManipulatorInitialValues
|
|
60
|
+
): void;
|
|
61
|
+
|
|
62
|
+
export const vtkMouseCameraTrackballRotateManipulator: {
|
|
63
|
+
newInstance: typeof newInstance;
|
|
64
|
+
extend: typeof extend;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export default vtkMouseCameraTrackballRotateManipulator;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import vtkCompositeCameraManipulator, {
|
|
2
|
+
ICompositeCameraManipulatorInitialValues,
|
|
3
|
+
} from './CompositeCameraManipulator';
|
|
4
|
+
import vtkCompositeMouseManipulator, {
|
|
5
|
+
ICompositeMouseManipulatorInitialValues,
|
|
6
|
+
} from './CompositeMouseManipulator';
|
|
7
|
+
import { vtkObject } from './../../interfaces';
|
|
8
|
+
export interface vtkMouseCameraTrackballZoomManipulator
|
|
9
|
+
extends vtkObject,
|
|
10
|
+
vtkCompositeCameraManipulator,
|
|
11
|
+
vtkCompositeMouseManipulator {
|
|
12
|
+
/**
|
|
13
|
+
* Sets whether to flip the zoom direction.
|
|
14
|
+
* @param flip
|
|
15
|
+
*/
|
|
16
|
+
setFlipDirection(flip: boolean): boolean;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Gets the flip direction.
|
|
20
|
+
*/
|
|
21
|
+
getFlipDirection(): boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IMouseCameraTrackballZoomManipulatorInitialValues
|
|
25
|
+
extends ICompositeCameraManipulatorInitialValues,
|
|
26
|
+
ICompositeMouseManipulatorInitialValues {
|
|
27
|
+
flipDirection?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function newInstance(
|
|
31
|
+
initialValues?: IMouseCameraTrackballZoomManipulatorInitialValues
|
|
32
|
+
): vtkMouseCameraTrackballZoomManipulator;
|
|
33
|
+
|
|
34
|
+
export function extend(
|
|
35
|
+
publicAPI: object,
|
|
36
|
+
model: object,
|
|
37
|
+
initialValues?: IMouseCameraTrackballZoomManipulatorInitialValues
|
|
38
|
+
): void;
|
|
39
|
+
|
|
40
|
+
export const vtkMouseCameraTrackballZoomManipulator: {
|
|
41
|
+
newInstance: typeof newInstance;
|
|
42
|
+
extend: typeof extend;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export default vtkMouseCameraTrackballZoomManipulator;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import vtkMouseCameraTrackballZoomManipulator, {
|
|
2
|
+
IMouseCameraTrackballZoomManipulatorInitialValues,
|
|
3
|
+
} from './MouseCameraTrackballZoomManipulator';
|
|
4
|
+
|
|
5
|
+
export type vtkMouseCameraTrackballZoomToMouseManipulator =
|
|
6
|
+
vtkMouseCameraTrackballZoomManipulator;
|
|
7
|
+
|
|
8
|
+
export type IMouseCameraTrackballZoomToMouseManipulatorInitialValues =
|
|
9
|
+
IMouseCameraTrackballZoomManipulatorInitialValues;
|
|
10
|
+
|
|
11
|
+
export function newInstance(
|
|
12
|
+
initialValues?: IMouseCameraTrackballZoomToMouseManipulatorInitialValues
|
|
13
|
+
): vtkMouseCameraTrackballZoomToMouseManipulator;
|
|
14
|
+
|
|
15
|
+
export function extend(
|
|
16
|
+
publicAPI: object,
|
|
17
|
+
model: object,
|
|
18
|
+
initialValues?: IMouseCameraTrackballZoomToMouseManipulatorInitialValues
|
|
19
|
+
): void;
|
|
20
|
+
|
|
21
|
+
export const vtkMouseCameraTrackballZoomToMouseManipulator: {
|
|
22
|
+
newInstance: typeof newInstance;
|
|
23
|
+
extend: typeof extend;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export default vtkMouseCameraTrackballZoomToMouseManipulator;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import vtkCompositeMouseManipulator, {
|
|
2
|
+
ICompositeMouseManipulatorInitialValues,
|
|
3
|
+
} from './CompositeMouseManipulator';
|
|
4
|
+
|
|
5
|
+
export interface IMouseRangeManipulatorInitialValues
|
|
6
|
+
extends ICompositeMouseManipulatorInitialValues {}
|
|
7
|
+
|
|
8
|
+
export interface vtkMouseRangeManipulator extends vtkCompositeMouseManipulator {
|
|
9
|
+
setHorizontalListener(
|
|
10
|
+
min: number,
|
|
11
|
+
max: number,
|
|
12
|
+
step: number,
|
|
13
|
+
getValue: () => number,
|
|
14
|
+
setValue: (v: number) => void,
|
|
15
|
+
scale?: number
|
|
16
|
+
);
|
|
17
|
+
setVerticalListener(
|
|
18
|
+
min: number,
|
|
19
|
+
max: number,
|
|
20
|
+
step: number,
|
|
21
|
+
getValue: () => number,
|
|
22
|
+
setValue: (v: number) => void,
|
|
23
|
+
scale?: number
|
|
24
|
+
);
|
|
25
|
+
setScrollListener(
|
|
26
|
+
min: number,
|
|
27
|
+
max: number,
|
|
28
|
+
step: number,
|
|
29
|
+
getValue: () => number,
|
|
30
|
+
setValue: (v: number) => void,
|
|
31
|
+
scale?: number
|
|
32
|
+
);
|
|
33
|
+
removeHorizontalListener();
|
|
34
|
+
removeVerticalListener();
|
|
35
|
+
removeScrollListener();
|
|
36
|
+
removeAllListeners();
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function extend(
|
|
40
|
+
publicAPI: object,
|
|
41
|
+
model: object,
|
|
42
|
+
initialValues?: IMouseRangeManipulatorInitialValues
|
|
43
|
+
): void;
|
|
44
|
+
export function newInstance(
|
|
45
|
+
initialValues?: IMouseRangeManipulatorInitialValues
|
|
46
|
+
): vtkMouseRangeManipulator;
|
|
47
|
+
|
|
48
|
+
export declare const vtkMouseRangeManipulator: {
|
|
49
|
+
newInstance: typeof newInstance;
|
|
50
|
+
extend: typeof extend;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export default vtkMouseRangeManipulator;
|