Utilities
Class NoiseEngine

java.lang.Object
  extended by Utilities.NoiseEngine
Direct Known Subclasses:
ApplyFunction, BiasedWorley, CacheWorley, CellBasis, ConstantValue, FastWorley, Fault, Gradient, LinearSandDunes, ManagedNoiseEngine, MultiNoise, Perlin, PositionX, PostProcess, RandomSplinePatch, SmoothFault, SphericalGradient, SplineFault, StaticTest

public abstract class NoiseEngine
extends java.lang.Object

Author:
David

Field Summary
protected  int gridProjection
           
protected  double max
           
protected  double min
           
protected  double[] noiseArray
           
protected  javax.swing.JPanel panel
           
protected  java.awt.image.BufferedImage preview
           
protected  double[] previewNoise
           
protected  int scanlineSize
           
protected  Landscape terrain
           
protected  double xGap
           
 
Constructor Summary
NoiseEngine()
           
 
Method Summary
abstract  NoiseEngine copy()
           
abstract  java.lang.String description()
           
abstract  java.lang.String getDetails()
           
 double getMax()
           
 double getMin()
           
abstract  double getNoiseForVertex(int vertex)
           
abstract  double getNoiseForVertex(Vertex vertex)
           
 Vertex getNoiseOffset()
           
 Vertex getNoiseSize()
           
abstract  javax.swing.JPanel getPanel()
           
 double[] getPreviewNoise()
           
 Vertex[] getPreviewVertices()
           
abstract  double getScaledMovedNoiseForVertex(double x, double y, double z)
          Range 0 to 1 spans the width of the preview window.
 Landscape getTerrain()
           
 Vertex getVertex(int index)
           
abstract  void initNoise()
           
abstract  void load(java.io.ObjectInputStream file)
           
abstract  void makePreview()
           
abstract  java.lang.String name()
           
 void paintIcon(java.awt.Graphics2D g2, java.awt.image.ImageObserver noiseComponent)
           
abstract  void restoreSettings()
           
abstract  void save(java.io.ObjectOutputStream file)
           
 void setProjection(int projection)
           
 void setTerrain(Landscape terrain)
           
abstract  void storeSettings()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

preview

protected final java.awt.image.BufferedImage preview

previewNoise

protected final double[] previewNoise

panel

protected javax.swing.JPanel panel

terrain

protected Landscape terrain

max

protected double max

min

protected double min

xGap

protected double xGap

gridProjection

protected int gridProjection

scanlineSize

protected int scanlineSize

noiseArray

protected double[] noiseArray
Constructor Detail

NoiseEngine

public NoiseEngine()
Method Detail

copy

public abstract NoiseEngine copy()
Parameters:
scanlineSize - The scanlineSize to set.

description

public abstract java.lang.String description()

getDetails

public abstract java.lang.String getDetails()

getNoiseForVertex

public abstract double getNoiseForVertex(Vertex vertex)

getScaledMovedNoiseForVertex

public abstract double getScaledMovedNoiseForVertex(double x,
                                                    double y,
                                                    double z)
Range 0 to 1 spans the width of the preview window.

Parameters:
vertex -
Returns:

getNoiseForVertex

public abstract double getNoiseForVertex(int vertex)

getPanel

public abstract javax.swing.JPanel getPanel()

initNoise

public abstract void initNoise()

load

public abstract void load(java.io.ObjectInputStream file)
                   throws java.lang.ClassNotFoundException,
                          java.io.IOException
Throws:
java.lang.ClassNotFoundException
java.io.IOException

makePreview

public abstract void makePreview()

name

public abstract java.lang.String name()

restoreSettings

public abstract void restoreSettings()

save

public abstract void save(java.io.ObjectOutputStream file)
                   throws java.io.IOException
Throws:
java.io.IOException

storeSettings

public abstract void storeSettings()

setTerrain

public void setTerrain(Landscape terrain)

getTerrain

public Landscape getTerrain()

getNoiseSize

public Vertex getNoiseSize()

getNoiseOffset

public Vertex getNoiseOffset()

paintIcon

public void paintIcon(java.awt.Graphics2D g2,
                      java.awt.image.ImageObserver noiseComponent)

getPreviewNoise

public double[] getPreviewNoise()

getPreviewVertices

public Vertex[] getPreviewVertices()

setProjection

public void setProjection(int projection)

getVertex

public Vertex getVertex(int index)

getMax

public double getMax()
Returns:
Returns the max.

getMin

public double getMin()
Returns:
Returns the min.