@xtctwins/tctwins-core 1.0.30 → 1.0.31
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/dist/tctwins-core.es.js +40971 -29249
- package/dist/tctwins-core.min.es.js +5639 -36
- package/dist/web-ifc-api.js +74136 -0
- package/package.json +2 -2
- package/types/extras/PointerLens/PointerLens.d.ts +100 -98
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsMouseControl.d.ts +4 -4
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsTouchControl.d.ts +4 -4
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +217 -211
- package/types/plugins/XTCLoaderPlugin/XTCLoaderPlugin.d.ts +287 -0
- package/types/plugins/XTCLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/index.d.ts +12 -12
- package/types/viewer/Plugin.d.ts +54 -54
- package/types/viewer/Viewer.d.ts +2 -0
- package/types/viewer/scene/Entity.d.ts +392 -392
- package/types/viewer/scene/LineSet/LineSet.d.ts +55 -58
- package/types/viewer/scene/models/SceneModelEntity.d.ts +408 -409
- package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +0 -281
- package/types/plugins/XKTLoaderPlugin/index.d.ts +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {Entity} from "../Entity";
|
|
2
|
-
import {SceneModelMesh} from "./SceneModelMesh";
|
|
3
|
-
import {SceneModel} from "./SceneModel";
|
|
1
|
+
import { Entity } from "../Entity";
|
|
2
|
+
import { SceneModelMesh } from "./SceneModelMesh";
|
|
3
|
+
import { SceneModel } from "./SceneModel";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* An abstract 3D scene element that can be individually shown, hidden, selected,
|
|
@@ -9,410 +9,409 @@ import {SceneModel} from "./SceneModel";
|
|
|
9
9
|
* @abstract
|
|
10
10
|
*/
|
|
11
11
|
export declare abstract class SceneModelEntity implements Entity {
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
destroy(): void;
|
|
12
|
+
/**
|
|
13
|
+
* Component ID, unique within the {@link Scene}.
|
|
14
|
+
*
|
|
15
|
+
* @type {number|string}
|
|
16
|
+
* @abstract
|
|
17
|
+
*/
|
|
18
|
+
get id(): string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* ID of the corresponding object within the originating system, if any.
|
|
22
|
+
*
|
|
23
|
+
* By default, this has the same value as {@link SceneModelEntity.id}. When we load a model using {@link XTCLoaderPlugin.load},
|
|
24
|
+
* with {@link XTCLoaderPlugin.globalizeObjectIds} set ````true````, then that plugin will prefix {@link SceneModelEntity.id}
|
|
25
|
+
* with the model ID, while leaving this property holding the original value of {@link SceneModelEntity.id}. When loading an
|
|
26
|
+
* IFC model, this property will hold the IFC product ID of the corresponding IFC element.
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
*/
|
|
30
|
+
get originalSystemId(): string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Returns true to indicate that this is an SceneModelEntity.
|
|
34
|
+
*
|
|
35
|
+
* @returns {Boolean}
|
|
36
|
+
*/
|
|
37
|
+
get isEntity(): boolean;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Returns ````true```` if this SceneModelEntity represents a model.
|
|
41
|
+
*
|
|
42
|
+
* When this is ````true````, the SceneModelEntity will be registered by {@link SceneModelEntity.id} in {@link Scene.models} and
|
|
43
|
+
* may also have a corresponding {@link MetaModel}.
|
|
44
|
+
*
|
|
45
|
+
* @type {Boolean}
|
|
46
|
+
* @abstract
|
|
47
|
+
*/
|
|
48
|
+
get isModel(): boolean;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Returns ````true```` if this SceneModelEntity represents an object.
|
|
52
|
+
*
|
|
53
|
+
* When this is ````true````, the SceneModelEntity will be registered by {@link SceneModelEntity.id} in {@link Scene.objects} and
|
|
54
|
+
* may also have a corresponding {@link MetaObject}.
|
|
55
|
+
*
|
|
56
|
+
* @type {Boolean}
|
|
57
|
+
* @abstract
|
|
58
|
+
*/
|
|
59
|
+
get isObject(): boolean;
|
|
60
|
+
|
|
61
|
+
/** Returns the parent SceneModelEntity, if any. */
|
|
62
|
+
get parent(): void;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Sets the 3D World-space origin for this SceneModelEntity.
|
|
66
|
+
*
|
|
67
|
+
* @type {Float64Array}
|
|
68
|
+
* @abstract
|
|
69
|
+
*/
|
|
70
|
+
set origin(arg: Float64Array);
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Gets the 3D World-space origin for this SceneModelEntity.
|
|
74
|
+
*
|
|
75
|
+
* @type {Float64Array}
|
|
76
|
+
* @abstract
|
|
77
|
+
*/
|
|
78
|
+
get origin(): Float64Array;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* World-space 3D axis-aligned bounding box (AABB) of this SceneModelEntity.
|
|
82
|
+
*
|
|
83
|
+
* Represented by a six-element Float64Array containing the min/max extents of the
|
|
84
|
+
* axis-aligned volume, ie. ````[xmin, ymin,zmin,xmax,ymax, zmax]````.
|
|
85
|
+
*
|
|
86
|
+
* @type {Float64Array}
|
|
87
|
+
* @abstract
|
|
88
|
+
*/
|
|
89
|
+
get aabb(): number[];
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The approximate number of triangles in this SceneModelEntity.
|
|
93
|
+
*
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @abstract
|
|
96
|
+
*/
|
|
97
|
+
get numTriangles(): number;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Sets if this SceneModelEntity is visible.
|
|
101
|
+
*
|
|
102
|
+
* Only rendered when {@link SceneModelEntity.visible} is ````true```` and {@link SceneModelEntity.culled} is ````false````.
|
|
103
|
+
*
|
|
104
|
+
* When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.visible} are both ````true```` the SceneModelEntity will be
|
|
105
|
+
* registered by {@link SceneModelEntity.id} in {@link Scene.visibleObjects}.
|
|
106
|
+
*
|
|
107
|
+
* @type {Boolean}
|
|
108
|
+
* @abstract
|
|
109
|
+
*/
|
|
110
|
+
set visible(arg: boolean);
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Gets if this SceneModelEntity is visible.
|
|
114
|
+
*
|
|
115
|
+
* Only rendered when {@link SceneModelEntity.visible} is ````true```` and {@link SceneModelEntity.culled} is ````false````.
|
|
116
|
+
*
|
|
117
|
+
* When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.visible} are both ````true```` the SceneModelEntity will be
|
|
118
|
+
* registered by {@link SceneModelEntity.id} in {@link Scene.visibleObjects}.
|
|
119
|
+
*
|
|
120
|
+
* @type {Boolean}
|
|
121
|
+
* @abstract
|
|
122
|
+
*/
|
|
123
|
+
get visible(): boolean;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Sets if this SceneModelEntity is xrayed.
|
|
127
|
+
*
|
|
128
|
+
* When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.xrayed} are both ````true``` the SceneModelEntity will be
|
|
129
|
+
* registered by {@link SceneModelEntity.id} in {@link Scene.xrayedObjects}.
|
|
130
|
+
*
|
|
131
|
+
* @type {Boolean}
|
|
132
|
+
* @abstract
|
|
133
|
+
*/
|
|
134
|
+
set xrayed(arg: boolean);
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Gets if this SceneModelEntity is xrayed.
|
|
138
|
+
*
|
|
139
|
+
* When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.xrayed} are both ````true``` the SceneModelEntity will be
|
|
140
|
+
* registered by {@link SceneModelEntity.id} in {@link Scene.xrayedObjects}.
|
|
141
|
+
*
|
|
142
|
+
* @type {Boolean}
|
|
143
|
+
* @abstract
|
|
144
|
+
*/
|
|
145
|
+
get xrayed(): boolean;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Sets if this SceneModelEntity is highlighted.
|
|
149
|
+
*
|
|
150
|
+
* When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.highlighted} are both ````true```` the SceneModelEntity will be
|
|
151
|
+
* registered by {@link SceneModelEntity.id} in {@link Scene.highlightedObjects}.
|
|
152
|
+
*
|
|
153
|
+
* @type {Boolean}
|
|
154
|
+
* @abstract
|
|
155
|
+
*/
|
|
156
|
+
set highlighted(arg: boolean);
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Gets if this SceneModelEntity is highlighted.
|
|
160
|
+
*
|
|
161
|
+
* When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.highlighted} are both ````true```` the SceneModelEntity will be
|
|
162
|
+
* registered by {@link SceneModelEntity.id} in {@link Scene.highlightedObjects}.
|
|
163
|
+
*
|
|
164
|
+
* @type {Boolean}
|
|
165
|
+
* @abstract
|
|
166
|
+
*/
|
|
167
|
+
get highlighted(): boolean;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Sets if this SceneModelEntity is selected.
|
|
171
|
+
*
|
|
172
|
+
* When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.selected} are both ````true``` the SceneModelEntity will be
|
|
173
|
+
* registered by {@link SceneModelEntity.id} in {@link Scene.selectedObjects}.
|
|
174
|
+
*
|
|
175
|
+
* @type {Boolean}
|
|
176
|
+
* @abstract
|
|
177
|
+
*/
|
|
178
|
+
set selected(arg: boolean);
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Gets if this SceneModelEntity is selected.
|
|
182
|
+
*
|
|
183
|
+
* When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.selected} are both ````true``` the SceneModelEntity will be
|
|
184
|
+
* registered by {@link SceneModelEntity.id} in {@link Scene.selectedObjects}.
|
|
185
|
+
*
|
|
186
|
+
* @type {Boolean}
|
|
187
|
+
* @abstract
|
|
188
|
+
*/
|
|
189
|
+
get selected(): boolean;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Sets if this SceneModelEntity's edges are enhanced.
|
|
193
|
+
*
|
|
194
|
+
* @type {Boolean}
|
|
195
|
+
* @abstract
|
|
196
|
+
*/
|
|
197
|
+
set edges(arg: boolean);
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Gets if this SceneModelEntity's edges are enhanced.
|
|
201
|
+
*
|
|
202
|
+
* @type {Boolean}
|
|
203
|
+
* @abstract
|
|
204
|
+
*/
|
|
205
|
+
get edges(): boolean;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Sets if this SceneModelEntity is culled.
|
|
209
|
+
*
|
|
210
|
+
* Only rendered when {@link SceneModelEntity.visible} is ````true```` and {@link SceneModelEntity.culled} is ````false````.
|
|
211
|
+
*
|
|
212
|
+
* @type {Boolean}
|
|
213
|
+
* @abstract
|
|
214
|
+
*/
|
|
215
|
+
set culled(arg: boolean);
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Gets if this SceneModelEntity is culled.
|
|
219
|
+
*
|
|
220
|
+
* Only rendered when {@link SceneModelEntity.visible} is ````true```` and {@link SceneModelEntity.culled} is ````false````.
|
|
221
|
+
*
|
|
222
|
+
* @type {Boolean}
|
|
223
|
+
* @abstract
|
|
224
|
+
*/
|
|
225
|
+
get culled(): boolean;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Sets if this SceneModelEntity is clippable.
|
|
229
|
+
*
|
|
230
|
+
* Clipping is done by the {@link SectionPlane}s in {@link Scene.sectionPlanes}.
|
|
231
|
+
*
|
|
232
|
+
* @type {Boolean}
|
|
233
|
+
* @abstract
|
|
234
|
+
*/
|
|
235
|
+
set clippable(arg: boolean);
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Gets if this SceneModelEntity is clippable.
|
|
239
|
+
*
|
|
240
|
+
* Clipping is done by the {@link SectionPlane}s in {@link Scene.sectionPlanes}.
|
|
241
|
+
*
|
|
242
|
+
* @type {Boolean}
|
|
243
|
+
* @abstract
|
|
244
|
+
*/
|
|
245
|
+
get clippable(): boolean;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Sets if this SceneModelEntity is included in boundary calculations.
|
|
249
|
+
*
|
|
250
|
+
* @type {Boolean}
|
|
251
|
+
* @abstract
|
|
252
|
+
*/
|
|
253
|
+
set collidable(arg: boolean);
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Gets if this SceneModelEntity is included in boundary calculations.
|
|
257
|
+
*
|
|
258
|
+
* @type {Boolean}
|
|
259
|
+
* @abstract
|
|
260
|
+
*/
|
|
261
|
+
get collidable(): boolean;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Sets if this SceneModelEntity is pickable.
|
|
265
|
+
*
|
|
266
|
+
* Picking is done via calls to {@link Scene.pick}.
|
|
267
|
+
*
|
|
268
|
+
* @type {Boolean}
|
|
269
|
+
* @abstract
|
|
270
|
+
*/
|
|
271
|
+
set pickable(arg: boolean);
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Gets if this SceneModelEntity is pickable.
|
|
275
|
+
*
|
|
276
|
+
* Picking is done via calls to {@link Scene.pick}.
|
|
277
|
+
*
|
|
278
|
+
* @type {Boolean}
|
|
279
|
+
* @abstract
|
|
280
|
+
*/
|
|
281
|
+
get pickable(): boolean;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Sets the SceneModelEntity's RGB colorize color, multiplies by the SceneModelEntity's rendered fragment colors.
|
|
285
|
+
*
|
|
286
|
+
* Each element of the color is in range ````[0..1]````.
|
|
287
|
+
*
|
|
288
|
+
* @type {number[]}
|
|
289
|
+
* @abstract
|
|
290
|
+
*/
|
|
291
|
+
set colorize(arg: number[]);
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Gets the SceneModelEntity's RGB colorize color, multiplies by the SceneModelEntity's rendered fragment colors.
|
|
295
|
+
*
|
|
296
|
+
* Each element of the color is in range ````[0..1]````.
|
|
297
|
+
*
|
|
298
|
+
* @type {number[]}
|
|
299
|
+
* @abstract
|
|
300
|
+
*/
|
|
301
|
+
get colorize(): number[];
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Sets the SceneModelEntity's opacity factor, multiplies by the SceneModelEntity's rendered fragment alphas.
|
|
305
|
+
*
|
|
306
|
+
* This is a factor in range ````[0..1]````.
|
|
307
|
+
*
|
|
308
|
+
* @type {number}
|
|
309
|
+
* @abstract
|
|
310
|
+
*/
|
|
311
|
+
set opacity(arg: number);
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Gets the SceneModelEntity's opacity factor.
|
|
315
|
+
*
|
|
316
|
+
* This is a factor in range ````[0..1]```` which multiplies by the rendered fragment alphas.
|
|
317
|
+
*
|
|
318
|
+
* @type {number}
|
|
319
|
+
* @abstract
|
|
320
|
+
*/
|
|
321
|
+
get opacity(): number;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Sets if this SceneModelEntity casts shadows.
|
|
325
|
+
*
|
|
326
|
+
* @type {Boolean}
|
|
327
|
+
* @abstract
|
|
328
|
+
*/
|
|
329
|
+
set castsShadow(arg: boolean);
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Gets if this SceneModelEntity casts shadows.
|
|
333
|
+
*
|
|
334
|
+
* @type {Boolean}
|
|
335
|
+
* @abstract
|
|
336
|
+
*/
|
|
337
|
+
get castsShadow(): boolean;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Sets if to this SceneModelEntity can have shadows cast upon it
|
|
341
|
+
*
|
|
342
|
+
* @type {Boolean}
|
|
343
|
+
* @abstract
|
|
344
|
+
*/
|
|
345
|
+
set receivesShadow(arg: boolean);
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Gets if this SceneModelEntity can have shadows cast upon it
|
|
349
|
+
*
|
|
350
|
+
* @type {Boolean}
|
|
351
|
+
* @abstract
|
|
352
|
+
*/
|
|
353
|
+
get receivesShadow(): boolean;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Gets if this SceneModelEntity can have Scalable Ambient Obscurance (SAO) applied to it.
|
|
357
|
+
*
|
|
358
|
+
* SAO is configured by {@link SAO}.
|
|
359
|
+
*
|
|
360
|
+
* @type {Boolean}
|
|
361
|
+
* @abstract
|
|
362
|
+
*/
|
|
363
|
+
get saoEnabled(): boolean;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Sets the SceneModelEntity's 3D World-space offset.
|
|
367
|
+
*
|
|
368
|
+
* Since offsetting Entities comes with memory and rendering overhead on some systems, this feature
|
|
369
|
+
* only works when {@link Viewer} is configured with ````entityOffsetsEnabled: true````.
|
|
370
|
+
*
|
|
371
|
+
* The offset dynamically translates the SceneModelEntity in World-space, which is useful for creating
|
|
372
|
+
* effects like exploding parts assemblies etc.
|
|
373
|
+
*
|
|
374
|
+
* Default value is ````[0,0,0]````.
|
|
375
|
+
*
|
|
376
|
+
* Provide a null or undefined value to reset to the default value.
|
|
377
|
+
*
|
|
378
|
+
* @abstract
|
|
379
|
+
* @type {number[]}
|
|
380
|
+
*/
|
|
381
|
+
set offset(arg: number[]);
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Gets the SceneModelEntity's 3D World-space offset.
|
|
385
|
+
*
|
|
386
|
+
* Default value is ````[0,0,0]````.
|
|
387
|
+
*
|
|
388
|
+
* @abstract
|
|
389
|
+
* @type {number[]}
|
|
390
|
+
*/
|
|
391
|
+
get offset(): number[];
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Gets the World, View and Canvas-space positions of each vertex in a callback.
|
|
395
|
+
*
|
|
396
|
+
* @param callback
|
|
397
|
+
*/
|
|
398
|
+
getEachVertex(callback: any): void;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* The {@link SceneModel} to which this SceneModelEntity belongs.
|
|
402
|
+
*/
|
|
403
|
+
model: SceneModel;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* The {@link SceneModelMesh}es belonging to this SceneModelEntity.
|
|
407
|
+
*
|
|
408
|
+
* * These are created with {@link SceneModel#createMesh} and registered in {@ilnk SceneModel#meshes}
|
|
409
|
+
* * Each SceneModelMesh belongs to one SceneModelEntity
|
|
410
|
+
*/
|
|
411
|
+
meshes: SceneModelMesh[];
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Destroys this SceneModelEntity.
|
|
415
|
+
*/
|
|
416
|
+
destroy(): void;
|
|
418
417
|
}
|