edu.uprm.ece.terrainrenderer
Class TerrainModel
java.lang.Object
edu.uprm.ece.terrainrenderer.TerrainModel
public class TerrainModel
- extends java.lang.Object
A 3D TerrainModel used in the Java OpenGL Demo
- Author:
- Ricardo Veguilla
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
angle
private Angle angle
position
private Vertex position
resolution
private float resolution
scale
private float scale
surfaceList
java.util.List<Surface> surfaceList
recompileList
private boolean recompileList
model
private int model
data
private ModelData data
loader
private TerrainFileLoader loader
polygonType
private int polygonType
TerrainModel
public TerrainModel(java.lang.String filename)
init
public void init(javax.media.opengl.GL gl)
draw
public void draw(javax.media.opengl.GL gl)
loadTerrainFile
private ModelData loadTerrainFile(java.lang.String filename,
TerrainFileLoader loader)
getResolution
public float getResolution()
- Returns:
- Returns the resolution.
setResolution
public void setResolution(float resolution)
- Parameters:
resolution
- The resolution to set.
getScale
public float getScale()
- Returns:
- Returns the scale.
setScale
public void setScale(float scale)
- Parameters:
scale
- The scale to set.
increaseResolution
public void increaseResolution()
decreaseResolution
public void decreaseResolution()
increaseScale
public void increaseScale()
decreaseScale
public void decreaseScale()
rotatePlusX
public void rotatePlusX()
rotatePlusY
public void rotatePlusY()
rotatePlusZ
public void rotatePlusZ()
rotateMinusX
public void rotateMinusX()
rotateMinusY
public void rotateMinusY()
rotateMinusZ
public void rotateMinusZ()
movePlusX
public void movePlusX()
moveMinusX
public void moveMinusX()
movePlusY
public void movePlusY()
moveMinusY
public void moveMinusY()
movePlusZ
public void movePlusZ()
moveMinusZ
public void moveMinusZ()
getPolygonType
public int getPolygonType()
- Returns:
- Returns the polygonType.
setPolygonType
public void setPolygonType(int polygonType)
- Parameters:
polygonType
- The polygonType to set.