B3dScene¶
特定の B3dProvider インスタンスに対応するシーンデータを表示する。
このクラスのインスタンスは B3dCollection.createScene メソッドにより生成する。
B3dScene.visibility プロパティが false のときは、this のシーンは表示せず、交差は判定されない。
See¶
Hideconstructor¶
Extends¶
Properties¶
DEFAULT_LOD_FACTOR¶
staticreadonlyDEFAULT_LOD_FACTOR:2=2.0
B3dScene.lod_factor の既定値
Accessors¶
atmosphere_lighting_mode¶
getatmosphere_lighting_mode():AtmosphereLightingMode
大気ライティングモード
既定は AtmosphereLightingMode.INHERIT。
See¶
B3dScene.setAtmosphereLightingMode
Returns¶
lod_factor¶
getlod_factor():number
表示詳細度のためのパラメータ
Default Value¶
2.0
See¶
Returns¶
number
provider¶
getprovider():B3dProvider
B3D データプロバイダ
Returns¶
visibility¶
getvisibility():boolean
可視性フラグを取得
Default Value¶
true
See¶
mapray.B3dSceneBase.setVisibility
Returns¶
boolean
Methods¶
addEventListenerForMeshLoaded()¶
addEventListenerForMeshLoaded(
event):void
メッシュが読み込まれた際に呼ばれるイベントを登録
Parameters¶
| Parameter | Type | Description |
|---|---|---|
event |
(meshes, metadata?) => void |
メッシュ配列と任意のメタデータを受け取る関数 |
Returns¶
void
Inherited from¶
B3dSceneBase.addEventListenerForMeshLoaded
addEventListenerForMeshUnloaded()¶
addEventListenerForMeshUnloaded(
event):void
メッシュが削除された際に呼ばれるイベントを登録
Parameters¶
| Parameter | Type | Description |
|---|---|---|
event |
(meshes) => void |
削除されたメッシュ配列を受け取る関数 |
Returns¶
void
Inherited from¶
B3dSceneBase.addEventListenerForMeshUnloaded
addEventListenerForTileLoadFailed()¶
addEventListenerForTileLoadFailed(
event):void
タイルの読み込みに失敗した際に呼ばれるイベントを登録
Parameters¶
| Parameter | Type | Description |
|---|---|---|
event |
(message) => void |
失敗メッセージを受け取る関数 |
Returns¶
void
Inherited from¶
B3dSceneBase.addEventListenerForTileLoadFailed
addEventListenerForUpdateAttributions()¶
addEventListenerForUpdateAttributions(
event):void
表示するAttributionの更新が必要な場合に呼ばれるイベントを登録
発火するのは attribution を持つプロバイダの実装のみ
(mapray.Tiles3DScene)。b3dtile 形式は発火しない。
文字列は HTML エスケープせずそのまま渡す。show_attributions で出典欄に出すときは、HTML として解釈せず文字として出す。
Parameters¶
| Parameter | Type | Description |
|---|---|---|
event |
(attributions) => void |
著作権文字列の配列を受け取る関数 |
Returns¶
void
Inherited from¶
B3dSceneBase.addEventListenerForUpdateAttributions
setAtmosphereLightingMode()¶
setAtmosphereLightingMode(
mode):void
大気ライティングモードを設定
- AtmosphereLightingMode.INHERIT (既定): viewer.atmosphere の全体デフォルトに追随。
- AUTO: エンジンが自動判定する。B3D は常に法線を持つので PHYSICAL に解決される。
- PHYSICAL / SIMPLE / OFF: この scene を強制的にそのモードにする。 マテリアルは実効モード別にキャッシュされ、次フレームから反映される。
Parameters¶
| Parameter | Type | Description |
|---|---|---|
mode |
AtmosphereLightingMode |
ライティングモード |
Returns¶
void
setLodFactor()¶
setLodFactor(
lod_factor):void
表示詳細度のためのパラメータを設定
このパラメータの値は、小さいと表示の詳細度が高くなり、大きいと低くなる。
注意: 現在は実験的なパラメータである。
Parameters¶
| Parameter | Type | Description |
|---|---|---|
lod_factor |
number |
パラメータ値 |
Returns¶
void
Overrides¶
See¶
setVisibility()¶
setVisibility(
visibility):void
可視性フラグを設定
Parameters¶
| Parameter | Type | Description |
|---|---|---|
visibility |
boolean |
可視性フラグ |
Returns¶
void