leiting-bim 2.2.67 → 2.2.68
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.
|
@@ -18,12 +18,20 @@ interface AggregatorOptions {
|
|
|
18
18
|
displayLimit?: number;
|
|
19
19
|
maxLevel?: number;
|
|
20
20
|
debugCurrentGrids?: boolean;
|
|
21
|
+
/** 开启后,在二维调试格网之上绘制点位高度范围对应的三维包围盒。 */
|
|
22
|
+
debugHeightBounds?: boolean;
|
|
21
23
|
clusterTheme?: string;
|
|
22
24
|
pointTheme?: string;
|
|
23
25
|
centralPointMode?: string;
|
|
24
26
|
minGlobalPointCount?: number;
|
|
25
27
|
groupByTheme?: boolean;
|
|
26
28
|
terrainLevelOffset?: number;
|
|
29
|
+
/**
|
|
30
|
+
* 高程包围盒主动进入检测时,在地表可见格网外额外查询的圈数。默认一圈。
|
|
31
|
+
*/
|
|
32
|
+
heightCandidateNeighborRing?: number;
|
|
33
|
+
/** 是否保留由高度包围盒判定为可见的、地表已离屏的格网。默认开启。 */
|
|
34
|
+
heightBoxRetentionEnabled?: boolean;
|
|
27
35
|
}
|
|
28
36
|
interface GridLevel {
|
|
29
37
|
level: number;
|
|
@@ -39,6 +47,7 @@ export declare class BufferedHierarchicalAggregator {
|
|
|
39
47
|
private displayLimit;
|
|
40
48
|
private maxLevel;
|
|
41
49
|
private debugCurrentGrids;
|
|
50
|
+
private debugHeightBounds;
|
|
42
51
|
private levels;
|
|
43
52
|
private points;
|
|
44
53
|
private gridLayers;
|
|
@@ -51,6 +60,13 @@ export declare class BufferedHierarchicalAggregator {
|
|
|
51
60
|
private groupByTheme;
|
|
52
61
|
private tilingScheme;
|
|
53
62
|
private terrainLevelOffset;
|
|
63
|
+
private heightCandidateNeighborRing;
|
|
64
|
+
private heightBoxRetentionEnabled;
|
|
65
|
+
/**
|
|
66
|
+
* 地表瓦片已离开、但高度 OBB 曾进入视野的格网。每次刷新都会重新做 OBB
|
|
67
|
+
* 可见性判断,不能仅依赖“当前地表瓦片外围一圈”的首次发现。
|
|
68
|
+
*/
|
|
69
|
+
private heightRetainedCells;
|
|
54
70
|
private debugTileCoordLayer;
|
|
55
71
|
private levelIndexByTileLevel;
|
|
56
72
|
private _lastTileProvider;
|
|
@@ -65,10 +81,18 @@ export declare class BufferedHierarchicalAggregator {
|
|
|
65
81
|
private defaultMaxLevel;
|
|
66
82
|
private maxRefineLevels;
|
|
67
83
|
constructor(Cesium: any, viewer: any, options: AggregatorOptions);
|
|
84
|
+
/** 临时调试入口:供浏览器控制台直接查看和操纵当前聚合器实例。 */
|
|
85
|
+
private _exposeDebugInstance;
|
|
68
86
|
setGroupByTheme(groupByTheme: boolean, rebuild?: boolean, update?: boolean): void;
|
|
69
87
|
setMinGlobalPointCount(count: number, update?: boolean): void;
|
|
70
88
|
setThreshold(threshold: number, update?: boolean): void;
|
|
71
89
|
setDebugCurrentGrids(debug: boolean, update?: boolean): void;
|
|
90
|
+
/** 开关高度 OBB 调试绘制;开启时会自动保留二维格网作为参照。 */
|
|
91
|
+
setDebugHeightBounds(debug: boolean, update?: boolean): void;
|
|
92
|
+
/** 调整高程包围盒的候选格网扩展圈数;0 表示只保留已渲染格网。 */
|
|
93
|
+
setHeightCandidateNeighborRing(ring: number, update?: boolean): void;
|
|
94
|
+
/** 开关高程格网的三维可见性兜底,便于业务按需验证或降级。 */
|
|
95
|
+
setHeightBoxRetentionEnabled(enabled: boolean, update?: boolean): void;
|
|
72
96
|
private _syncTilingSchemeAndLevels;
|
|
73
97
|
private _createLevels;
|
|
74
98
|
addPoints(points: PointData[]): void;
|
|
@@ -89,6 +113,21 @@ export declare class BufferedHierarchicalAggregator {
|
|
|
89
113
|
private _resolveLevelIndex;
|
|
90
114
|
private _isTerrainEnabled;
|
|
91
115
|
private _getGridRefLevel;
|
|
116
|
+
private _getPointHeight;
|
|
117
|
+
private _getCellHeightRange;
|
|
118
|
+
private _createCameraCullingVolume;
|
|
119
|
+
private _createGlobeOccluder;
|
|
120
|
+
/**
|
|
121
|
+
* 地表瓦片离开渲染集合时,高空/地下点仍可能落在视锥内。使用格网 Rectangle 与
|
|
122
|
+
* [minHeight, maxHeight] 构造 OBB,再同时进行视锥和椭球遮挡判断。
|
|
123
|
+
*/
|
|
124
|
+
private _isHeightBoxVisible;
|
|
125
|
+
private _doCellsOverlap;
|
|
126
|
+
/**
|
|
127
|
+
* 从当前地表可见格网的外围扩展少量候选格网。候选最终仍须通过 OBB 视锥测试,
|
|
128
|
+
* 因此不会因简单邻域扩展而显示真实离屏的点。
|
|
129
|
+
*/
|
|
130
|
+
private _appendHeightVisibleCells;
|
|
92
131
|
private _processTiles;
|
|
93
132
|
private _processCell;
|
|
94
133
|
private _getCellContext;
|
|
@@ -97,6 +136,11 @@ export declare class BufferedHierarchicalAggregator {
|
|
|
97
136
|
private _debugDrawCell;
|
|
98
137
|
refresh(): void;
|
|
99
138
|
private _drawDebugGrid;
|
|
139
|
+
/**
|
|
140
|
+
* 用和可见性判断相同的 Rectangle + [minHeight, maxHeight] 绘制 OBB 线框,
|
|
141
|
+
* 便于确认“地表离屏但高程标记仍可见”的候选格网是否被正确选中。
|
|
142
|
+
*/
|
|
143
|
+
private _drawDebugHeightBounds;
|
|
100
144
|
private _clearDebugGrids;
|
|
101
145
|
private _ensureDebugImageryLayer;
|
|
102
146
|
private _removeDebugImageryLayer;
|