forked from Kitware/vtk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
56 lines (45 loc) · 1.45 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
import macro from 'vtk.js/Sources/macros';
import {
Device,
Input,
} from 'vtk.js/Sources/Rendering/Core/RenderWindowInteractor/Constants';
// ----------------------------------------------------------------------------
// vtkCompositeVRManipulator methods
// ----------------------------------------------------------------------------
function vtkCompositeVRManipulator(publicAPI, model) {
// Set our className
model.classHierarchy.push('vtkCompositeVRManipulator');
publicAPI.onButton3D = (
interactor,
renderer,
state,
device,
input,
pressed
) => {};
publicAPI.onMove3D = (
interactor,
renderer,
state,
device,
input,
pressed
) => {};
}
// ----------------------------------------------------------------------------
// Object factory
// ----------------------------------------------------------------------------
const DEFAULT_VALUES = {
// device: null, // Device.RightController
// input: null, // Input.TrackPad
};
// ----------------------------------------------------------------------------
export function extend(publicAPI, model, initialValues = {}) {
Object.assign(model, DEFAULT_VALUES, initialValues);
// Create get-set macros
macro.setGet(publicAPI, model, ['device', 'input']);
// Object specific methods
vtkCompositeVRManipulator(publicAPI, model);
}
// ----------------------------------------------------------------------------
export default { extend, Device, Input };