|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.terrain.util.AbstractHeightMap
com.jme.terrain.util.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.jme.terrain.util.AbstractHeightMap |
filter, heightData, heightScale, 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.jme.terrain.util.AbstractHeightMap |
erodeTerrain, getHeightMap, getInterpolatedHeight, getScaledHeightAtPoint, getSize, getTrueHeightAtPoint, normalizeTerrain, save, setFilter, setHeightAtPoint, setHeightScale, 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()
AbstractHeightMapload 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 | ||||||||||