public class DisplacementHeightMap extends DelegatingHeightMap
children, constant, constantColour, constantValue
name, seed
Constructor and Description |
---|
DisplacementHeightMap(HeightMap baseHeightMap,
HeightMap angleMap,
HeightMap distanceMap) |
DisplacementHeightMap(java.lang.String name,
HeightMap baseHeightMap,
HeightMap angleMap,
HeightMap distanceMap) |
Modifier and Type | Method and Description |
---|---|
DisplacementHeightMap |
clone()
Create a deep copy of the height map.
|
protected int |
doGetColour(int x,
int y) |
protected double |
doGetHeight(float x,
float y) |
HeightMap |
getAngleMap() |
HeightMap |
getBaseHeightMap() |
HeightMap |
getDistanceMap() |
java.awt.Rectangle |
getExtent()
Get the extent of the height map, if any.
|
javax.swing.Icon |
getIcon()
Get a 16x16 icon representing this height map.
|
double[] |
getRange()
Get the range of this height map, i.e.
|
void |
setAngleMap(HeightMap angleMap) |
void |
setBaseHeightMap(HeightMap baseHeightMap) |
void |
setDistanceMap(HeightMap distanceMap) |
childrenChanged, determineConstant, doGetHeight, getColour, getConstantValue, getHeight, getHeight, getHeightMap, getHeightMap, getHeightMapCount, getIndex, getIndex, getRole, getSeed, isConstant, readResolve, recalculateConstantValue, replace, replace, setHeightMap, setHeightMap, setSeed
getBaseHeight, getName, getParent, setName
public DisplacementHeightMap(HeightMap baseHeightMap, HeightMap angleMap, HeightMap distanceMap)
public HeightMap getBaseHeightMap()
public HeightMap getAngleMap()
public HeightMap getDistanceMap()
public void setAngleMap(HeightMap angleMap)
public void setBaseHeightMap(HeightMap baseHeightMap)
public void setDistanceMap(HeightMap distanceMap)
protected double doGetHeight(float x, float y)
doGetHeight
in class DelegatingHeightMap
public java.awt.Rectangle getExtent()
HeightMap
null
.getExtent
in interface HeightMap
getExtent
in class AbstractHeightMap
null
if it is
unbounded.protected int doGetColour(int x, int y)
doGetColour
in class DelegatingHeightMap
public javax.swing.Icon getIcon()
HeightMap
public double[] getRange()
HeightMap
HeightMap.getBaseHeight()
) and the upper bound in
index 1.public DisplacementHeightMap clone()
HeightMap
clone
in interface HeightMap
clone
in class AbstractHeightMap