|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.rico.engine.geometry.AbstractMesh
de.rico.engine.geometry.MeshDL
de.rico.engine.geometry.AbstractGroundMesh
de.rico.engine.geometry.Terrain
public class Terrain
This class represents a world's terrain, that is generated from a height map file.
| Constructor Summary | |
|---|---|
Terrain(java.lang.String pathHeightMap,
java.lang.String texPath,
int resFactor,
boolean smooth)
Creates a new height map of the specified file with the specified height map rendering resolution factor. |
|
Terrain(java.lang.String pathHeightMap,
java.lang.String texPath,
int resFactor,
boolean smooth,
BoundingVolume type)
Creates a new height map of the specified file with the specified height map rendering resolution factor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getFilePath()
Returns the file path of the heightmap file used. |
int |
getResolution()
Returns the resolution factor of the terrain. |
| Methods inherited from class de.rico.engine.geometry.AbstractGroundMesh |
|---|
getLength, getSearchGrid, getWidth, initSearchGrid |
| Methods inherited from class de.rico.engine.geometry.MeshDL |
|---|
addFace, destroy, draw, finishModel, getDisplayListId, getFaces, getFacesTransformed, specializedDraw, update |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Terrain(java.lang.String pathHeightMap,
java.lang.String texPath,
int resFactor,
boolean smooth)
pathHeightMap - path to file that contains the height map datatexPath - path to texture that shall be mapped onto the terrainresFactor - height map rendering resolution factorsmooth - calculate smooth normals? true=yes, false=no
public Terrain(java.lang.String pathHeightMap,
java.lang.String texPath,
int resFactor,
boolean smooth,
BoundingVolume type)
pathHeightMap - path to file that contains the height map datatexPath - path to texture that shall be mapped onto the terrainresFactor - height map rendering resolution factorsmooth - calculate smooth normals? true=yes, false=notype - value from the BoundingVolume enumertion| Method Detail |
|---|
public java.lang.String getFilePath()
public int getResolution()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||