Class: Scene

mapray~ Scene

表示するエンティティを管理するクラスである。

インスタンスは mapray.Viewer#scene から得ることができる。


new Scene(viewer, glenv)

モデルシーン

Parameters:
Name Type Description
viewer mapray.Viewer

Viewer インスタンス (未構築)

glenv mapray.GLEnv

GLEnv インスタンス

Source:
See:

Members


<readonly> animation :mapray.animation.BindingBlock

アニメーションパラメータ設定

Type:
Source:

<readonly> num_entities :number

エンティティ数

Type:
  • number
Source:

<readonly> viewer :mapray.Viewer

this を保有する親オブジェクト

Type:
Source:

Methods


addEntity(entity)

エンティティを末尾に追加

Parameters:
Name Type Description
entity mapray.Entity

エンティティ

Source:

clearEntities()

すべてのエンティティを削除

Source:

getEntity(index)

エンティティを取得

Parameters:
Name Type Description
index number

インデックス

Source:
Returns:

エンティティ

Type
mapray.Entity

removeEntity(entity)

エンティティを削除

Parameters:
Name Type Description
entity mapray.Entity

エンティティ

Source: