GeometryRenderer - hiro-nyon/cesium-heatbox GitHub Wiki

Class: GeometryRenderer(GeometryRendererクラス)

日本語 | English

English

GeometryRenderer - Creates Cesium entities consumed by VoxelRenderer. Responsibilities: ADR-0009 Phase 4

Constructor

new GeometryRenderer(viewer, options)

Methods

clear()

Clear all managed entities

createEdgePolylines(config) → {Array.<Cesium.Entity>}

Create edge polylines for thick outline emulation

Name Type Description
config Object Edge polyline configuration / エッジポリライン設定 Properties: centerLon, centerLat, centerAlt (number) / 中心座標、 cellSizeX, cellSizeY (number) / フットプリント寸法、 boxHeight (number) / ボックス高さ、 outlineColor (Cesium.Color) / 枠線色、 outlineWidth (number) / 枠線太さ、 outlineOpacity (number) / 枠線透明度、 voxelKey (string) / ボクセルキー

createInsetOutline(config) → {Cesium.Entity}

Create inset outline for a voxel

Name Type Description
config Object Inset outline configuration / インセット枠線設定 Properties: centerLon, centerLat, centerAlt (number) / 中心座標、 baseSizeX, baseSizeY, baseSizeZ (number) / ベース寸法、 outlineColor (Cesium.Color) / 枠線色、 outlineWidth (number) / 枠線太さ、 voxelKey (string) / ボクセルキー、 insetAmount (number, optional) / カスタムインセット量

createThickOutlineFrames(config) → {Array.<Cesium.Entity>}

Create thick outline frame structures

Name Type Description
config Object Frame configuration / フレーム設定 Properties: centerLon, centerLat, centerAlt (number) / 中心座標、 outerX, outerY, outerZ (number) / 外枠寸法、 innerX, innerY, innerZ (number) / 内枠寸法、 frameColor (Cesium.Color) / フレーム色、 voxelKey (string) / ボクセルキー

createVoxelBox(config) → {Cesium.Entity}

Create a voxel box entity

Name Type Description
config Object Voxel configuration / ボクセル設定 Properties: centerLon, centerLat, centerAlt (number) / 中心座標、 cellSizeX, cellSizeY (number) / フットプリント寸法、 boxHeight (number) / ボックス高さ、 color (Cesium.Color) / ボックス色、 opacity (number) / ボックス透明度、 shouldShowOutline (boolean) / 枠線表示、 outlineColor (Cesium.Color) / 枠線色、 outlineWidth (number) / 枠線太さ、 voxelInfo (Object) / ボクセルデータ、 voxelKey (string) / ボクセルキー、 emulateThick (boolean, optional) / 太線エミュレーション使用

createVoxelDescription(voxelInfo, voxelKey) → {string}

Create voxel description HTML

Name Type Description
voxelInfo Object Voxel information / ボクセル情報
voxelKey string Voxel key / ボクセルキー

getConfiguration() → {Object}

Get current configuration

getEntityCount() → {number}

Get entity count

renderBoundingBox(bounds)

Render a debug bounding box for given bounds

Name Type Description
bounds Object {minLon, maxLon, minLat, maxLat, minAlt, maxAlt}

shouldApplyInsetOutline(isTopN) → {boolean}

Check if inset outline should be applied

Name Type Description
isTopN boolean Is TopN voxel / TopNボクセルかどうか

updateOptions(newOptions)

Update rendering options

Name Type Description
newOptions Object New options to merge / マージする新オプション

日本語

ジオメトリレンダラー - VoxelRenderer が利用する Cesium エンティティを生成・管理

  • ボクセルボックス描画 (Voxel box rendering)
  • インセット枠線描画 (Inset outline rendering)
  • エッジポリライン描画 (Edge polyline rendering for emulation)
  • エンティティライフサイクル管理 (Entity lifecycle management)

コンストラクタ

new GeometryRenderer(viewer, options)

メソッド

clear()

管理対象の全エンティティをクリア

createEdgePolylines(config) → {Array.<Cesium.Entity>}

太線エミュレーション用のエッジポリライン作成

名前 説明
config Object Edge polyline configuration / エッジポリライン設定 Properties: centerLon, centerLat, centerAlt (number) / 中心座標、 cellSizeX, cellSizeY (number) / フットプリント寸法、 boxHeight (number) / ボックス高さ、 outlineColor (Cesium.Color) / 枠線色、 outlineWidth (number) / 枠線太さ、 outlineOpacity (number) / 枠線透明度、 voxelKey (string) / ボクセルキー

createInsetOutline(config) → {Cesium.Entity}

ボクセルのインセット枠線を作成

名前 説明
config Object Inset outline configuration / インセット枠線設定 Properties: centerLon, centerLat, centerAlt (number) / 中心座標、 baseSizeX, baseSizeY, baseSizeZ (number) / ベース寸法、 outlineColor (Cesium.Color) / 枠線色、 outlineWidth (number) / 枠線太さ、 voxelKey (string) / ボクセルキー、 insetAmount (number, optional) / カスタムインセット量

createThickOutlineFrames(config) → {Array.<Cesium.Entity>}

枠線の厚み部分を視覚化するフレーム構造を作成

名前 説明
config Object Frame configuration / フレーム設定 Properties: centerLon, centerLat, centerAlt (number) / 中心座標、 outerX, outerY, outerZ (number) / 外枠寸法、 innerX, innerY, innerZ (number) / 内枠寸法、 frameColor (Cesium.Color) / フレーム色、 voxelKey (string) / ボクセルキー

createVoxelBox(config) → {Cesium.Entity}

ボクセルボックスエンティティを作成

名前 説明
config Object Voxel configuration / ボクセル設定 Properties: centerLon, centerLat, centerAlt (number) / 中心座標、 cellSizeX, cellSizeY (number) / フットプリント寸法、 boxHeight (number) / ボックス高さ、 color (Cesium.Color) / ボックス色、 opacity (number) / ボックス透明度、 shouldShowOutline (boolean) / 枠線表示、 outlineColor (Cesium.Color) / 枠線色、 outlineWidth (number) / 枠線太さ、 voxelInfo (Object) / ボクセルデータ、 voxelKey (string) / ボクセルキー、 emulateThick (boolean, optional) / 太線エミュレーション使用

createVoxelDescription(voxelInfo, voxelKey) → {string}

ボクセルの説明HTMLを生成

名前 説明
voxelInfo Object Voxel information / ボクセル情報
voxelKey string Voxel key / ボクセルキー

getConfiguration() → {Object}

現在の設定を取得

getEntityCount() → {number}

エンティティ数を取得

renderBoundingBox(bounds)

指定された境界のデバッグ用バウンディングボックスを描画

名前 説明
bounds Object {minLon, maxLon, minLat, maxLat, minAlt, maxAlt}

shouldApplyInsetOutline(isTopN) → {boolean}

インセット枠線を適用すべきかどうかを判定

名前 説明
isTopN boolean Is TopN voxel / TopNボクセルかどうか

updateOptions(newOptions)

描画オプションを更新

名前 説明
newOptions Object New options to merge / マージする新オプション