public final class SumHeightMap extends CombiningHeightMap
heightMap1, heightMap2
children, constant, constantColour, constantValue
name, seed
Constructor and Description |
---|
SumHeightMap(HeightMap heightMap1,
HeightMap heightMap2) |
SumHeightMap(java.lang.String name,
HeightMap heightMap1,
HeightMap heightMap2) |
Modifier and Type | Method and Description |
---|---|
SumHeightMap |
clone()
Create a deep copy of the height map.
|
protected double |
doGetHeight(float x,
float y) |
protected double |
doGetHeight(int x,
int y) |
javax.swing.Icon |
getIcon()
Get a 16x16 icon representing this height map.
|
double[] |
getRange()
Get the range of this height map, i.e.
|
protected java.lang.Object |
readResolve() |
getExtent, getHeightMap1, getHeightMap2, setHeightMap1, setHeightMap2
childrenChanged, determineConstant, doGetColour, getColour, getConstantValue, getHeight, getHeight, getHeightMap, getHeightMap, getHeightMapCount, getIndex, getIndex, getRole, getSeed, isConstant, recalculateConstantValue, replace, replace, setHeightMap, setHeightMap, setSeed
getBaseHeight, getName, getParent, setName
protected double doGetHeight(int x, int y)
doGetHeight
in class DelegatingHeightMap
protected double doGetHeight(float x, float y)
doGetHeight
in class DelegatingHeightMap
public SumHeightMap clone()
HeightMap
clone
in interface HeightMap
clone
in class CombiningHeightMap
public javax.swing.Icon getIcon()
HeightMap
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
readResolve
in class DelegatingHeightMap
java.io.ObjectStreamException
public double[] getRange()
HeightMap
HeightMap.getBaseHeight()
) and the upper bound in
index 1.