Utilities
Class NoiseEngine
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
NoiseEngine
public NoiseEngine()
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.