Utilities
Class Landscape

java.lang.Object
  extended by Utilities.Landscape
Direct Known Subclasses:
Planet, Torus

public class Landscape
extends java.lang.Object

Author:
David

Field Summary
protected  NoiseEngine noiseEngine
           
protected  Vertex noiseVertex
           
protected  HashBasedPanel panel
           
static int Projection2D
           
static int Projection3D
           
protected  double scale
           
protected  int tile
           
protected  int worldProjection
           
protected  Vertex worldVertex
           
protected  int xMesh
           
protected  double xNoise
           
protected  double xNoiseOffset
           
protected  double yMesh
           
protected  double yNoise
           
protected  double yNoiseOffset
           
protected  int zMesh
           
protected  double zNoise
           
protected  double zNoiseOffset
           
 
Constructor Summary
Landscape()
           
 
Method Summary
protected  void endYafRayScene(java.io.FileWriter out)
           
 Landscape getNewLandscape()
           
 Vertex getNoiseVertex(int index)
           
 HashBasedPanel getPanel()
           
 void getTerrainAsPov(java.io.FileWriter out, Progress progress)
           
 void getTerrainAsWavefront(java.io.FileWriter out, Progress progress)
           
 void getTerrainAsYafray(java.io.FileWriter out, Progress progress)
           
 java.lang.String getType()
           
 int getVertexCount()
           
 Vertex getWorldVertex(int index)
           
 int getXMesh()
           
 int getZMesh()
           
 void setNoiseSpace(NoiseEngine engine)
           
 void setProjection(int projection)
           
 void setTile(boolean setTile)
           
 void setWorldSpace()
           
 void setWorldSpace(double x, double y, double z)
           
protected  void startYafRayScene(java.io.FileWriter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Projection2D

public static final int Projection2D
See Also:
Constant Field Values

Projection3D

public static final int Projection3D
See Also:
Constant Field Values

xNoiseOffset

protected double xNoiseOffset

yNoiseOffset

protected double yNoiseOffset

zNoiseOffset

protected double zNoiseOffset

xNoise

protected double xNoise

yNoise

protected double yNoise

zNoise

protected double zNoise

xMesh

protected int xMesh

yMesh

protected double yMesh

zMesh

protected int zMesh

scale

protected double scale

worldProjection

protected int worldProjection

noiseEngine

protected NoiseEngine noiseEngine

panel

protected HashBasedPanel panel

tile

protected int tile

noiseVertex

protected final Vertex noiseVertex

worldVertex

protected final Vertex worldVertex
Constructor Detail

Landscape

public Landscape()
Method Detail

setWorldSpace

public void setWorldSpace(double x,
                          double y,
                          double z)

setWorldSpace

public void setWorldSpace()

setNoiseSpace

public void setNoiseSpace(NoiseEngine engine)

setProjection

public void setProjection(int projection)

getNoiseVertex

public Vertex getNoiseVertex(int index)

getWorldVertex

public Vertex getWorldVertex(int index)

getTerrainAsPov

public void getTerrainAsPov(java.io.FileWriter out,
                            Progress progress)

getTerrainAsWavefront

public void getTerrainAsWavefront(java.io.FileWriter out,
                                  Progress progress)

getTerrainAsYafray

public void getTerrainAsYafray(java.io.FileWriter out,
                               Progress progress)

getPanel

public HashBasedPanel getPanel()

getType

public java.lang.String getType()

getNewLandscape

public Landscape getNewLandscape()

setTile

public void setTile(boolean setTile)

getXMesh

public int getXMesh()
Returns:

getZMesh

public int getZMesh()
Returns:

startYafRayScene

protected void startYafRayScene(java.io.FileWriter out)
                         throws java.io.IOException
Throws:
java.io.IOException

endYafRayScene

protected void endYafRayScene(java.io.FileWriter out)
                       throws java.io.IOException
Throws:
java.io.IOException

getVertexCount

public int getVertexCount()