|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.ObjectDLAModel
public class DLAModel
DLA フラクタルモデル
フィールドの概要 | |
---|---|
protected int |
bgColor
背景色の RGB 値 |
protected int |
height
画面高さ |
protected int |
movingCount
活動中の粒子の数 |
protected int |
onColor
凝集体表示色の RGB 値 |
protected Particle[] |
p
粒子を格納した配列 |
protected int |
particleCount
粒子の数 |
protected int |
pColor
浮遊粒子表示色の RGB 値 |
protected int[] |
pixel
画面ピクセルを格納した配列 |
protected java.util.Random |
random
乱数ジェネレーター |
protected int |
width
画面幅 |
コンストラクタの概要 | |
---|---|
DLAModel(int width,
int height)
DLA フラクタルモデルを構築する |
|
DLAModel(int width,
int height,
int seed)
DLA フラクタルモデルを構築する |
メソッドの概要 | |
---|---|
protected boolean |
checkAdd(int point,
Particle p)
粒子が凝集するかどうか判定する |
int[] |
getPixel()
画面ピクセルを返す |
private void |
init()
データを初期化する |
boolean |
isFinished()
計算が完了したかどうかを判別する |
void |
next()
次のステップを計算する |
protected int |
point(Particle p)
粒子位置ポインタを返す |
protected void |
randomWalk(Particle p)
ランダムウォークの計算をする |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected int width
protected int height
protected int particleCount
protected int movingCount
protected int[] pixel
protected Particle[] p
protected int bgColor
protected int onColor
protected int pColor
protected java.util.Random random
コンストラクタの詳細 |
---|
public DLAModel(int width, int height)
width
- 画面幅height
- 画面高さpublic DLAModel(int width, int height, int seed)
width
- 画面幅height
- 画面高さseed
- 擬似乱数の種メソッドの詳細 |
---|
private void init()
public int[] getPixel()
public boolean isFinished()
public void next()
protected void randomWalk(Particle p)
p
- ランダムウォークをさせる粒子protected boolean checkAdd(int point, Particle p)
point
- 粒子位置ポインタp
- 判定対象の粒子
protected int point(Particle p)
p
- 粒子
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |