public class SlopeHeightMap extends DelegatingHeightMap
children, constant, constantColour, constantValue
name, seed
Constructor and Description |
---|
SlopeHeightMap(HeightMap baseHeightMap) |
SlopeHeightMap(HeightMap baseHeightMap,
float verticalScaling) |
SlopeHeightMap(HeightMap baseHeightMap,
float verticalScaling,
java.lang.String name) |
SlopeHeightMap(HeightMap baseHeightMap,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
SlopeHeightMap |
clone()
Create a deep copy of the height map.
|
protected double |
doGetHeight(float x,
float y) |
HeightMap |
getBaseHeightMap() |
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.
|
float |
getVerticalScaling() |
void |
setBaseHeightMap(HeightMap baseHeightMap) |
void |
setVerticalScaling(float verticalScaling) |
childrenChanged, determineConstant, doGetColour, 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 SlopeHeightMap(HeightMap baseHeightMap)
public SlopeHeightMap(HeightMap baseHeightMap, java.lang.String name)
public SlopeHeightMap(HeightMap baseHeightMap, float verticalScaling)
public SlopeHeightMap(HeightMap baseHeightMap, float verticalScaling, java.lang.String name)
public HeightMap getBaseHeightMap()
public void setBaseHeightMap(HeightMap baseHeightMap)
public float getVerticalScaling()
public void setVerticalScaling(float verticalScaling)
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.public SlopeHeightMap clone()
HeightMap
clone
in interface HeightMap
clone
in class AbstractHeightMap
public javax.swing.Icon getIcon()
HeightMap
public double[] getRange()
HeightMap
HeightMap.getBaseHeight()
) and the upper bound in
index 1.