@xeokit/xeokit-sdk 2.6.78-rc2-no-las → 2.6.78
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/xeokit-sdk.cjs.js +32532 -15213
- package/dist/xeokit-sdk.es.js +32531 -15214
- package/dist/xeokit-sdk.es5.js +29446 -30855
- package/dist/xeokit-sdk.min.cjs.js +8 -8
- package/dist/xeokit-sdk.min.es.js +8 -8
- package/dist/xeokit-sdk.min.es5.js +33 -34
- package/package.json +4 -7
- package/src/plugins/CxConverterIFCLoaderPlugin/CxConverterIFCLoaderPlugin.js +68 -68
- package/src/plugins/CxConverterIFCLoaderPlugin/index.js +1 -1
- package/src/plugins/LASLoaderPlugin/index.js +1 -1
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV1.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV10.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV12.js +9 -9
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV2.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV3.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV4.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV5.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV6.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV7.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV8.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV9.js +5 -5
- package/src/plugins/index.js +2 -2
- package/src/viewer/scene/Entity.js +6 -0
- package/src/viewer/scene/model/SceneModelEntity.js +26 -0
- package/src/viewer/scene/model/vbo/batching/triangles/VBOBatchingTrianglesLayer.js +44 -0
- package/src/viewer/scene/model/vbo/instancing/triangles/VBOInstancingTrianglesLayer.js +58 -0
- package/src/viewer/scene/sectionCaps/SectionCaps.js +33 -27
- package/src/viewer/scene/webgl/ArrayBuf.js +20 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +108 -26
- package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +14 -3
- package/types/plugins/DotBIMLoaderPlugin/DotBIMLoaderPlugin.d.ts +23 -5
- package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +25 -5
- package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +100 -20
- package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +14 -3
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +83 -18
- package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +106 -21
- package/types/viewer/Configs.d.ts +24 -6
- package/types/viewer/scene/CameraControl/CameraControl.d.ts +445 -66
- package/types/viewer/scene/Component.d.ts +1 -1
- package/types/viewer/scene/Entity.d.ts +191 -40
- package/types/viewer/scene/camera/Camera.d.ts +170 -50
- package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +57 -8
- package/types/viewer/scene/camera/CameraPath.d.ts +13 -8
- package/types/viewer/scene/camera/CameraPathAnimation.d.ts +22 -4
- package/types/viewer/scene/camera/CustomProjection.d.ts +21 -6
- package/types/viewer/scene/camera/Frustum.d.ts +90 -18
- package/types/viewer/scene/camera/Ortho.d.ts +54 -14
- package/types/viewer/scene/camera/Perspective.d.ts +70 -16
- package/types/viewer/scene/geometry/ReadableGeometry.d.ts +25 -21
- package/types/viewer/scene/geometry/VBOGeometry.d.ts +7 -7
- package/types/viewer/scene/lights/AmbientLight.d.ts +26 -4
- package/types/viewer/scene/lights/DirLight.d.ts +52 -8
- package/types/viewer/scene/lights/PointLight.d.ts +93 -14
- package/types/viewer/scene/materials/EdgeMaterial.d.ts +37 -12
- package/types/viewer/scene/materials/EmphasisMaterial.d.ts +119 -22
- package/types/viewer/scene/materials/Fresnel.d.ts +50 -10
- package/types/viewer/scene/materials/LambertMaterial.d.ts +90 -16
- package/types/viewer/scene/materials/LinesMaterial.d.ts +25 -7
- package/types/viewer/scene/materials/MetallicMaterial.d.ts +127 -40
- package/types/viewer/scene/materials/PhongMaterial.d.ts +185 -52
- package/types/viewer/scene/materials/PointsMaterial.d.ts +101 -20
- package/types/viewer/scene/materials/SpecularMaterial.d.ts +117 -41
- package/types/viewer/scene/materials/Texture.d.ts +62 -22
- package/types/viewer/scene/models/SceneModel.d.ts +233 -76
- package/types/viewer/scene/models/SceneModelEntity.d.ts +217 -51
- package/types/viewer/scene/models/SceneModelMesh.d.ts +4 -4
- package/types/viewer/scene/models/SceneModelTransform.d.ts +59 -14
- package/types/viewer/scene/paths/CubicBezierCurve.d.ts +73 -12
- package/types/viewer/scene/paths/Curve.d.ts +19 -6
- package/types/viewer/scene/paths/Path.d.ts +57 -10
- package/types/viewer/scene/paths/QuadraticBezierCurve.d.ts +57 -10
- package/types/viewer/scene/paths/SplineCurve.d.ts +32 -6
- package/types/viewer/scene/scene/Scene.d.ts +196 -94
- package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +69 -12
- package/types/viewer/scene/viewport/Viewport.d.ts +14 -4
- package/types/viewer/scene/webgl/PickResult.d.ts +28 -13
- package/dist/xeokit-sdk.es5.js.map +0 -1
- package/dist/xeokit-sdk.min.es5.js.map +0 -1
|
@@ -31,7 +31,7 @@ export declare class SceneModel extends Component {
|
|
|
31
31
|
* Returns true to indicate that this Component is a SceneModel.
|
|
32
32
|
* @type {Boolean}
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
get isPerformanceModel(): boolean;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The {@link SceneModelTransform}s in this SceneModel.
|
|
@@ -40,7 +40,7 @@ export declare class SceneModel extends Component {
|
|
|
40
40
|
*
|
|
41
41
|
* @returns {*|{}}
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
get transforms(): { [key: string]: SceneModelTransform }
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* The {@link SceneModelTexture}s in this SceneModel.
|
|
@@ -50,7 +50,7 @@ export declare class SceneModel extends Component {
|
|
|
50
50
|
*
|
|
51
51
|
* @returns {*|{}}
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
get textures(): { [key: string]: SceneModelTexture }
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* The {@link SceneModelTextureSet}s in this SceneModel.
|
|
@@ -59,7 +59,7 @@ export declare class SceneModel extends Component {
|
|
|
59
59
|
*
|
|
60
60
|
* @returns {*|{}}
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
get textureSets(): { [key: string]: SceneModelTextureSet }
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* The {@link SceneModelMesh}es in this SceneModel.
|
|
@@ -68,16 +68,16 @@ export declare class SceneModel extends Component {
|
|
|
68
68
|
*
|
|
69
69
|
* @returns {*|{}}
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
get meshes(): { [key: string]: SceneModelMesh }
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Returns the {@link SceneModelEntity}s in this SceneModel.
|
|
75
75
|
* @returns {*|{}}
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
get objects(): { [key: string]: SceneModelEntity }
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Gets the 3D World-space origin for this SceneModel.
|
|
81
81
|
*
|
|
82
82
|
* Each geometry or mesh origin, if supplied, is relative to this origin.
|
|
83
83
|
*
|
|
@@ -85,86 +85,140 @@ export declare class SceneModel extends Component {
|
|
|
85
85
|
*
|
|
86
86
|
* @type {number[]}
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
get origin(): number[];
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* Sets the SceneModel's local translation.
|
|
92
92
|
*
|
|
93
93
|
* Default value is ````[0,0,0]````.
|
|
94
94
|
*
|
|
95
95
|
* @type {number[]}
|
|
96
96
|
*/
|
|
97
|
-
position: number[];
|
|
97
|
+
set position(value: number[]);
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* Gets the SceneModel's local translation.
|
|
101
101
|
*
|
|
102
102
|
* Default value is ````[0,0,0]````.
|
|
103
103
|
*
|
|
104
104
|
* @type {number[]}
|
|
105
105
|
*/
|
|
106
|
-
|
|
106
|
+
get position(): number[];
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* Sets the SceneModel's local rotation, as Euler angles given in degrees, for each of the X, Y and Z axis.
|
|
110
|
+
*
|
|
111
|
+
* Default value is ````[0,0,0]````.
|
|
112
|
+
*
|
|
113
|
+
* @type {number[]}
|
|
114
|
+
*/
|
|
115
|
+
set rotation(value: number[]);
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Gets the SceneModel's local rotation, as Euler angles given in degrees, for each of the X, Y and Z axis.
|
|
119
|
+
*
|
|
120
|
+
* Default value is ````[0,0,0]````.
|
|
121
|
+
*
|
|
122
|
+
* @type {number[]}
|
|
123
|
+
*/
|
|
124
|
+
get rotation(): number[];
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Sets the SceneModel's local rotation quaternion.
|
|
128
|
+
*
|
|
129
|
+
* Default value is ````[0,0,0,1]````.
|
|
130
|
+
*
|
|
131
|
+
* @type {number[]}
|
|
132
|
+
*/
|
|
133
|
+
set quaternion(value: number[]);
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Gets the VBOSceneModels's local rotation quaternion.
|
|
110
137
|
*
|
|
111
138
|
* Default value is ````[0,0,0,1]````.
|
|
112
139
|
*
|
|
113
140
|
* @type {number[]}
|
|
114
141
|
*/
|
|
115
|
-
quaternion: number[];
|
|
142
|
+
get quaternion(): number[];
|
|
116
143
|
|
|
117
144
|
/**
|
|
118
|
-
*
|
|
145
|
+
* Sets the SceneModel's local scale.
|
|
119
146
|
*
|
|
120
147
|
* Default value is ````[1,1,1]````.
|
|
121
148
|
*
|
|
122
149
|
* @type {number[]}
|
|
123
150
|
* @deprecated
|
|
124
151
|
*/
|
|
125
|
-
scale: number[];
|
|
152
|
+
set scale(value: number[]);
|
|
126
153
|
|
|
127
154
|
/**
|
|
128
|
-
*
|
|
155
|
+
* Gets the SceneModel's local scale.
|
|
156
|
+
*
|
|
157
|
+
* Default value is ````[1,1,1]````.
|
|
158
|
+
*
|
|
159
|
+
* @type {number[]}
|
|
160
|
+
*/
|
|
161
|
+
get scale(): number[];
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Sets the SceneModel's local modeling transform matrix.
|
|
129
165
|
*
|
|
130
166
|
* Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
|
|
131
167
|
*
|
|
132
168
|
* @type {number[]}
|
|
133
169
|
*/
|
|
134
|
-
matrix: number[]
|
|
170
|
+
set matrix(value: number[])
|
|
135
171
|
|
|
136
172
|
/**
|
|
137
|
-
*
|
|
173
|
+
* Gets the SceneModel's local modeling transform matrix.
|
|
174
|
+
*
|
|
175
|
+
* Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
|
|
138
176
|
*
|
|
139
177
|
* @type {number[]}
|
|
140
178
|
*/
|
|
141
|
-
|
|
179
|
+
get matrix(): number[];
|
|
142
180
|
|
|
143
181
|
/**
|
|
144
|
-
*
|
|
182
|
+
* Gets the SceneModel's local modeling rotation transform matrix.
|
|
183
|
+
*
|
|
184
|
+
* @type {number[]}
|
|
185
|
+
*/
|
|
186
|
+
get rotationMatrix(): number[];
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Gets the conjugate of the SceneModel's local modeling rotation transform matrix.
|
|
145
190
|
*
|
|
146
191
|
* This is used for RTC view matrix management in renderers.
|
|
147
192
|
*
|
|
148
193
|
* @type {Number[]}
|
|
149
194
|
*/
|
|
150
|
-
|
|
195
|
+
get rotationMatrixConjugate(): number[];
|
|
151
196
|
|
|
152
197
|
/**
|
|
153
|
-
*
|
|
198
|
+
* Gets the SceneModel's World matrix.
|
|
154
199
|
*
|
|
155
200
|
* @type {number[]}
|
|
156
201
|
*/
|
|
157
|
-
|
|
202
|
+
get worldMatrix(): number[];
|
|
158
203
|
|
|
159
204
|
/**
|
|
160
|
-
*
|
|
205
|
+
* Gets the SceneModel's World normal matrix.
|
|
161
206
|
*
|
|
162
207
|
* @type {number[]}
|
|
163
208
|
*/
|
|
164
|
-
|
|
209
|
+
get worldNormalMatrix(): number[];
|
|
165
210
|
|
|
166
211
|
/**
|
|
167
|
-
*
|
|
212
|
+
* Sets if backfaces are rendered for this SceneModel.
|
|
213
|
+
*
|
|
214
|
+
* Default is ````false````.
|
|
215
|
+
*
|
|
216
|
+
* @type {Boolean}
|
|
217
|
+
*/
|
|
218
|
+
get backfaces(): boolean;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Sets if backfaces are rendered for this SceneModel.
|
|
168
222
|
*
|
|
169
223
|
* Default is ````false````.
|
|
170
224
|
*
|
|
@@ -179,20 +233,20 @@ export declare class SceneModel extends Component {
|
|
|
179
233
|
*
|
|
180
234
|
* @type {Boolean}
|
|
181
235
|
*/
|
|
182
|
-
backfaces: boolean;
|
|
236
|
+
set backfaces(backfaces: boolean);
|
|
183
237
|
|
|
184
238
|
/**
|
|
185
|
-
*
|
|
239
|
+
* Gets the list of {@link SceneModelEntity}s within this SceneModel.
|
|
186
240
|
*
|
|
187
241
|
* @returns {SceneModelEntity[]}
|
|
188
242
|
*/
|
|
189
|
-
|
|
243
|
+
get entityList(): SceneModelEntity[];
|
|
190
244
|
|
|
191
245
|
/**
|
|
192
246
|
* Returns true to indicate that SceneModel is an {@link SceneModelEntity}.
|
|
193
247
|
* @type {Boolean}
|
|
194
248
|
*/
|
|
195
|
-
|
|
249
|
+
get isEntity(): boolean;
|
|
196
250
|
|
|
197
251
|
/**
|
|
198
252
|
* Returns ````true```` if this SceneModel represents a model.
|
|
@@ -202,119 +256,199 @@ export declare class SceneModel extends Component {
|
|
|
202
256
|
*
|
|
203
257
|
* @type {Boolean}
|
|
204
258
|
*/
|
|
205
|
-
|
|
259
|
+
get isModel(): boolean;
|
|
206
260
|
|
|
207
261
|
/**
|
|
208
262
|
* Returns ````false```` to indicate that SceneModel never represents an object.
|
|
209
263
|
*
|
|
210
264
|
* @type {Boolean}
|
|
211
265
|
*/
|
|
212
|
-
|
|
266
|
+
get isObject(): boolean;
|
|
213
267
|
|
|
214
268
|
/**
|
|
215
|
-
*
|
|
269
|
+
* Gets the SceneModel's World-space 3D axis-aligned bounding box.
|
|
216
270
|
*
|
|
217
271
|
* Represented by a six-element Float64Array containing the min/max extents of the
|
|
218
272
|
* axis-aligned volume, ie. ````[xmin, ymin,zmin,xmax,ymax, zmax]````.
|
|
219
273
|
*
|
|
220
274
|
* @type {number[]}
|
|
221
275
|
*/
|
|
222
|
-
|
|
276
|
+
get aabb(): number[];
|
|
223
277
|
|
|
224
278
|
/**
|
|
225
279
|
* The approximate number of triangle primitives in this SceneModel.
|
|
226
280
|
*
|
|
227
281
|
* @type {number}
|
|
228
282
|
*/
|
|
229
|
-
|
|
283
|
+
get numTriangles(): number;
|
|
230
284
|
|
|
231
285
|
/**
|
|
232
286
|
* The approximate number of line primitives in this SceneModel.
|
|
233
287
|
*
|
|
234
288
|
* @type {number}
|
|
235
289
|
*/
|
|
236
|
-
|
|
290
|
+
get numLines(): number;
|
|
237
291
|
|
|
238
292
|
/**
|
|
239
293
|
* The approximate number of point primitives in this SceneModel.
|
|
240
294
|
*
|
|
241
295
|
* @type {number}
|
|
242
296
|
*/
|
|
243
|
-
|
|
297
|
+
get numPoints(): number;
|
|
244
298
|
|
|
245
299
|
/**
|
|
246
|
-
*
|
|
300
|
+
* Gets if any {@link SceneModelEntity}s in this SceneModel are visible.
|
|
247
301
|
*
|
|
248
302
|
* The SceneModel is only rendered when {@link SceneModel.visible} is ````true```` and {@link SceneModel.culled} is ````false````.
|
|
249
303
|
*
|
|
250
304
|
* @type {Boolean}
|
|
251
305
|
*/
|
|
252
|
-
visible: boolean;
|
|
306
|
+
get visible(): boolean;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Sets if this SceneModel is visible.
|
|
310
|
+
*
|
|
311
|
+
* The SceneModel is only rendered when {@link SceneModel.visible} is ````true```` and {@link SceneModel.culled} is ````false````.
|
|
312
|
+
**
|
|
313
|
+
* @type {Boolean}
|
|
314
|
+
*/
|
|
315
|
+
set visible(visible: boolean);
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Gets if any {@link SceneModelEntity}s in this SceneModel are xrayed.
|
|
319
|
+
*
|
|
320
|
+
* @type {Boolean}
|
|
321
|
+
*/
|
|
322
|
+
get xrayed(): boolean
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Sets if all {@link SceneModelEntity}s in this SceneModel are xrayed.
|
|
326
|
+
*
|
|
327
|
+
* @type {Boolean}
|
|
328
|
+
*/
|
|
329
|
+
set xrayed(xrayed: boolean);
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Gets if any {@link SceneModelEntity}s in this SceneModel are highlighted.
|
|
333
|
+
*
|
|
334
|
+
* @type {Boolean}
|
|
335
|
+
*/
|
|
336
|
+
get highlighted(): boolean;
|
|
253
337
|
|
|
254
338
|
/**
|
|
255
|
-
*
|
|
339
|
+
* Sets if all {@link SceneModelEntity}s in this SceneModel are highlighted.
|
|
256
340
|
*
|
|
257
341
|
* @type {Boolean}
|
|
258
342
|
*/
|
|
259
|
-
|
|
343
|
+
set highlighted(highlighted: boolean);
|
|
260
344
|
|
|
261
345
|
/**
|
|
262
|
-
*
|
|
346
|
+
* Gets if any {@link SceneModelEntity}s in this SceneModel are selected.
|
|
263
347
|
*
|
|
264
348
|
* @type {Boolean}
|
|
265
349
|
*/
|
|
266
|
-
|
|
350
|
+
get selected(): boolean;
|
|
267
351
|
|
|
268
352
|
/**
|
|
269
|
-
*
|
|
353
|
+
* Sets if all {@link SceneModelEntity}s in this SceneModel are selected.
|
|
270
354
|
*
|
|
271
355
|
* @type {Boolean}
|
|
272
356
|
*/
|
|
273
|
-
selected: boolean;
|
|
357
|
+
set selected(selected: boolean);
|
|
274
358
|
|
|
275
359
|
/**
|
|
276
|
-
*
|
|
360
|
+
* Gets if any {@link SceneModelEntity}s in this SceneModel have edges emphasised.
|
|
361
|
+
*
|
|
362
|
+
* @type {Boolean}
|
|
363
|
+
*/
|
|
364
|
+
get edges(): boolean;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Sets if all {@link SceneModelEntity}s in this SceneModel have edges emphasised.
|
|
368
|
+
*
|
|
369
|
+
* @type {Boolean}
|
|
370
|
+
*/
|
|
371
|
+
set edges(edges: boolean);
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Gets if this SceneModel is culled from view.
|
|
375
|
+
*
|
|
376
|
+
* The SceneModel is only rendered when {@link SceneModel.visible} is true and {@link SceneModel.culled} is false.
|
|
277
377
|
*
|
|
278
378
|
* @type {Boolean}
|
|
279
379
|
*/
|
|
280
|
-
|
|
380
|
+
get culled(): boolean;
|
|
281
381
|
|
|
282
382
|
/**
|
|
283
|
-
*
|
|
383
|
+
* Sets if this SceneModel is culled from view.
|
|
284
384
|
*
|
|
285
385
|
* The SceneModel is only rendered when {@link SceneModel.visible} is true and {@link SceneModel.culled} is false.
|
|
286
386
|
*
|
|
287
387
|
* @type {Boolean}
|
|
288
388
|
*/
|
|
289
|
-
culled: boolean;
|
|
389
|
+
set culled(culled: boolean);
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Gets if {@link SceneModelEntity}s in this SceneModel are clippable.
|
|
393
|
+
*
|
|
394
|
+
* Clipping is done by the {@link SectionPlane}s in {@link Scene.sectionPlanes}.
|
|
395
|
+
*
|
|
396
|
+
* @type {Boolean}
|
|
397
|
+
*/
|
|
398
|
+
get clippable(): boolean;
|
|
290
399
|
|
|
291
400
|
/**
|
|
292
|
-
*
|
|
401
|
+
* Sets if {@link SceneModelEntity}s in this SceneModel are clippable.
|
|
293
402
|
*
|
|
294
403
|
* Clipping is done by the {@link SectionPlane}s in {@link Scene.sectionPlanes}.
|
|
295
404
|
*
|
|
296
405
|
* @type {Boolean}
|
|
297
406
|
*/
|
|
298
|
-
clippable: boolean;
|
|
407
|
+
set clippable(clippable: boolean);
|
|
299
408
|
|
|
300
409
|
/**
|
|
301
|
-
*
|
|
410
|
+
* Gets if this SceneModel is collidable.
|
|
302
411
|
*
|
|
303
412
|
* @type {Boolean}
|
|
304
413
|
*/
|
|
305
|
-
collidable: boolean;
|
|
414
|
+
get collidable(): boolean;
|
|
306
415
|
|
|
307
416
|
/**
|
|
308
|
-
*
|
|
417
|
+
* Sets if {@link SceneModelEntity}s in this SceneModel are collidable.
|
|
418
|
+
*
|
|
419
|
+
* @type {Boolean}
|
|
420
|
+
*/
|
|
421
|
+
set collidable(collidable: boolean);
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Gets if this SceneModel is pickable.
|
|
309
425
|
*
|
|
310
426
|
* Picking is done via calls to {@link Scene.pick}.
|
|
311
427
|
*
|
|
312
428
|
* @type {Boolean}
|
|
313
429
|
*/
|
|
314
|
-
pickable: boolean;
|
|
430
|
+
get pickable(): boolean;
|
|
315
431
|
|
|
316
432
|
/**
|
|
317
|
-
*
|
|
433
|
+
* Sets if {@link SceneModelEntity}s in this SceneModel are pickable.
|
|
434
|
+
*
|
|
435
|
+
* Picking is done via calls to {@link Scene.pick}.
|
|
436
|
+
*
|
|
437
|
+
* @type {Boolean}
|
|
438
|
+
*/
|
|
439
|
+
set pickable(pickable: boolean);
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Gets the RGB colorize color for this SceneModel.
|
|
443
|
+
*
|
|
444
|
+
* Each element of the color is in range ````[0..1]````.
|
|
445
|
+
*
|
|
446
|
+
* @type {number[]}
|
|
447
|
+
*/
|
|
448
|
+
get colorize(): number[];
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Sets the RGB colorize color for this SceneModel.
|
|
318
452
|
*
|
|
319
453
|
* Multiplies by rendered fragment colors.
|
|
320
454
|
*
|
|
@@ -322,33 +456,56 @@ export declare class SceneModel extends Component {
|
|
|
322
456
|
*
|
|
323
457
|
* @type {number[]}
|
|
324
458
|
*/
|
|
325
|
-
colorize: number[];
|
|
459
|
+
set colorize(colorize: number[]);
|
|
326
460
|
|
|
327
461
|
/**
|
|
328
|
-
*
|
|
462
|
+
* Gets this SceneModel's opacity factor.
|
|
329
463
|
*
|
|
330
464
|
* This is a factor in range ````[0..1]```` which multiplies by the rendered fragment alphas.
|
|
331
465
|
*
|
|
332
466
|
* @type {number}
|
|
333
467
|
*/
|
|
334
|
-
opacity: number;
|
|
468
|
+
get opacity(): number;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Sets the opacity factor for this SceneModel.
|
|
472
|
+
*
|
|
473
|
+
* This is a factor in range ````[0..1]```` which multiplies by the rendered fragment alphas.
|
|
474
|
+
*
|
|
475
|
+
* @type {number}
|
|
476
|
+
*/
|
|
477
|
+
set opacity(opacity: number);
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Gets if this SceneModel casts a shadow.
|
|
481
|
+
*
|
|
482
|
+
* @type {Boolean}
|
|
483
|
+
*/
|
|
484
|
+
get castsShadow(): boolean;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Sets if this SceneModel casts a shadow.
|
|
488
|
+
*
|
|
489
|
+
* @type {Boolean}
|
|
490
|
+
*/
|
|
491
|
+
set castsShadow(castsShadow: boolean);
|
|
335
492
|
|
|
336
493
|
/**
|
|
337
|
-
*
|
|
494
|
+
* Sets if this SceneModel can have shadow cast upon it.
|
|
338
495
|
*
|
|
339
496
|
* @type {Boolean}
|
|
340
497
|
*/
|
|
341
|
-
|
|
498
|
+
get receivesShadow(): boolean;
|
|
342
499
|
|
|
343
500
|
/**
|
|
344
|
-
*
|
|
501
|
+
* Sets if this SceneModel can have shadow cast upon it.
|
|
345
502
|
*
|
|
346
503
|
* @type {Boolean}
|
|
347
504
|
*/
|
|
348
|
-
receivesShadow: boolean;
|
|
505
|
+
set receivesShadow(receivesShadow: boolean);
|
|
349
506
|
|
|
350
507
|
/**
|
|
351
|
-
*
|
|
508
|
+
* Gets if Scalable Ambient Obscurance (SAO) will apply to this SceneModel.
|
|
352
509
|
*
|
|
353
510
|
* SAO is configured by the Scene's {@link SAO} component.
|
|
354
511
|
*
|
|
@@ -356,32 +513,32 @@ export declare class SceneModel extends Component {
|
|
|
356
513
|
*
|
|
357
514
|
* @type {Boolean}
|
|
358
515
|
*/
|
|
359
|
-
|
|
516
|
+
get saoEnabled(): boolean;
|
|
360
517
|
|
|
361
518
|
/**
|
|
362
|
-
*
|
|
519
|
+
* Gets if physically-based rendering (PBR) is enabled for this SceneModel.
|
|
363
520
|
*
|
|
364
521
|
* Only works when {@link Scene.pbrEnabled} is also true.
|
|
365
522
|
*
|
|
366
523
|
* @type {Boolean}
|
|
367
524
|
*/
|
|
368
|
-
|
|
525
|
+
get pbrEnabled(): boolean;
|
|
369
526
|
|
|
370
527
|
/**
|
|
371
|
-
*
|
|
528
|
+
* Gets if color textures are enabled for this SceneModel.
|
|
372
529
|
*
|
|
373
530
|
* Only works when {@link Scene#colorTextureEnabled} is also true.
|
|
374
531
|
*
|
|
375
532
|
* @type {Boolean}
|
|
376
533
|
*/
|
|
377
|
-
|
|
534
|
+
get colorTextureEnabled(): boolean;
|
|
378
535
|
|
|
379
536
|
/**
|
|
380
537
|
* Returns true to indicate that SceneModel is implements {@link Drawable}.
|
|
381
538
|
*
|
|
382
539
|
* @type {Boolean}
|
|
383
540
|
*/
|
|
384
|
-
|
|
541
|
+
get isDrawable(): boolean;
|
|
385
542
|
|
|
386
543
|
/**
|
|
387
544
|
* Configures the appearance of xrayed {@link SceneModelEntity}s within this SceneModel.
|
|
@@ -390,7 +547,7 @@ export declare class SceneModel extends Component {
|
|
|
390
547
|
*
|
|
391
548
|
* @type {EmphasisMaterial}
|
|
392
549
|
*/
|
|
393
|
-
|
|
550
|
+
get xrayMaterial(): EmphasisMaterial;
|
|
394
551
|
|
|
395
552
|
/**
|
|
396
553
|
* Configures the appearance of highlighted {@link SceneModelEntity}s within this SceneModel.
|
|
@@ -399,7 +556,7 @@ export declare class SceneModel extends Component {
|
|
|
399
556
|
*
|
|
400
557
|
* @type {EmphasisMaterial}
|
|
401
558
|
*/
|
|
402
|
-
|
|
559
|
+
get highlightMaterial(): EmphasisMaterial;
|
|
403
560
|
|
|
404
561
|
/**
|
|
405
562
|
* Configures the appearance of selected {@link SceneModelEntity}s within this SceneModel.
|
|
@@ -408,7 +565,7 @@ export declare class SceneModel extends Component {
|
|
|
408
565
|
*
|
|
409
566
|
* @type {EmphasisMaterial}
|
|
410
567
|
*/
|
|
411
|
-
|
|
568
|
+
get selectedMaterial(): EmphasisMaterial;
|
|
412
569
|
|
|
413
570
|
/**
|
|
414
571
|
* Configures the appearance of edges of {@link SceneModelEntity}s within this SceneModel.
|
|
@@ -417,7 +574,7 @@ export declare class SceneModel extends Component {
|
|
|
417
574
|
*
|
|
418
575
|
* @type {EdgeMaterial}
|
|
419
576
|
*/
|
|
420
|
-
|
|
577
|
+
get edgeMaterial(): EdgeMaterial;
|
|
421
578
|
|
|
422
579
|
/**
|
|
423
580
|
*
|