plugins.engines
Class Craters

java.lang.Object
  extended by Utilities.NoiseEngine
      extended by plugins.engines.CellBasis
          extended by plugins.engines.Craters

public class Craters
extends CellBasis

Author:
burnetd To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments

Nested Class Summary
 
Nested classes/interfaces inherited from class plugins.engines.CellBasis
CellBasis.ChessBoard, CellBasis.DistanceCalculation, CellBasis.Euclidean, CellBasis.Manhattan, CellBasis.QuasiEuclidean, CellBasis.SineSquared
 
Field Summary
 
Fields inherited from class plugins.engines.CellBasis
cellCount, cells, distanceCalc, gridProjection, HASH_MOD_VALUE, metric, panel, preview, previewNoise, rand, seed, xNoise, xOffset, yNoise, yOffset, zNoise, zOffset
 
Fields inherited from class Utilities.NoiseEngine
max, min, noiseArray, scanlineSize, terrain, xGap
 
Constructor Summary
Craters()
           
 
Method Summary
 double[] calculateDistanceArray(Vertex vertex)
           
protected  double FindNeighbours(double x1, double y1, double z1, double xFloor, double yFloor, double zFloor, double[] distances, int index)
           
 java.lang.String getDetails()
           
 double getNoiseForVertex(Vertex vertex)
           
 double getScaledMovedNoiseForVertex(double x, double y, double z)
          Range 0 to 1 spans the width of the preview window.
 void initNoise()
           
 void load(java.io.ObjectInputStream file)
           
 java.lang.String name()
           
 void save(java.io.ObjectOutputStream file)
           
 
Methods inherited from class plugins.engines.CellBasis
calculateSumDistances, copy, description, FindNeighbours, getNoiseForVertex, getNoiseOffset, getNoiseSize, getPanel, getPreviewNoise, getVertex, main, makePreview, paintIcon, Parameters, restoreSettings, setProjection, setTerrain, storeSettings
 
Methods inherited from class Utilities.NoiseEngine
getMax, getMin, getPreviewVertices, getTerrain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Craters

public Craters()
Method Detail

getScaledMovedNoiseForVertex

public double getScaledMovedNoiseForVertex(double x,
                                           double y,
                                           double z)
Description copied from class: NoiseEngine
Range 0 to 1 spans the width of the preview window.

Overrides:
getScaledMovedNoiseForVertex in class CellBasis
Returns:

getNoiseForVertex

public double getNoiseForVertex(Vertex vertex)
Overrides:
getNoiseForVertex in class CellBasis

name

public java.lang.String name()
Overrides:
name in class CellBasis

initNoise

public void initNoise()
Overrides:
initNoise in class CellBasis

calculateDistanceArray

public double[] calculateDistanceArray(Vertex vertex)

FindNeighbours

protected double FindNeighbours(double x1,
                                double y1,
                                double z1,
                                double xFloor,
                                double yFloor,
                                double zFloor,
                                double[] distances,
                                int index)

save

public void save(java.io.ObjectOutputStream file)
          throws java.io.IOException
Overrides:
save in class CellBasis
Throws:
java.io.IOException

load

public void load(java.io.ObjectInputStream file)
          throws java.lang.ClassNotFoundException,
                 java.io.IOException
Overrides:
load in class CellBasis
Throws:
java.lang.ClassNotFoundException
java.io.IOException

getDetails

public java.lang.String getDetails()
Overrides:
getDetails in class CellBasis