public class TransformingHeightMap extends DelegatingHeightMap
Modifier and Type | Class and Description |
---|---|
static class |
TransformingHeightMap.TransformingHeightMapBuilder |
children, constant, constantColour, constantValue
name, seed
Constructor and Description |
---|
TransformingHeightMap(java.lang.String name,
HeightMap baseHeightMap,
float scaleX,
float scaleY,
int offsetX,
int offsetY,
float rotation) |
Modifier and Type | Method and Description |
---|---|
static TransformingHeightMap.TransformingHeightMapBuilder |
build() |
int |
doGetColour(int x,
int y) |
double |
doGetHeight(float x,
float y) |
double |
doGetHeight(int x,
int 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.
|
int |
getOffsetX() |
int |
getOffsetY() |
double[] |
getRange()
Get the range of this height map, i.e.
|
float |
getRotation() |
float |
getScaleX() |
float |
getScaleY() |
void |
setBaseHeightMap(HeightMap baseHeightMap) |
childrenChanged, determineConstant, getColour, getConstantValue, getHeight, getHeight, getHeightMap, getHeightMap, getHeightMapCount, getIndex, getIndex, getRole, getSeed, isConstant, readResolve, recalculateConstantValue, replace, replace, setHeightMap, setHeightMap, setSeed
clone, getBaseHeight, getName, getParent, setName
public TransformingHeightMap(java.lang.String name, HeightMap baseHeightMap, float scaleX, float scaleY, int offsetX, int offsetY, float rotation)
public HeightMap getBaseHeightMap()
public void setBaseHeightMap(HeightMap baseHeightMap)
public int getOffsetX()
public int getOffsetY()
public float getScaleX()
public float getScaleY()
public float getRotation()
public double doGetHeight(int x, int y)
doGetHeight
in class DelegatingHeightMap
public double doGetHeight(float x, float y)
doGetHeight
in class DelegatingHeightMap
public int doGetColour(int x, int y)
doGetColour
in class DelegatingHeightMap
public java.awt.Rectangle getExtent()
HeightMap
null
.getExtent
in interface HeightMap
getExtent
in class AbstractHeightMap
null
if it is
unbounded.public javax.swing.Icon getIcon()
HeightMap
public double[] getRange()
HeightMap
HeightMap.getBaseHeight()
) and the upper bound in
index 1.public static TransformingHeightMap.TransformingHeightMapBuilder build()