|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmex.terrain.util.AbstractHeightMap
com.jmex.terrain.util.ImageBasedHeightMap
public class ImageBasedHeightMap
ImageBasedHeightMap
is a height map created from the grayscale
conversion of an image. The image used currently must have an equal height
and width, although future work could scale an incoming image to a specific
height and width.
Field Summary |
---|
Fields inherited from class com.jmex.terrain.util.AbstractHeightMap |
---|
filter, heightData, heightScale, NORMALIZE_RANGE, size |
Constructor Summary | |
---|---|
ImageBasedHeightMap(java.awt.Image colorImage)
Creates a HeightMap from an Image. |
Method Summary | |
---|---|
boolean |
load()
load populates the height map data. |
Methods inherited from class com.jmex.terrain.util.AbstractHeightMap |
---|
erodeTerrain, getHeightMap, getInterpolatedHeight, getScaledHeightAtPoint, getSize, getTrueHeightAtPoint, normalizeTerrain, save, setHeightAtPoint, setHeightScale, setMagnificationFilter, setSize, unloadHeightMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageBasedHeightMap(java.awt.Image colorImage)
colorImage
- Image to map to the height map.Method Detail |
---|
public boolean load()
AbstractHeightMap
load
populates the height map data. This is dependent on
the subclass's implementation.
load
in class AbstractHeightMap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |