@pilotdev/pilot-web-3d 26.4.0 → 26.6.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/index.d.ts +265 -265
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/// <reference types="@types/three" />
|
|
2
2
|
declare namespace PilotWeb3D {
|
|
3
|
-
export interface IObject3D<TEventMap extends THREE.Object3DEventMap = THREE.Object3DEventMap> extends THREE.Object3D<TEventMap> {
|
|
4
|
-
}
|
|
5
3
|
export enum UpdateType {
|
|
6
4
|
/**No changes */
|
|
7
5
|
None = 0,
|
|
@@ -24,7 +22,9 @@ export enum UpdateType {
|
|
|
24
22
|
/**Object selection status has been changed */
|
|
25
23
|
Selection = 256,
|
|
26
24
|
/**Object visibility has been changed */
|
|
27
|
-
Visibility = 512
|
|
25
|
+
Visibility = 512,
|
|
26
|
+
/**Object loaded */
|
|
27
|
+
Loaded = 1024
|
|
28
28
|
}
|
|
29
29
|
export const zeroGuid = "00000000-0000-0000-0000-000000000000";
|
|
30
30
|
export class Color {
|
|
@@ -1172,12 +1172,13 @@ export interface ModelElementTree {
|
|
|
1172
1172
|
*/
|
|
1173
1173
|
getChildLevelNumber(element: string | ModelElement): number;
|
|
1174
1174
|
}
|
|
1175
|
+
export interface IObject3D<TEventMap extends THREE.Object3DEventMap = THREE.Object3DEventMap> extends THREE.Object3D<TEventMap> {
|
|
1176
|
+
}
|
|
1175
1177
|
export abstract class BufferedData {
|
|
1176
1178
|
protected static _offsetBegin: number;
|
|
1177
1179
|
protected static _offsetEnd: number;
|
|
1178
1180
|
protected static allocateBuffer(count: number, itemByteLength: number): ArrayBuffer;
|
|
1179
|
-
static
|
|
1180
|
-
static unregisterBufferedObjects: (buffer: ArrayBuffer) => void;
|
|
1181
|
+
static allocatedBytes: number;
|
|
1181
1182
|
protected _view: DataView;
|
|
1182
1183
|
protected _float64: Float64Array;
|
|
1183
1184
|
private get bufferReferencesCount();
|
|
@@ -1350,6 +1351,144 @@ export class TPair<TKey, TValue> {
|
|
|
1350
1351
|
get key(): TKey;
|
|
1351
1352
|
get value(): TValue;
|
|
1352
1353
|
}
|
|
1354
|
+
export const enum BufferedViewObjectFlag {
|
|
1355
|
+
isDisposed = 6,
|
|
1356
|
+
isSelected = 7,
|
|
1357
|
+
isHovered = 8,
|
|
1358
|
+
isVisible = 9,
|
|
1359
|
+
isHidden = 10,
|
|
1360
|
+
isDecomposed = 11,
|
|
1361
|
+
isGhosted = 12,
|
|
1362
|
+
END = 13
|
|
1363
|
+
}
|
|
1364
|
+
export abstract class BufferedViewObject extends BufferedObject3D<ViewObjectEventMap> implements IViewObject {
|
|
1365
|
+
protected static _offsetBegin: number;
|
|
1366
|
+
protected static _offsetOriginalColor: number;
|
|
1367
|
+
protected static _offsetColor: number;
|
|
1368
|
+
protected static _offsetEnd: number;
|
|
1369
|
+
/**
|
|
1370
|
+
* model element entity guid
|
|
1371
|
+
* @default zeroGuid
|
|
1372
|
+
*/
|
|
1373
|
+
readonly entityGuid: string;
|
|
1374
|
+
/**
|
|
1375
|
+
* model part guid
|
|
1376
|
+
* @default zeroGuid
|
|
1377
|
+
*/
|
|
1378
|
+
readonly modelGuid: string;
|
|
1379
|
+
get isViewObject(): boolean;
|
|
1380
|
+
protected get _isDisposed(): boolean;
|
|
1381
|
+
protected set _isDisposed(value: boolean);
|
|
1382
|
+
protected get _isSelected(): boolean;
|
|
1383
|
+
protected set _isSelected(value: boolean);
|
|
1384
|
+
protected get _isHovered(): boolean;
|
|
1385
|
+
protected set _isHovered(value: boolean);
|
|
1386
|
+
protected get _isVisible(): boolean;
|
|
1387
|
+
protected set _isVisible(value: boolean);
|
|
1388
|
+
protected get _isHidden(): boolean;
|
|
1389
|
+
protected set _isHidden(value: boolean);
|
|
1390
|
+
protected get _isDecomposed(): boolean;
|
|
1391
|
+
protected set _isDecomposed(value: boolean);
|
|
1392
|
+
protected get _isGhosted(): boolean;
|
|
1393
|
+
protected set _isGhosted(value: boolean);
|
|
1394
|
+
protected get _originalColor(): Color;
|
|
1395
|
+
protected set _originalColor(value: Color);
|
|
1396
|
+
protected get _color(): Color;
|
|
1397
|
+
protected set _color(value: Color);
|
|
1398
|
+
/**Mesh representation of the object */
|
|
1399
|
+
abstract get mesh(): THREE.Mesh | null;
|
|
1400
|
+
/**Edge representation of the object */
|
|
1401
|
+
abstract get edges(): THREE.LineSegments | null;
|
|
1402
|
+
add(...object: THREE.Object3D[]): this;
|
|
1403
|
+
remove(...object: THREE.Object3D[]): this;
|
|
1404
|
+
updateMatrixWorld(force?: boolean): void;
|
|
1405
|
+
updateWorldMatrix(updateParents: boolean, updateChildren: boolean): void;
|
|
1406
|
+
updateMatrix(): void;
|
|
1407
|
+
applyMatrix4(matrix: THREE.Matrix4): void;
|
|
1408
|
+
/** Decompose object matrix to position, rotation and scale vectors or free these vectors to reduce memory consumption. */
|
|
1409
|
+
setDecomposed(value: boolean): void;
|
|
1410
|
+
/**Check if object is decomposed: have valid position, quaternion, scale, up vectors */
|
|
1411
|
+
isDecomposed(): boolean;
|
|
1412
|
+
/**Set visibility of this object */
|
|
1413
|
+
setVisible(value: boolean): void;
|
|
1414
|
+
/**Get visibility of this object */
|
|
1415
|
+
isVisible(): boolean;
|
|
1416
|
+
/**Hide this object from the scene */
|
|
1417
|
+
setHidden(iVal: boolean): void;
|
|
1418
|
+
/**Check if object is hidden from the scene */
|
|
1419
|
+
isHidden(): boolean;
|
|
1420
|
+
/**Select this object */
|
|
1421
|
+
setSelected(value: boolean): void;
|
|
1422
|
+
/**Check if object is selected */
|
|
1423
|
+
isSelected(): boolean;
|
|
1424
|
+
/**Hover this object */
|
|
1425
|
+
setHovered(value: boolean): void;
|
|
1426
|
+
/**Check if object is hovered */
|
|
1427
|
+
isHovered(): boolean;
|
|
1428
|
+
/**Set color for this object */
|
|
1429
|
+
setColor(color: Color): void;
|
|
1430
|
+
/**Get color of this object */
|
|
1431
|
+
getColor(): Color;
|
|
1432
|
+
/**Check if object is in ghost mode */
|
|
1433
|
+
isGhosted(): boolean;
|
|
1434
|
+
/**Set ghost mode for this object */
|
|
1435
|
+
setGhosted(value: boolean): void;
|
|
1436
|
+
/**Reset color to original color for this object */
|
|
1437
|
+
resetColor(): void;
|
|
1438
|
+
/**Gets original color for this object */
|
|
1439
|
+
getOriginalColor(): Color;
|
|
1440
|
+
/**Dispose geometry */
|
|
1441
|
+
dispose(): void;
|
|
1442
|
+
/**User defined bounding box calculation for this object. Returns an empty THREE.Box3 by default.*/
|
|
1443
|
+
getBoundingBox(): THREE.Box3;
|
|
1444
|
+
/**User defined raycast implementation for this object. Empty method by default. */
|
|
1445
|
+
raycast(iRaycaster: THREE.Raycaster, oIntersects: THREE.Intersection[]): void;
|
|
1446
|
+
/**User defined hover behavior for this object. Empty method by default. */
|
|
1447
|
+
protected setHoveredForObject(value: boolean): void;
|
|
1448
|
+
/**User defined selection behavior for this object. Empty method by default. */
|
|
1449
|
+
protected setSelectedForObject(value: boolean): void;
|
|
1450
|
+
/**User defined hide behavior for this object. Has default implementation used on the MainScene only. */
|
|
1451
|
+
protected setHiddenForObject(iVal: boolean): void;
|
|
1452
|
+
/**User defined visibility behavior for this object. Sets THREE.Object3D visibility by default. */
|
|
1453
|
+
protected setVisibleForObject(value: boolean): void;
|
|
1454
|
+
/**User defined change color behavior for this object. Empty method by default. */
|
|
1455
|
+
protected setColorForObject(color: Color): void;
|
|
1456
|
+
/**User defined ghost mode behavior for this object. Empty method by default. */
|
|
1457
|
+
protected setGhostModeForObject(value: boolean): void;
|
|
1458
|
+
/**Reset color to the original color for this object. */
|
|
1459
|
+
protected resetColorForObject(): void;
|
|
1460
|
+
/**
|
|
1461
|
+
* Notifies subscribers about changes in {@link object}.
|
|
1462
|
+
* @param updateType type of changes to be reported.
|
|
1463
|
+
* @param object (optional) object to be reported about. This object by default.
|
|
1464
|
+
*/
|
|
1465
|
+
protected riseOnUpdated(updateType?: UpdateType, object?: THREE.Object3D): void;
|
|
1466
|
+
getRelativePosition(absPosition: THREE.Vector3): THREE.Vector3;
|
|
1467
|
+
}
|
|
1468
|
+
export class MeshLineGeometry extends THREE.InstancedBufferGeometry {
|
|
1469
|
+
type: string;
|
|
1470
|
+
instanceStart: THREE.BufferAttribute;
|
|
1471
|
+
instanceEnd: THREE.BufferAttribute;
|
|
1472
|
+
instanceColorStart: THREE.BufferAttribute;
|
|
1473
|
+
instanceColorEnd: THREE.BufferAttribute;
|
|
1474
|
+
|
|
1475
|
+
constructor();
|
|
1476
|
+
applyMatrix4(matrix: THREE.Matrix4): this;
|
|
1477
|
+
updatePoint(index: number, point: THREE.Vector3): void;
|
|
1478
|
+
updateColor(index: number, color: Color): void;
|
|
1479
|
+
setPoints(points: THREE.Vector3[]): this;
|
|
1480
|
+
setPositions(array: ArrayLike<number>): this;
|
|
1481
|
+
setColors(array: ArrayLike<number>): this;
|
|
1482
|
+
computeLineDistances(): this;
|
|
1483
|
+
toBufferGeometry(): THREE.BufferGeometry;
|
|
1484
|
+
toWireframeGeometry(): THREE.WireframeGeometry;
|
|
1485
|
+
fromWireframeGeometry(geometry: THREE.WireframeGeometry): this;
|
|
1486
|
+
fromEdgesGeometry(geometry: THREE.EdgesGeometry): this;
|
|
1487
|
+
fromMesh(mesh: THREE.Mesh): this;
|
|
1488
|
+
fromLineSegments(lineSegments: THREE.LineSegments): this;
|
|
1489
|
+
computeBoundingBox(): void;
|
|
1490
|
+
computeBoundingSphere(): void;
|
|
1491
|
+
}
|
|
1353
1492
|
export interface MergeableMaterial extends THREE.ShaderMaterial {
|
|
1354
1493
|
readonly isMergeable?: boolean;
|
|
1355
1494
|
color?: THREE.Color;
|
|
@@ -1364,11 +1503,117 @@ export abstract class CustomMaterial extends THREE.ShaderMaterial {
|
|
|
1364
1503
|
protected refreshUniforms(uniforms: {
|
|
1365
1504
|
[uniform: string]: THREE.IUniform;
|
|
1366
1505
|
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1367
|
-
protected onBeforeCompileCallback(parameters: THREE.WebGLProgramParametersWithUniforms, renderer: THREE.WebGLRenderer): void;
|
|
1368
|
-
protected refreshTransformUniform(map: THREE.Texture, uniform: THREE.IUniform): void;
|
|
1369
1506
|
protected onBeforeRender(renderer: THREE.WebGLRenderer, scene: THREE.Scene, camera: THREE.Camera, geometry: THREE.BufferGeometry, material: THREE.Material, group: THREE.Group): void;
|
|
1370
1507
|
protected materialHash(opacity?: number, color?: THREE.Color): number;
|
|
1371
1508
|
}
|
|
1509
|
+
export interface MeshLineMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
1510
|
+
color?: THREE.ColorRepresentation | undefined;
|
|
1511
|
+
dashed?: boolean | undefined;
|
|
1512
|
+
dashScale?: number | undefined;
|
|
1513
|
+
dashSize?: number | undefined;
|
|
1514
|
+
dashOffset?: number | undefined;
|
|
1515
|
+
gapSize?: number | undefined;
|
|
1516
|
+
worldUnits?: boolean | undefined;
|
|
1517
|
+
}
|
|
1518
|
+
export class MeshLineMaterial extends CustomMaterial {
|
|
1519
|
+
type: string;
|
|
1520
|
+
|
|
1521
|
+
constructor(parameters: MeshLineMaterialParameters);
|
|
1522
|
+
/**
|
|
1523
|
+
* @default false
|
|
1524
|
+
*/
|
|
1525
|
+
get worldUnits(): boolean;
|
|
1526
|
+
set worldUnits(value: boolean);
|
|
1527
|
+
/**
|
|
1528
|
+
* @default false
|
|
1529
|
+
*/
|
|
1530
|
+
get dashed(): boolean;
|
|
1531
|
+
set dashed(value: boolean);
|
|
1532
|
+
get resolution(): THREE.Vector2;
|
|
1533
|
+
/**
|
|
1534
|
+
* @default 0xffffff
|
|
1535
|
+
*/
|
|
1536
|
+
color: THREE.Color;
|
|
1537
|
+
/**
|
|
1538
|
+
* @default 1
|
|
1539
|
+
*/
|
|
1540
|
+
dashScale: number;
|
|
1541
|
+
/**
|
|
1542
|
+
* @default 1
|
|
1543
|
+
*/
|
|
1544
|
+
dashSize: number;
|
|
1545
|
+
/**
|
|
1546
|
+
* @default 0
|
|
1547
|
+
*/
|
|
1548
|
+
dashOffset: number;
|
|
1549
|
+
/**
|
|
1550
|
+
* @default 1
|
|
1551
|
+
*/
|
|
1552
|
+
gapSize: number;
|
|
1553
|
+
copy(source: MeshLineMaterial): this;
|
|
1554
|
+
protected refreshUniforms(uniforms: {
|
|
1555
|
+
[uniform: string]: THREE.IUniform;
|
|
1556
|
+
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1557
|
+
}
|
|
1558
|
+
export class MeshLine extends THREE.Mesh<MeshLineGeometry, MeshLineMaterial, ViewObjectEventMap> {
|
|
1559
|
+
type: string;
|
|
1560
|
+
material: MeshLineMaterial;
|
|
1561
|
+
geometry: MeshLineGeometry;
|
|
1562
|
+
|
|
1563
|
+
constructor(geometry?: MeshLineGeometry, material?: MeshLineMaterial);
|
|
1564
|
+
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
1565
|
+
}
|
|
1566
|
+
export interface MeshPointMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
1567
|
+
sizeAttenuation?: boolean | undefined;
|
|
1568
|
+
discreteClipping?: boolean | undefined;
|
|
1569
|
+
}
|
|
1570
|
+
export class MeshPointMaterial extends CustomMaterial {
|
|
1571
|
+
|
|
1572
|
+
constructor(parameters?: MeshPointMaterialParameters);
|
|
1573
|
+
/**
|
|
1574
|
+
* @default true
|
|
1575
|
+
*/
|
|
1576
|
+
get discreteClipping(): boolean;
|
|
1577
|
+
set discreteClipping(value: boolean);
|
|
1578
|
+
get resolution(): THREE.Vector2;
|
|
1579
|
+
/**
|
|
1580
|
+
* @default true
|
|
1581
|
+
*/
|
|
1582
|
+
sizeAttenuation: boolean;
|
|
1583
|
+
copy(source: MeshPointMaterial): this;
|
|
1584
|
+
protected refreshUniforms(uniforms: {
|
|
1585
|
+
[uniform: string]: THREE.IUniform;
|
|
1586
|
+
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1587
|
+
}
|
|
1588
|
+
export interface MeshPointParamter {
|
|
1589
|
+
point?: THREE.Vector3;
|
|
1590
|
+
color?: Color;
|
|
1591
|
+
size?: number;
|
|
1592
|
+
}
|
|
1593
|
+
export class MeshPoints extends THREE.Mesh<THREE.InstancedBufferGeometry, MeshPointMaterial, ViewObjectEventMap> {
|
|
1594
|
+
geometry: THREE.InstancedBufferGeometry;
|
|
1595
|
+
material: MeshPointMaterial;
|
|
1596
|
+
|
|
1597
|
+
constructor();
|
|
1598
|
+
/**
|
|
1599
|
+
* @default new Color( 1,1,1,1 )
|
|
1600
|
+
*/
|
|
1601
|
+
color: Color;
|
|
1602
|
+
/**
|
|
1603
|
+
* @default 1
|
|
1604
|
+
*/
|
|
1605
|
+
pointSize: number;
|
|
1606
|
+
/**
|
|
1607
|
+
* @default new THREE.Vector3(0, 0, 0)
|
|
1608
|
+
*/
|
|
1609
|
+
point: THREE.Vector3;
|
|
1610
|
+
addPoint(pointParameter?: MeshPointParamter): number;
|
|
1611
|
+
updatePoint(index: number, pointParameter: MeshPointParamter): void;
|
|
1612
|
+
removePoint(index: number): this;
|
|
1613
|
+
updateAttributes(): void;
|
|
1614
|
+
dispose(): void;
|
|
1615
|
+
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
1616
|
+
}
|
|
1372
1617
|
export interface CustomMeshLambertMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
1373
1618
|
instancing?: boolean | undefined;
|
|
1374
1619
|
instancingColor?: boolean | undefined;
|
|
@@ -1432,55 +1677,6 @@ export class CustomLineMaterial extends CustomMaterial implements MergeableMater
|
|
|
1432
1677
|
[uniform: string]: THREE.IUniform;
|
|
1433
1678
|
}, material: CustomLineMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1434
1679
|
}
|
|
1435
|
-
export interface MeshLineMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
1436
|
-
color?: THREE.ColorRepresentation | undefined;
|
|
1437
|
-
dashed?: boolean | undefined;
|
|
1438
|
-
dashScale?: number | undefined;
|
|
1439
|
-
dashSize?: number | undefined;
|
|
1440
|
-
dashOffset?: number | undefined;
|
|
1441
|
-
gapSize?: number | undefined;
|
|
1442
|
-
worldUnits?: boolean | undefined;
|
|
1443
|
-
}
|
|
1444
|
-
export class MeshLineMaterial extends CustomMaterial {
|
|
1445
|
-
type: string;
|
|
1446
|
-
|
|
1447
|
-
constructor(parameters: MeshLineMaterialParameters);
|
|
1448
|
-
/**
|
|
1449
|
-
* @default false
|
|
1450
|
-
*/
|
|
1451
|
-
get worldUnits(): boolean;
|
|
1452
|
-
set worldUnits(value: boolean);
|
|
1453
|
-
/**
|
|
1454
|
-
* @default false
|
|
1455
|
-
*/
|
|
1456
|
-
get dashed(): boolean;
|
|
1457
|
-
set dashed(value: boolean);
|
|
1458
|
-
get resolution(): THREE.Vector2;
|
|
1459
|
-
/**
|
|
1460
|
-
* @default 0xffffff
|
|
1461
|
-
*/
|
|
1462
|
-
color: THREE.Color;
|
|
1463
|
-
/**
|
|
1464
|
-
* @default 1
|
|
1465
|
-
*/
|
|
1466
|
-
dashScale: number;
|
|
1467
|
-
/**
|
|
1468
|
-
* @default 1
|
|
1469
|
-
*/
|
|
1470
|
-
dashSize: number;
|
|
1471
|
-
/**
|
|
1472
|
-
* @default 0
|
|
1473
|
-
*/
|
|
1474
|
-
dashOffset: number;
|
|
1475
|
-
/**
|
|
1476
|
-
* @default 1
|
|
1477
|
-
*/
|
|
1478
|
-
gapSize: number;
|
|
1479
|
-
copy(source: MeshLineMaterial): this;
|
|
1480
|
-
protected refreshUniforms(uniforms: {
|
|
1481
|
-
[uniform: string]: THREE.IUniform;
|
|
1482
|
-
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1483
|
-
}
|
|
1484
1680
|
export interface CustomPointMaterialParameters extends THREE.ShaderMaterialParameters, THREE.PointsMaterialParameters {
|
|
1485
1681
|
}
|
|
1486
1682
|
export class CustomPointMaterial extends CustomMaterial {
|
|
@@ -1544,120 +1740,6 @@ export class CloudPointMaterial extends CustomMaterial {
|
|
|
1544
1740
|
[uniform: string]: THREE.IUniform;
|
|
1545
1741
|
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1546
1742
|
}
|
|
1547
|
-
export const enum BufferedViewObjectFlag {
|
|
1548
|
-
isDisposed = 6,
|
|
1549
|
-
isSelected = 7,
|
|
1550
|
-
isHovered = 8,
|
|
1551
|
-
isVisible = 9,
|
|
1552
|
-
isHidden = 10,
|
|
1553
|
-
isDecomposed = 11,
|
|
1554
|
-
isGhosted = 12,
|
|
1555
|
-
END = 13
|
|
1556
|
-
}
|
|
1557
|
-
export abstract class BufferedViewObject extends BufferedObject3D<ViewObjectEventMap> implements IViewObject {
|
|
1558
|
-
protected static _offsetBegin: number;
|
|
1559
|
-
protected static _offsetOriginalColor: number;
|
|
1560
|
-
protected static _offsetColor: number;
|
|
1561
|
-
protected static _offsetEnd: number;
|
|
1562
|
-
/**
|
|
1563
|
-
* model element entity guid
|
|
1564
|
-
* @default zeroGuid
|
|
1565
|
-
*/
|
|
1566
|
-
readonly entityGuid: string;
|
|
1567
|
-
/**
|
|
1568
|
-
* model part guid
|
|
1569
|
-
* @default zeroGuid
|
|
1570
|
-
*/
|
|
1571
|
-
readonly modelGuid: string;
|
|
1572
|
-
get isViewObject(): boolean;
|
|
1573
|
-
protected get _isDisposed(): boolean;
|
|
1574
|
-
protected set _isDisposed(value: boolean);
|
|
1575
|
-
protected get _isSelected(): boolean;
|
|
1576
|
-
protected set _isSelected(value: boolean);
|
|
1577
|
-
protected get _isHovered(): boolean;
|
|
1578
|
-
protected set _isHovered(value: boolean);
|
|
1579
|
-
protected get _isVisible(): boolean;
|
|
1580
|
-
protected set _isVisible(value: boolean);
|
|
1581
|
-
protected get _isHidden(): boolean;
|
|
1582
|
-
protected set _isHidden(value: boolean);
|
|
1583
|
-
protected get _isDecomposed(): boolean;
|
|
1584
|
-
protected set _isDecomposed(value: boolean);
|
|
1585
|
-
protected get _isGhosted(): boolean;
|
|
1586
|
-
protected set _isGhosted(value: boolean);
|
|
1587
|
-
protected get _originalColor(): Color;
|
|
1588
|
-
protected set _originalColor(value: Color);
|
|
1589
|
-
protected get _color(): Color;
|
|
1590
|
-
protected set _color(value: Color);
|
|
1591
|
-
/**Mesh representation of the object */
|
|
1592
|
-
abstract get mesh(): THREE.Mesh | null;
|
|
1593
|
-
/**Edge representation of the object */
|
|
1594
|
-
abstract get edges(): THREE.LineSegments | null;
|
|
1595
|
-
add(...object: THREE.Object3D[]): this;
|
|
1596
|
-
remove(...object: THREE.Object3D[]): this;
|
|
1597
|
-
updateMatrixWorld(force?: boolean): void;
|
|
1598
|
-
updateWorldMatrix(updateParents: boolean, updateChildren: boolean): void;
|
|
1599
|
-
updateMatrix(): void;
|
|
1600
|
-
applyMatrix4(matrix: THREE.Matrix4): void;
|
|
1601
|
-
/** Decompose object matrix to position, rotation and scale vectors or free these vectors to reduce memory consumption. */
|
|
1602
|
-
setDecomposed(value: boolean): void;
|
|
1603
|
-
/**Check if object is decomposed: have valid position, quaternion, scale, up vectors */
|
|
1604
|
-
isDecomposed(): boolean;
|
|
1605
|
-
/**Set visibility of this object */
|
|
1606
|
-
setVisible(value: boolean): void;
|
|
1607
|
-
/**Get visibility of this object */
|
|
1608
|
-
isVisible(): boolean;
|
|
1609
|
-
/**Hide this object from the scene */
|
|
1610
|
-
setHidden(iVal: boolean): void;
|
|
1611
|
-
/**Check if object is hidden from the scene */
|
|
1612
|
-
isHidden(): boolean;
|
|
1613
|
-
/**Select this object */
|
|
1614
|
-
setSelected(value: boolean): void;
|
|
1615
|
-
/**Check if object is selected */
|
|
1616
|
-
isSelected(): boolean;
|
|
1617
|
-
/**Hover this object */
|
|
1618
|
-
setHovered(value: boolean): void;
|
|
1619
|
-
/**Check if object is hovered */
|
|
1620
|
-
isHovered(): boolean;
|
|
1621
|
-
/**Set color for this object */
|
|
1622
|
-
setColor(color: Color): void;
|
|
1623
|
-
/**Get color of this object */
|
|
1624
|
-
getColor(): Color;
|
|
1625
|
-
/**Check if object is in ghost mode */
|
|
1626
|
-
isGhosted(): boolean;
|
|
1627
|
-
/**Set ghost mode for this object */
|
|
1628
|
-
setGhosted(value: boolean): void;
|
|
1629
|
-
/**Reset color to original color for this object */
|
|
1630
|
-
resetColor(): void;
|
|
1631
|
-
/**Gets original color for this object */
|
|
1632
|
-
getOriginalColor(): Color;
|
|
1633
|
-
/**Dispose geometry */
|
|
1634
|
-
dispose(): void;
|
|
1635
|
-
/**User defined bounding box calculation for this object. Returns an empty THREE.Box3 by default.*/
|
|
1636
|
-
getBoundingBox(): THREE.Box3;
|
|
1637
|
-
/**User defined raycast implementation for this object. Empty method by default. */
|
|
1638
|
-
raycast(iRaycaster: THREE.Raycaster, oIntersects: THREE.Intersection[]): void;
|
|
1639
|
-
/**User defined hover behavior for this object. Empty method by default. */
|
|
1640
|
-
protected setHoveredForObject(value: boolean): void;
|
|
1641
|
-
/**User defined selection behavior for this object. Empty method by default. */
|
|
1642
|
-
protected setSelectedForObject(value: boolean): void;
|
|
1643
|
-
/**User defined hide behavior for this object. Has default implementation used on the MainScene only. */
|
|
1644
|
-
protected setHiddenForObject(iVal: boolean): void;
|
|
1645
|
-
/**User defined visibility behavior for this object. Sets THREE.Object3D visibility by default. */
|
|
1646
|
-
protected setVisibleForObject(value: boolean): void;
|
|
1647
|
-
/**User defined change color behavior for this object. Empty method by default. */
|
|
1648
|
-
protected setColorForObject(color: Color): void;
|
|
1649
|
-
/**User defined ghost mode behavior for this object. Empty method by default. */
|
|
1650
|
-
protected setGhostModeForObject(value: boolean): void;
|
|
1651
|
-
/**Reset color to the original color for this object. */
|
|
1652
|
-
protected resetColorForObject(): void;
|
|
1653
|
-
/**
|
|
1654
|
-
* Notifies subscribers about changes in {@link object}.
|
|
1655
|
-
* @param updateType type of changes to be reported.
|
|
1656
|
-
* @param object (optional) object to be reported about. This object by default.
|
|
1657
|
-
*/
|
|
1658
|
-
protected riseOnUpdated(updateType?: UpdateType, object?: THREE.Object3D): void;
|
|
1659
|
-
getRelativePosition(absPosition: THREE.Vector3): THREE.Vector3;
|
|
1660
|
-
}
|
|
1661
1743
|
export interface IBatchedMaterial extends CustomMaterial {
|
|
1662
1744
|
textureSize: number;
|
|
1663
1745
|
blockPosTexture: THREE.DataTexture;
|
|
@@ -1728,89 +1810,6 @@ export type MemoryInfo = {
|
|
|
1728
1810
|
bBoxes: number;
|
|
1729
1811
|
memory: number;
|
|
1730
1812
|
};
|
|
1731
|
-
export interface MeshPointMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
1732
|
-
sizeAttenuation?: boolean | undefined;
|
|
1733
|
-
discreteClipping?: boolean | undefined;
|
|
1734
|
-
}
|
|
1735
|
-
export class MeshPointMaterial extends CustomMaterial {
|
|
1736
|
-
|
|
1737
|
-
constructor(parameters?: MeshPointMaterialParameters);
|
|
1738
|
-
/**
|
|
1739
|
-
* @default true
|
|
1740
|
-
*/
|
|
1741
|
-
get discreteClipping(): boolean;
|
|
1742
|
-
set discreteClipping(value: boolean);
|
|
1743
|
-
get resolution(): THREE.Vector2;
|
|
1744
|
-
/**
|
|
1745
|
-
* @default true
|
|
1746
|
-
*/
|
|
1747
|
-
sizeAttenuation: boolean;
|
|
1748
|
-
copy(source: MeshPointMaterial): this;
|
|
1749
|
-
protected refreshUniforms(uniforms: {
|
|
1750
|
-
[uniform: string]: THREE.IUniform;
|
|
1751
|
-
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1752
|
-
}
|
|
1753
|
-
export interface MeshPointParamter {
|
|
1754
|
-
point?: THREE.Vector3;
|
|
1755
|
-
color?: Color;
|
|
1756
|
-
size?: number;
|
|
1757
|
-
}
|
|
1758
|
-
export class MeshPoints extends THREE.Mesh<THREE.InstancedBufferGeometry, MeshPointMaterial, ViewObjectEventMap> {
|
|
1759
|
-
geometry: THREE.InstancedBufferGeometry;
|
|
1760
|
-
material: MeshPointMaterial;
|
|
1761
|
-
|
|
1762
|
-
constructor();
|
|
1763
|
-
/**
|
|
1764
|
-
* @default new Color( 1,1,1,1 )
|
|
1765
|
-
*/
|
|
1766
|
-
color: Color;
|
|
1767
|
-
/**
|
|
1768
|
-
* @default 1
|
|
1769
|
-
*/
|
|
1770
|
-
pointSize: number;
|
|
1771
|
-
/**
|
|
1772
|
-
* @default new THREE.Vector3(0, 0, 0)
|
|
1773
|
-
*/
|
|
1774
|
-
point: THREE.Vector3;
|
|
1775
|
-
addPoint(pointParameter?: MeshPointParamter): number;
|
|
1776
|
-
updatePoint(index: number, pointParameter: MeshPointParamter): void;
|
|
1777
|
-
removePoint(index: number): this;
|
|
1778
|
-
updateAttributes(): void;
|
|
1779
|
-
dispose(): void;
|
|
1780
|
-
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
1781
|
-
}
|
|
1782
|
-
export class MeshLineGeometry extends THREE.InstancedBufferGeometry {
|
|
1783
|
-
type: string;
|
|
1784
|
-
instanceStart: THREE.BufferAttribute;
|
|
1785
|
-
instanceEnd: THREE.BufferAttribute;
|
|
1786
|
-
instanceColorStart: THREE.BufferAttribute;
|
|
1787
|
-
instanceColorEnd: THREE.BufferAttribute;
|
|
1788
|
-
|
|
1789
|
-
constructor();
|
|
1790
|
-
applyMatrix4(matrix: THREE.Matrix4): this;
|
|
1791
|
-
updatePoint(index: number, point: THREE.Vector3): void;
|
|
1792
|
-
updateColor(index: number, color: Color): void;
|
|
1793
|
-
setPoints(points: THREE.Vector3[]): this;
|
|
1794
|
-
setPositions(array: ArrayLike<number>): this;
|
|
1795
|
-
setColors(array: ArrayLike<number>): this;
|
|
1796
|
-
computeLineDistances(): this;
|
|
1797
|
-
toBufferGeometry(): THREE.BufferGeometry;
|
|
1798
|
-
toWireframeGeometry(): THREE.WireframeGeometry;
|
|
1799
|
-
fromWireframeGeometry(geometry: THREE.WireframeGeometry): this;
|
|
1800
|
-
fromEdgesGeometry(geometry: THREE.EdgesGeometry): this;
|
|
1801
|
-
fromMesh(mesh: THREE.Mesh): this;
|
|
1802
|
-
fromLineSegments(lineSegments: THREE.LineSegments): this;
|
|
1803
|
-
computeBoundingBox(): void;
|
|
1804
|
-
computeBoundingSphere(): void;
|
|
1805
|
-
}
|
|
1806
|
-
export class MeshLine extends THREE.Mesh<MeshLineGeometry, MeshLineMaterial, ViewObjectEventMap> {
|
|
1807
|
-
type: string;
|
|
1808
|
-
material: MeshLineMaterial;
|
|
1809
|
-
geometry: MeshLineGeometry;
|
|
1810
|
-
|
|
1811
|
-
constructor(geometry?: MeshLineGeometry, material?: MeshLineMaterial);
|
|
1812
|
-
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
1813
|
-
}
|
|
1814
1813
|
export interface SceneCheckOptions {
|
|
1815
1814
|
/** specify whether intersections should be filtered by clippings */
|
|
1816
1815
|
filterByClipping?: boolean;
|
|
@@ -1821,7 +1820,7 @@ export interface ModelCheckOptions extends SceneCheckOptions {
|
|
|
1821
1820
|
/** Scene names to check intersections. */
|
|
1822
1821
|
sceneNames?: string[];
|
|
1823
1822
|
}
|
|
1824
|
-
export interface IIntersectionChecker<TOptions> {
|
|
1823
|
+
export interface IIntersectionChecker<TOptions extends SceneCheckOptions | null> {
|
|
1825
1824
|
/**
|
|
1826
1825
|
* Gets info about used memory
|
|
1827
1826
|
*/
|
|
@@ -1919,6 +1918,9 @@ export interface I3DRenderer {
|
|
|
1919
1918
|
setPixelRatio(value: number): void;
|
|
1920
1919
|
setViewport(x: THREE.Vector4 | number, y?: number, width?: number, height?: number): void;
|
|
1921
1920
|
getViewport(target: THREE.Vector4): THREE.Vector4;
|
|
1921
|
+
getRenderTarget(): THREE.WebGLRenderTarget | THREE.WebGLMultipleRenderTargets | null;
|
|
1922
|
+
setRenderTarget(renderTarget: THREE.WebGLRenderTarget | THREE.WebGLMultipleRenderTargets | null, activeCubeFace?: number, activeMipmapLevel?: number): void;
|
|
1923
|
+
getContext(): WebGLRenderingContext | WebGL2RenderingContext;
|
|
1922
1924
|
dispose(): void;
|
|
1923
1925
|
}
|
|
1924
1926
|
export interface IRenderViewer3D {
|
|
@@ -1989,12 +1991,8 @@ export interface IRenderOperationContext {
|
|
|
1989
1991
|
get elapsedTime(): DOMHighResTimeStamp;
|
|
1990
1992
|
/** Gets the timestamp of the last rendered frame*/
|
|
1991
1993
|
get lastFrameTimestamp(): DOMHighResTimeStamp;
|
|
1992
|
-
/** Gets the timestamp of the last finished render cycle*/
|
|
1993
|
-
get lastRenderCycleTimestamp(): DOMHighResTimeStamp;
|
|
1994
1994
|
/** Indicates that the operation time has exceeded the alloted time */
|
|
1995
1995
|
get isElapsed(): boolean;
|
|
1996
|
-
/**Data shared between operations in a one render cycle */
|
|
1997
|
-
get userData(): Map<string, object>;
|
|
1998
1996
|
}
|
|
1999
1997
|
export enum OperationStatus {
|
|
2000
1998
|
/** Operation planned in the render cycle */
|
|
@@ -2004,13 +2002,15 @@ export enum OperationStatus {
|
|
|
2004
2002
|
/** Operation finished in the render cycle */
|
|
2005
2003
|
Finished = 2
|
|
2006
2004
|
}
|
|
2007
|
-
export enum
|
|
2008
|
-
/** Perform
|
|
2009
|
-
|
|
2010
|
-
/** Perform
|
|
2011
|
-
|
|
2012
|
-
/** Perform
|
|
2013
|
-
|
|
2005
|
+
export enum OperationType {
|
|
2006
|
+
/** Perform the operation once in render cycle*/
|
|
2007
|
+
OnceUpdate = 0,
|
|
2008
|
+
/** Perform the operation once per every render cycle. */
|
|
2009
|
+
EveryUpdate = 1,
|
|
2010
|
+
/** Perform the operation once when the UI requires a new frame.*/
|
|
2011
|
+
OnceFrame = 2,
|
|
2012
|
+
/** Perform the operation every time the UI requires a new frame */
|
|
2013
|
+
EveryFrame = 3
|
|
2014
2014
|
}
|
|
2015
2015
|
export enum OperationPriority {
|
|
2016
2016
|
beforeAll = 0,
|