VoxelRenderer - hiro-nyon/cesium-heatbox GitHub Wiki
日本語 | English
VoxelRenderer - 3D voxel rendering orchestration class. v0.1.11: Refactored for Single Responsibility Principle (ADR-0009). Now serves as orchestrator delegating specialized tasks to: ColorCalculator, VoxelSelector, AdaptiveController, and GeometryRenderer.
Remove all rendered entities from the scene.
Get selection statistics.
Interpolate color based on density (v0.1.5: color maps supported).
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
| normalizedDensity | number | Normalized density (0-1) / 正規化された密度 (0-1) | ||
| rawValue | number | null | Raw value for diverging scheme / 生値(二極性配色用) |
Render voxel data - Orchestrated rendering process. v0.1.11: Fully orchestrated implementation (ADR-0009 Phase 5): Process Flow:
- GeometryRenderer.clear() - Clear existing entities
- VoxelSelector.selectVoxels() - Apply selection strategy if needed
-
For each voxel: Delegate to
_renderSingleVoxel()for orchestration:
- AdaptiveController - Calculate adaptive parameters
- ColorCalculator - Compute colors based on density
- GeometryRenderer - Create voxel box, outlines, and polylines
- Return count - Number of successfully rendered voxels
| Name | Type | Description |
|---|---|---|
| voxelData | Map | Voxel data map / ボクセルデータマップ |
| bounds | Object | Spatial bounds / 空間境界 |
| grid | Object | Grid configuration / グリッド設定 |
| statistics | Object | Density statistics / 密度統計 |
Toggle visibility.
| Name | Type | Description |
|---|---|---|
| show | boolean | true to show / 表示する場合は true |
3Dボクセル描画オーケストレーションクラス。 各専門クラスに特化タスクを委譲するオーケストレーション役に特化。
描画されたエンティティを全てクリアします。 v0.1.11: GeometryRendererに委譲 (ADR-0009 Phase 4)
選択統計を取得します。
密度に基づいて色を補間(v0.1.5: カラーマップ対応)。 v0.1.11: ColorCalculatorに委譲 (ADR-0009 Phase 1)
| 名前 | 型 | 属性 | 既定値 | 説明 |
|---|---|---|---|---|
| normalizedDensity | number | Normalized density (0-1) / 正規化された密度 (0-1) | ||
| rawValue | number | null | Raw value for diverging scheme / 生値(二極性配色用) |
ボクセルデータ描画 - オーケストレーション化された描画プロセス。 実行フロー:
- GeometryRenderer.clear() - 既存エンティティのクリア
- VoxelSelector.selectVoxels() - 必要に応じて選択戦略適用
-
各ボクセル:
_renderSingleVoxel()へのオーケストレーション委譲:
- AdaptiveController - 適応パラメータ計算
- ColorCalculator - 密度ベース色計算
- GeometryRenderer - ボクセルボックス・枠線・ポリライン作成
- カウント返却 - 正常描画されたボクセル数
| 名前 | 型 | 説明 |
|---|---|---|
| voxelData | Map | Voxel data map / ボクセルデータマップ |
| bounds | Object | Spatial bounds / 空間境界 |
| grid | Object | Grid configuration / グリッド設定 |
| statistics | Object | Density statistics / 密度統計 |
表示/非表示を切り替えます。 v0.1.11: GeometryRendererに委譲 (ADR-0009 Phase 5)
| 名前 | 型 | 説明 |
|---|---|---|
| show | boolean | true to show / 表示する場合は true |