|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.terrain.heightmap.AbstractHeightMap
com.jme3.terrain.heightmap.FluidSimHeightMap
public class FluidSimHeightMap
FluidSimHeightMap
generates a height map based using some
sort of fluid simulation. The heightmap is treated as a highly viscous and
rubbery fluid enabling to fine tune the generated heightmap using a number
of parameters.
フィールドの概要 |
---|
クラス com.jme3.terrain.heightmap.AbstractHeightMap から継承されたフィールド |
---|
NORMALIZE_RANGE |
コンストラクタの概要 | |
---|---|
FluidSimHeightMap(int size,
int iterations)
Constructor sets the attributes of the hill system and generates the height map. |
|
FluidSimHeightMap(int size,
int iterations,
float minInitialHeight,
float maxInitialHeight,
float viscosity,
float waveSpeed,
float timestep,
float nodeDistance,
long seed)
Constructor sets the attributes of the hill system and generates the height map. |
メソッドの概要 | |
---|---|
boolean |
load()
load populates the height map data. |
void |
setIterations(int iterations)
Sets the number of times the fluid simulation should be iterated over the heightmap. |
void |
setMaxInitialHeight(float maxInitialHeight)
Sets the maximum initial height of the terrain. |
void |
setMinInitialHeight(float minInitialHeight)
Sets the minimum initial height of the terrain. |
void |
setNodeDistance(float nodeDistance)
Sets the distance between each node of the heightmap. |
void |
setTimeStep(float timeStep)
Sets the time-speed between each iteration of the fluid simulation algortithm. |
void |
setViscosity(float viscosity)
Sets the viscosity of the simulated fuid. |
void |
setWaveSpeed(float waveSpeed)
Sets the speed at which the waves trave. |
クラス com.jme3.terrain.heightmap.AbstractHeightMap から継承されたメソッド |
---|
erodeTerrain, findMinMaxHeights, flatten, getHeightMap, getInterpolatedHeight, getScaledHeightAtPoint, getScaledHeightMap, getSize, getTrueHeightAtPoint, normalizeTerrain, save, setHeightAtPoint, setHeightScale, setMagnificationFilter, setSize, smooth, unloadHeightMap |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public FluidSimHeightMap(int size, int iterations, float minInitialHeight, float maxInitialHeight, float viscosity, float waveSpeed, float timestep, float nodeDistance, long seed) throws java.lang.Exception
size
- size the size of the terrain to be generatediterations
- the number of iterations to dominInitialHeight
- the minimum initial height of a terrain valuemaxInitialHeight
- the maximum initial height of a terrain valueviscosity
- the viscosity of the fluidwaveSpeed
- the speed at which the waves traveltimestep
- the constant time-step between each iterationnodeDistance
- the distance between each node of the heightmapseed
- the seed to generate the same heightmap again
JmeException
- if size of the terrain is not greater that zero, or number of
iterations is not greater that zero, or the minimum initial height
is greater than the maximum (or the other way around)
java.lang.Exception
public FluidSimHeightMap(int size, int iterations) throws java.lang.Exception
size
- size the size of the terrain to be generatediterations
- the number of iterations to do
JmeException
- if size of the terrain is not greater that zero, or number of
iterations is not greater that zero
java.lang.Exception
メソッドの詳細 |
---|
public boolean load()
HeightMap
の記述:load
populates the height map data. This is dependent on
the subclass's implementation.
public void setIterations(int iterations) throws java.lang.Exception
iterations
- the number of iterations to do
JmeException
- if iterations if not greater than zero
java.lang.Exception
public void setMaxInitialHeight(float maxInitialHeight)
maxInitialHeight
- the maximum initial height#setMinInitialHeight(int)
public void setMinInitialHeight(float minInitialHeight)
minInitialHeight
- the minimum initial height#setMaxInitialHeight(int)
public void setNodeDistance(float nodeDistance)
nodeDistance
- the distance between each nodepublic void setTimeStep(float timeStep)
timeStep
- the time-step between each iterationpublic void setViscosity(float viscosity)
viscosity
- the viscosity of the fluidpublic void setWaveSpeed(float waveSpeed)
waveSpeed
- the speed at which the waves travel
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |