@kitware/vtk.js 22.5.10 → 23.0.0
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/MatrixBuilder.d.ts +3 -3
- package/Common/DataModel/ITKHelper.js +16 -20
- package/Common/DataModel/ImageData.d.ts +48 -46
- package/Filters/General/ImageSliceFilter.d.ts +1 -1
- package/Filters/General/ImageStreamline.d.ts +135 -0
- package/IO/Core/DataAccessHelper/HtmlDataAccessHelper.d.ts +9 -0
- package/IO/Core/DataAccessHelper/HttpDataAccessHelper.d.ts +9 -0
- package/IO/Core/DataAccessHelper/JSZipDataAccessHelper.d.ts +13 -0
- package/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.d.ts +9 -0
- package/IO/Core/DataAccessHelper.d.ts +32 -0
- package/IO/Core/HttpDataSetReader.d.ts +226 -0
- package/IO/Geometry/DracoReader.d.ts +12 -8
- package/IO/Geometry/PLYReader.d.ts +12 -8
- package/IO/Geometry/STLReader.d.ts +13 -8
- package/IO/Misc/ElevationReader.d.ts +10 -5
- package/IO/Misc/JSONNucleoReader.d.ts +12 -8
- package/IO/Misc/JSONReader.d.ts +3 -3
- package/IO/Misc/MTLReader.d.ts +9 -5
- package/IO/Misc/OBJReader.d.ts +9 -5
- package/IO/Misc/PDBReader.d.ts +9 -5
- package/IO/XML/XMLReader.d.ts +19 -15
- package/Interaction/Widgets/OrientationMarkerWidget.d.ts +12 -0
- package/Interaction/Widgets/OrientationMarkerWidget.js +62 -37
- package/LICENSE +21 -18
- package/Rendering/Core/Actor.d.ts +17 -14
- package/Rendering/Core/ImageProperty.d.ts +9 -0
- package/Rendering/Core/ImageProperty.js +3 -2
- package/Rendering/Core/RenderWindowInteractor.js +30 -5
- package/Rendering/Core/Renderer.d.ts +5 -5
- package/Rendering/OpenGL/ImageMapper.js +1 -1
- package/Rendering/OpenGL/VolumeMapper.js +16 -1
- package/Rendering/OpenGL/glsl/vtkVolumeFS.glsl.js +1 -1
- package/Rendering/WebGPU/ImageMapper.js +1 -1
- package/Widgets/Core/AbstractWidgetFactory.js +5 -3
- package/Widgets/Representations/ImplicitPlaneRepresentation.js +8 -2
- package/index.d.ts +146 -0
- package/package.json +3 -2
- package/tsconfig.json +8 -0
- package/vtk.d.ts +15 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { vtkAlgorithm, vtkObject, vtkSubscription } from '@kitware/vtk.js/interfaces';
|
|
2
|
+
import HtmlDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HtmlDataAccessHelper';
|
|
3
|
+
import HttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper';
|
|
4
|
+
import JSZipDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/JSZipDataAccessHelper';
|
|
5
|
+
import LiteHttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export interface IHttpDataSetReaderInitialValues {
|
|
11
|
+
enableArray?: boolean;
|
|
12
|
+
fetchGzip?: boolean;
|
|
13
|
+
arrays?: any[];
|
|
14
|
+
url?: string;
|
|
15
|
+
baseURL?: string;
|
|
16
|
+
requestCount?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IHttpDataSetReaderOptions {
|
|
20
|
+
fullpath?: string,
|
|
21
|
+
compression?: string,
|
|
22
|
+
loadData?: boolean;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface IHttpDataSetReaderArray {
|
|
26
|
+
location: string;
|
|
27
|
+
name: string;
|
|
28
|
+
enable: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
type vtkHttpDataSetReaderBase = vtkObject & Omit<vtkAlgorithm,
|
|
32
|
+
| 'getInputData'
|
|
33
|
+
| 'setInputData'
|
|
34
|
+
| 'setInputConnection'
|
|
35
|
+
| 'getInputConnection'
|
|
36
|
+
| 'addInputConnection'
|
|
37
|
+
| 'addInputData'>;
|
|
38
|
+
|
|
39
|
+
export interface vtkHttpDataSetReader extends vtkHttpDataSetReaderBase {
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Enable or disable a given array.
|
|
43
|
+
*
|
|
44
|
+
* ```js
|
|
45
|
+
* reader.enableArray('pointData', 'Temperature');
|
|
46
|
+
* reader.enableArray('pointData', 'Pressure', false);
|
|
47
|
+
* reader.enableArray('cellData', 'CellId', true);
|
|
48
|
+
* reader.enableArray('fieldData', 'labels', true);
|
|
49
|
+
* ```
|
|
50
|
+
* @param {String} location
|
|
51
|
+
* @param {String} name
|
|
52
|
+
* @param {Boolean} [enable]
|
|
53
|
+
*/
|
|
54
|
+
enableArray(location: string, name: string, enable?: boolean): void;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Get the list of available array with their location and if they are
|
|
58
|
+
* enable or not for download using the __update()__ method.
|
|
59
|
+
*/
|
|
60
|
+
getArrays(): IHttpDataSetReaderArray[];
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
getArraysByReference(): IHttpDataSetReaderArray[];
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Get the base url to use to download arrays or other data from the given
|
|
69
|
+
* dataset.
|
|
70
|
+
*
|
|
71
|
+
* ```js
|
|
72
|
+
* reader.setURL('/Data/can.ex2/index.json');
|
|
73
|
+
*
|
|
74
|
+
* if (reader.getBaseURL() === '/Data/can.ex2') {
|
|
75
|
+
* console.log('Good guess...');
|
|
76
|
+
* }
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
getBaseURL(): string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
getDataAccessHelper(): HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
89
|
+
getEnableArray(): boolean;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
getFetchGzip(): boolean;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Get the url of the object to load.
|
|
98
|
+
*/
|
|
99
|
+
getUrl(): string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @param {Boolean} busy
|
|
104
|
+
*/
|
|
105
|
+
invokeBusy(busy: boolean): void;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Get the current status of the reader. True means busy and False means
|
|
109
|
+
* idle.
|
|
110
|
+
*/
|
|
111
|
+
isBusy(): boolean;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
loadData(): string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Attach listener to monitor when the reader is downloading data or not.
|
|
120
|
+
*
|
|
121
|
+
* ```js
|
|
122
|
+
* const subscription = reader.onBusy(busy => {
|
|
123
|
+
* console.log('Reader is', busy ? 'downloading' : 'idle');
|
|
124
|
+
* })
|
|
125
|
+
*
|
|
126
|
+
* reader.update();
|
|
127
|
+
* // much later
|
|
128
|
+
* subscription.unsubscribe();
|
|
129
|
+
* ```
|
|
130
|
+
* @param callback
|
|
131
|
+
*/
|
|
132
|
+
onBusy(callback: (busy: boolean) => any): vtkSubscription;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @param inData
|
|
137
|
+
* @param outData
|
|
138
|
+
*/
|
|
139
|
+
requestData(inData: any, outData: any): void;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @param dataAccessHelper
|
|
144
|
+
*/
|
|
145
|
+
setDataAccessHelper(dataAccessHelper: HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper): boolean;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @param progressCallback
|
|
150
|
+
*/
|
|
151
|
+
setProgressCallback(progressCallback: any): boolean;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Set the url for the dataset to load.
|
|
155
|
+
*
|
|
156
|
+
* ```js
|
|
157
|
+
* const reader = HttpDataSetReader.newInstance();
|
|
158
|
+
* isReady = reader.setURL('/Data/can.ex2/index.json');
|
|
159
|
+
*
|
|
160
|
+
* // Same as
|
|
161
|
+
* const reader = HttpDataSetReader.newInstance({ url: '/Data/can.ex2/index.json' });
|
|
162
|
+
* isReady = reader.updateMetadata();
|
|
163
|
+
* ```
|
|
164
|
+
* @param {String} url the url of the object to load.
|
|
165
|
+
* @param {IHttpDataSetReaderOptions} [option] The Draco reader options.
|
|
166
|
+
*/
|
|
167
|
+
setUrl(url: string, option?: IHttpDataSetReaderOptions): Promise<any>;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
*/
|
|
172
|
+
updateMetadata(): Promise<any>;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Method used to decorate a given object (publicAPI+model) with vtkHttpDataSetReader characteristics.
|
|
177
|
+
*
|
|
178
|
+
* @param publicAPI object on which methods will be bounds (public)
|
|
179
|
+
* @param model object on which data structure will be bounds (protected)
|
|
180
|
+
* @param {IHttpDataSetReaderInitialValues} [initialValues] (default: {})
|
|
181
|
+
*/
|
|
182
|
+
export function extend(publicAPI: object, model: object, initialValues?: IHttpDataSetReaderInitialValues): void;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Method used to create a new instance of vtkHttpDataSetReader while enabling a
|
|
186
|
+
* default behavior regarding the data array and the way they should be fetched
|
|
187
|
+
* from the server.
|
|
188
|
+
*
|
|
189
|
+
* The __enableArray__ argument allow you to choose if you want to activate all
|
|
190
|
+
* data array by default or if you will have to manually enable them before
|
|
191
|
+
* downloading them.
|
|
192
|
+
* @param {IHttpDataSetReaderInitialValues} [initialValues] for pre-setting some of its content
|
|
193
|
+
*/
|
|
194
|
+
export function newInstance(initialValues?: IHttpDataSetReaderInitialValues): vtkHttpDataSetReader;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* The vtkHttpDataSetReader is using a custom format that only exist in vtk.js
|
|
198
|
+
* which aims to simplify data fetching in an HTTP context. Basically the format
|
|
199
|
+
* is composed of a JSON metadata file referencing all the required data array
|
|
200
|
+
* as side binary files along with all the dataset configuration (i.e.: type,
|
|
201
|
+
* extent...).
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* ```js
|
|
205
|
+
* import vtkHttpDataSetReader from '@kitware/vtk.js/IO/Core/HttpDataSetReader';
|
|
206
|
+
*
|
|
207
|
+
* const reader = vtkHttpDataSetReader.newInstance();
|
|
208
|
+
* reader.setURL('/Data/can.ex2/index.json').then((reader, dataset) => {
|
|
209
|
+
* console.log('Metadata loaded with the geometry', dataset);
|
|
210
|
+
*
|
|
211
|
+
* reader.getArrays().forEach(array => {
|
|
212
|
+
* console.log('-', array.name, array.location, ':', array.enable);
|
|
213
|
+
* });
|
|
214
|
+
*
|
|
215
|
+
* reader.update()
|
|
216
|
+
* .then((reader, dataset) => {
|
|
217
|
+
* console.log('dataset fully loaded', dataset);
|
|
218
|
+
* });
|
|
219
|
+
* });
|
|
220
|
+
* ```
|
|
221
|
+
*/
|
|
222
|
+
export declare const vtkHttpDataSetReader: {
|
|
223
|
+
newInstance: typeof newInstance,
|
|
224
|
+
extend: typeof extend,
|
|
225
|
+
};
|
|
226
|
+
export default vtkHttpDataSetReader;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { vtkAlgorithm, vtkObject } from '@kitware/vtk.js/interfaces';
|
|
2
|
+
import HtmlDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HtmlDataAccessHelper';
|
|
3
|
+
import HttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper';
|
|
4
|
+
import JSZipDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/JSZipDataAccessHelper';
|
|
5
|
+
import LiteHttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper';
|
|
2
6
|
|
|
3
7
|
|
|
4
8
|
interface IDracoReaderOptions {
|
|
@@ -30,7 +34,7 @@ export interface vtkDracoReader extends vtkDracoReaderBase {
|
|
|
30
34
|
/**
|
|
31
35
|
*
|
|
32
36
|
*/
|
|
33
|
-
getDataAccessHelper():
|
|
37
|
+
getDataAccessHelper(): HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper;
|
|
34
38
|
|
|
35
39
|
/**
|
|
36
40
|
* Get the url of the object to load.
|
|
@@ -68,17 +72,17 @@ export interface vtkDracoReader extends vtkDracoReaderBase {
|
|
|
68
72
|
requestData(inData: any, outData: any): void;
|
|
69
73
|
|
|
70
74
|
/**
|
|
71
|
-
*
|
|
72
|
-
* @param
|
|
73
|
-
* @param {IDracoReaderOptions} [option] The Draco reader options.
|
|
75
|
+
*
|
|
76
|
+
* @param dataAccessHelper
|
|
74
77
|
*/
|
|
75
|
-
|
|
78
|
+
setDataAccessHelper(dataAccessHelper: HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper): boolean;
|
|
76
79
|
|
|
77
80
|
/**
|
|
78
|
-
*
|
|
79
|
-
* @param
|
|
81
|
+
* Set the url of the object to load.
|
|
82
|
+
* @param {String} url the url of the object to load.
|
|
83
|
+
* @param {IDracoReaderOptions} [option] The Draco reader options.
|
|
80
84
|
*/
|
|
81
|
-
|
|
85
|
+
setUrl(url: string, option?: IDracoReaderOptions): Promise<string | any>;
|
|
82
86
|
}
|
|
83
87
|
|
|
84
88
|
/**
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { vtkAlgorithm, vtkObject } from '@kitware/vtk.js/interfaces';
|
|
2
|
+
import HtmlDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HtmlDataAccessHelper';
|
|
3
|
+
import HttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper';
|
|
4
|
+
import JSZipDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/JSZipDataAccessHelper';
|
|
5
|
+
import LiteHttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper';
|
|
2
6
|
|
|
3
7
|
interface IPLYReaderOptions {
|
|
4
8
|
binary?: boolean;
|
|
@@ -29,7 +33,7 @@ export interface vtkPLYReader extends vtkPLYReaderBase {
|
|
|
29
33
|
/**
|
|
30
34
|
*
|
|
31
35
|
*/
|
|
32
|
-
getDataAccessHelper():
|
|
36
|
+
getDataAccessHelper(): HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper;
|
|
33
37
|
|
|
34
38
|
/**
|
|
35
39
|
* Get the url of the object to load.
|
|
@@ -67,17 +71,17 @@ export interface vtkPLYReader extends vtkPLYReaderBase {
|
|
|
67
71
|
requestData(inData: any, outData: any): void;
|
|
68
72
|
|
|
69
73
|
/**
|
|
70
|
-
*
|
|
71
|
-
* @param
|
|
72
|
-
* @param {IPLYReaderOptions} [option] The PLY reader options.
|
|
74
|
+
*
|
|
75
|
+
* @param dataAccessHelper
|
|
73
76
|
*/
|
|
74
|
-
|
|
77
|
+
setDataAccessHelper(dataAccessHelper: HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper): boolean;
|
|
75
78
|
|
|
76
79
|
/**
|
|
77
|
-
*
|
|
78
|
-
* @param
|
|
80
|
+
* Set the url of the object to load.
|
|
81
|
+
* @param {String} url the url of the object to load.
|
|
82
|
+
* @param {IPLYReaderOptions} [option] The PLY reader options.
|
|
79
83
|
*/
|
|
80
|
-
|
|
84
|
+
setUrl(url: string, option?: IPLYReaderOptions): Promise<string | any>;
|
|
81
85
|
}
|
|
82
86
|
|
|
83
87
|
/**
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { vtkAlgorithm, vtkObject } from '@kitware/vtk.js/interfaces';
|
|
2
|
+
import HtmlDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HtmlDataAccessHelper';
|
|
3
|
+
import HttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper';
|
|
4
|
+
import JSZipDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/JSZipDataAccessHelper';
|
|
5
|
+
import LiteHttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper';
|
|
2
6
|
|
|
3
7
|
|
|
4
8
|
interface ISTLReaderOptions {
|
|
@@ -30,7 +34,7 @@ export interface vtkSTLReader extends vtkSTLReaderBase {
|
|
|
30
34
|
/**
|
|
31
35
|
*
|
|
32
36
|
*/
|
|
33
|
-
getDataAccessHelper():
|
|
37
|
+
getDataAccessHelper(): HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper;
|
|
34
38
|
|
|
35
39
|
/**
|
|
36
40
|
* Get the url of the object to load.
|
|
@@ -68,17 +72,18 @@ export interface vtkSTLReader extends vtkSTLReaderBase {
|
|
|
68
72
|
requestData(inData: any, outData: any): void;
|
|
69
73
|
|
|
70
74
|
/**
|
|
71
|
-
*
|
|
72
|
-
* @param
|
|
73
|
-
* @param {ISTLReaderOptions} [option] The STL reader options.
|
|
75
|
+
*
|
|
76
|
+
* @param dataAccessHelper
|
|
74
77
|
*/
|
|
75
|
-
|
|
78
|
+
setDataAccessHelper(dataAccessHelper: HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper): boolean;
|
|
79
|
+
|
|
76
80
|
|
|
77
81
|
/**
|
|
78
|
-
*
|
|
79
|
-
* @param
|
|
82
|
+
* Set the url of the object to load.
|
|
83
|
+
* @param {String} url the url of the object to load.
|
|
84
|
+
* @param {ISTLReaderOptions} [option] The STL reader options.
|
|
80
85
|
*/
|
|
81
|
-
|
|
86
|
+
setUrl(url: string, option?: ISTLReaderOptions): Promise<string | any>;
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
/**
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { vtkAlgorithm, vtkObject, vtkSubscription } from '@kitware/vtk.js/interfaces';
|
|
2
|
+
import HtmlDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HtmlDataAccessHelper';
|
|
3
|
+
import HttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper';
|
|
4
|
+
import JSZipDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/JSZipDataAccessHelper';
|
|
5
|
+
import LiteHttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper';
|
|
2
6
|
|
|
3
7
|
|
|
4
8
|
interface IElevationReaderOptions {
|
|
@@ -33,7 +37,7 @@ export interface vtkElevationReader extends vtkElevationReaderBase {
|
|
|
33
37
|
/**
|
|
34
38
|
*
|
|
35
39
|
*/
|
|
36
|
-
getDataAccessHelper():
|
|
40
|
+
getDataAccessHelper(): HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper;
|
|
37
41
|
|
|
38
42
|
/**
|
|
39
43
|
* Get the url of the object to load.
|
|
@@ -84,15 +88,16 @@ export interface vtkElevationReader extends vtkElevationReaderBase {
|
|
|
84
88
|
|
|
85
89
|
/**
|
|
86
90
|
*
|
|
87
|
-
* @param
|
|
91
|
+
* @param callback
|
|
88
92
|
*/
|
|
89
|
-
onBusy(busy: boolean): vtkSubscription;
|
|
93
|
+
onBusy(callback: (busy: boolean) => any): vtkSubscription;
|
|
90
94
|
|
|
91
95
|
/**
|
|
92
96
|
* Parse data as text.
|
|
93
97
|
* @param {String} content The content to parse.
|
|
94
98
|
*/
|
|
95
99
|
parseAsText(content: string): void;
|
|
100
|
+
|
|
96
101
|
/**
|
|
97
102
|
*
|
|
98
103
|
* @param inData
|
|
@@ -104,14 +109,14 @@ export interface vtkElevationReader extends vtkElevationReaderBase {
|
|
|
104
109
|
*
|
|
105
110
|
* @param dataAccessHelper
|
|
106
111
|
*/
|
|
107
|
-
setDataAccessHelper(dataAccessHelper:
|
|
112
|
+
setDataAccessHelper(dataAccessHelper: HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper): boolean;
|
|
108
113
|
|
|
109
114
|
/**
|
|
110
115
|
* Set the url of the object to load.
|
|
111
116
|
* @param {String} url the url of the object to load.
|
|
112
117
|
* @param {IElevationReaderOptions} [option] The Elevation reader options.
|
|
113
118
|
*/
|
|
114
|
-
setUrl(url: string, option?: IElevationReaderOptions):
|
|
119
|
+
setUrl(url: string, option?: IElevationReaderOptions): Promise<any>;
|
|
115
120
|
|
|
116
121
|
/**
|
|
117
122
|
*
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { vtkAlgorithm, vtkObject } from '@kitware/vtk.js/interfaces';
|
|
2
|
+
import HtmlDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HtmlDataAccessHelper';
|
|
3
|
+
import HttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper';
|
|
4
|
+
import JSZipDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/JSZipDataAccessHelper';
|
|
5
|
+
import LiteHttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper';
|
|
2
6
|
|
|
3
7
|
interface IJSONNucleoReaderOptions {
|
|
4
8
|
binary?: boolean;
|
|
@@ -29,7 +33,7 @@ export interface vtkJSONNucleoReader extends vtkJSONNucleoReaderBase {
|
|
|
29
33
|
/**
|
|
30
34
|
*
|
|
31
35
|
*/
|
|
32
|
-
getDataAccessHelper():
|
|
36
|
+
getDataAccessHelper(): HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper;
|
|
33
37
|
|
|
34
38
|
/**
|
|
35
39
|
* Get the url of the object to load.
|
|
@@ -55,17 +59,17 @@ export interface vtkJSONNucleoReader extends vtkJSONNucleoReaderBase {
|
|
|
55
59
|
requestData(inData: any, outData: any): void;
|
|
56
60
|
|
|
57
61
|
/**
|
|
58
|
-
*
|
|
59
|
-
* @param
|
|
60
|
-
* @param {IJSONNucleoReaderOptions} [option] The JSONNucleo reader options.
|
|
62
|
+
*
|
|
63
|
+
* @param dataAccessHelper
|
|
61
64
|
*/
|
|
62
|
-
|
|
65
|
+
setDataAccessHelper(dataAccessHelper: HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper): boolean;
|
|
63
66
|
|
|
64
67
|
/**
|
|
65
|
-
*
|
|
66
|
-
* @param
|
|
68
|
+
* Set the url of the object to load.
|
|
69
|
+
* @param {String} url the url of the object to load.
|
|
70
|
+
* @param {IJSONNucleoReaderOptions} [option] The JSONNucleo reader options.
|
|
67
71
|
*/
|
|
68
|
-
|
|
72
|
+
setUrl(url: string, option: IJSONNucleoReaderOptions): Promise<string>;
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
/**
|
package/IO/Misc/JSONReader.d.ts
CHANGED
|
@@ -51,9 +51,9 @@ export interface vtkJSONReader extends vtkJSONReaderBase {
|
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
|
-
* @param
|
|
54
|
+
* @param callback
|
|
55
55
|
*/
|
|
56
|
-
onBusy(busy: boolean): vtkSubscription;
|
|
56
|
+
onBusy(callback: (busy: boolean) => any): vtkSubscription;
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Parse data as text.
|
|
@@ -72,7 +72,7 @@ export interface vtkJSONReader extends vtkJSONReaderBase {
|
|
|
72
72
|
* @param {String} url the url of the object to load.
|
|
73
73
|
* @param {IJSONReaderOptions} [option] The JSON reader options.
|
|
74
74
|
*/
|
|
75
|
-
setUrl(url: string, option?: IJSONReaderOptions):
|
|
75
|
+
setUrl(url: string, option?: IJSONReaderOptions): Promise<string>;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/**
|
package/IO/Misc/MTLReader.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { vtkObject, vtkSubscription } from '@kitware/vtk.js/interfaces';
|
|
2
2
|
|
|
3
3
|
import vtkActor from '@kitware/vtk.js/Rendering/Core/Actor';
|
|
4
|
+
import HtmlDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HtmlDataAccessHelper';
|
|
5
|
+
import HttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper';
|
|
6
|
+
import JSZipDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/JSZipDataAccessHelper';
|
|
7
|
+
import LiteHttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper';
|
|
4
8
|
|
|
5
9
|
|
|
6
10
|
interface IMTLReaderOptions {
|
|
@@ -36,7 +40,7 @@ export interface vtkMTLReader extends vtkObject {
|
|
|
36
40
|
/**
|
|
37
41
|
*
|
|
38
42
|
*/
|
|
39
|
-
getDataAccessHelper():
|
|
43
|
+
getDataAccessHelper(): HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper;
|
|
40
44
|
|
|
41
45
|
/**
|
|
42
46
|
*
|
|
@@ -88,9 +92,9 @@ export interface vtkMTLReader extends vtkObject {
|
|
|
88
92
|
|
|
89
93
|
/**
|
|
90
94
|
*
|
|
91
|
-
* @param
|
|
95
|
+
* @param callback
|
|
92
96
|
*/
|
|
93
|
-
onBusy(busy: boolean): vtkSubscription;
|
|
97
|
+
onBusy(callback: (busy: boolean) => any): vtkSubscription;
|
|
94
98
|
|
|
95
99
|
/**
|
|
96
100
|
* Parse data as text.
|
|
@@ -108,7 +112,7 @@ export interface vtkMTLReader extends vtkObject {
|
|
|
108
112
|
*
|
|
109
113
|
* @param dataAccessHelper
|
|
110
114
|
*/
|
|
111
|
-
setDataAccessHelper(dataAccessHelper:
|
|
115
|
+
setDataAccessHelper(dataAccessHelper: HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper): boolean;
|
|
112
116
|
|
|
113
117
|
/**
|
|
114
118
|
*
|
|
@@ -134,7 +138,7 @@ export interface vtkMTLReader extends vtkObject {
|
|
|
134
138
|
* @param {String} url the url of the object to load.
|
|
135
139
|
* @param {IMTLReaderOptions} [option] The MTL reader options.
|
|
136
140
|
*/
|
|
137
|
-
setUrl(url: string, option?: IMTLReaderOptions):
|
|
141
|
+
setUrl(url: string, option?: IMTLReaderOptions): Promise<string>;
|
|
138
142
|
}
|
|
139
143
|
|
|
140
144
|
/**
|
package/IO/Misc/OBJReader.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { vtkAlgorithm, vtkObject, vtkSubscription } from '@kitware/vtk.js/interfaces';
|
|
2
|
+
import HtmlDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HtmlDataAccessHelper';
|
|
3
|
+
import HttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper';
|
|
4
|
+
import JSZipDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/JSZipDataAccessHelper';
|
|
5
|
+
import LiteHttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper';
|
|
2
6
|
|
|
3
7
|
|
|
4
8
|
interface IOBJReaderOptions {
|
|
@@ -34,7 +38,7 @@ export interface vtkOBJReader extends vtkOBJReaderBase {
|
|
|
34
38
|
/**
|
|
35
39
|
*
|
|
36
40
|
*/
|
|
37
|
-
getDataAccessHelper():
|
|
41
|
+
getDataAccessHelper(): HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper;
|
|
38
42
|
|
|
39
43
|
/**
|
|
40
44
|
* Get the url of the object to load.
|
|
@@ -65,9 +69,9 @@ export interface vtkOBJReader extends vtkOBJReaderBase {
|
|
|
65
69
|
|
|
66
70
|
/**
|
|
67
71
|
*
|
|
68
|
-
* @param
|
|
72
|
+
* @param callback
|
|
69
73
|
*/
|
|
70
|
-
onBusy(busy: boolean): vtkSubscription;
|
|
74
|
+
onBusy(callback: (busy: boolean) => any): vtkSubscription;
|
|
71
75
|
|
|
72
76
|
/**
|
|
73
77
|
* Parse data as text.
|
|
@@ -86,7 +90,7 @@ export interface vtkOBJReader extends vtkOBJReaderBase {
|
|
|
86
90
|
*
|
|
87
91
|
* @param dataAccessHelper
|
|
88
92
|
*/
|
|
89
|
-
setDataAccessHelper(dataAccessHelper:
|
|
93
|
+
setDataAccessHelper(dataAccessHelper: HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper): boolean;
|
|
90
94
|
|
|
91
95
|
/**
|
|
92
96
|
*
|
|
@@ -99,7 +103,7 @@ export interface vtkOBJReader extends vtkOBJReaderBase {
|
|
|
99
103
|
* @param {String} url the url of the object to load.
|
|
100
104
|
* @param {IOBJReaderOptions} [option] The OBJ reader options.
|
|
101
105
|
*/
|
|
102
|
-
setUrl(url: string, option?: IOBJReaderOptions):
|
|
106
|
+
setUrl(url: string, option?: IOBJReaderOptions): Promise<string>;
|
|
103
107
|
}
|
|
104
108
|
|
|
105
109
|
/**
|
package/IO/Misc/PDBReader.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { vtkAlgorithm, vtkObject, vtkSubscription } from '@kitware/vtk.js/interfaces';
|
|
2
|
+
import HtmlDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HtmlDataAccessHelper';
|
|
3
|
+
import HttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper';
|
|
4
|
+
import JSZipDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/JSZipDataAccessHelper';
|
|
5
|
+
import LiteHttpDataAccessHelper from '@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper';
|
|
2
6
|
|
|
3
7
|
|
|
4
8
|
interface IPDBReaderOptions {
|
|
@@ -33,7 +37,7 @@ export interface vtkPDBReader extends vtkPDBReaderBase {
|
|
|
33
37
|
/**
|
|
34
38
|
*
|
|
35
39
|
*/
|
|
36
|
-
getDataAccessHelper():
|
|
40
|
+
getDataAccessHelper(): HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper;
|
|
37
41
|
|
|
38
42
|
/**
|
|
39
43
|
* Get the url of the object to load.
|
|
@@ -69,9 +73,9 @@ export interface vtkPDBReader extends vtkPDBReaderBase {
|
|
|
69
73
|
|
|
70
74
|
/**
|
|
71
75
|
*
|
|
72
|
-
* @param
|
|
76
|
+
* @param callback
|
|
73
77
|
*/
|
|
74
|
-
onBusy(busy: boolean): vtkSubscription;
|
|
78
|
+
onBusy(callback: (busy: boolean) => any): vtkSubscription;
|
|
75
79
|
|
|
76
80
|
/**
|
|
77
81
|
* Parse data as text.
|
|
@@ -89,14 +93,14 @@ export interface vtkPDBReader extends vtkPDBReaderBase {
|
|
|
89
93
|
*
|
|
90
94
|
* @param dataAccessHelper
|
|
91
95
|
*/
|
|
92
|
-
setDataAccessHelper(dataAccessHelper:
|
|
96
|
+
setDataAccessHelper(dataAccessHelper: HtmlDataAccessHelper | HttpDataAccessHelper | JSZipDataAccessHelper | LiteHttpDataAccessHelper): boolean;
|
|
93
97
|
|
|
94
98
|
/**
|
|
95
99
|
* Set the url of the object to load.
|
|
96
100
|
* @param {String} url the url of the object to load.
|
|
97
101
|
* @param {IPDBReaderOptions} [option] The PDB reader options.
|
|
98
102
|
*/
|
|
99
|
-
setUrl(url: string, option?: IPDBReaderOptions):
|
|
103
|
+
setUrl(url: string, option?: IPDBReaderOptions): Promise<string>;
|
|
100
104
|
}
|
|
101
105
|
|
|
102
106
|
/**
|