plugins.engines
Class Precipiton

java.lang.Object
  extended by Utilities.NoiseEngine
      extended by Utilities.PostProcess
          extended by Utilities.PostProcessHelper
              extended by plugins.engines.Precipiton

public class Precipiton
extends PostProcessHelper

This thing still can't be expected to work...

Author:
su_liam

Nested Class Summary
static class Precipiton.Direction
           
 
Field Summary
 
Fields inherited from class Utilities.PostProcess
noise
 
Fields inherited from class Utilities.NoiseEngine
gridProjection, max, min, noiseArray, preview, previewNoise, scanlineSize, terrain, xGap
 
Constructor Summary
Precipiton()
           
 
Method Summary
 NoiseEngine copy()
           
 java.lang.String description()
           
 java.lang.String getDetails()
           
 double getNoiseForVertex(int vertex)
           
 double getNoiseForVertex(Vertex vertex)
           
 javax.swing.JPanel getPanel()
           
 double getScaledMovedNoiseForVertex(double x, double y, double z)
          Range 0 to 1 spans the width of the preview window.
 void load(java.io.ObjectInputStream file)
           
 void makePreview()
           
 java.lang.String name()
           
 void paintIcon(java.awt.Graphics2D g2, java.awt.image.ImageObserver component)
           
protected  void process(java.nio.DoubleBuffer noiseMap, Progress progress)
           
 void restoreSettings()
           
 void save(java.io.ObjectOutputStream file)
           
 void storeSettings()
           
 
Methods inherited from class Utilities.PostProcessHelper
getIndex, getVertex, move, moveClamped, movePlanet, moveScroll, setScroll
 
Methods inherited from class Utilities.PostProcess
initNoise, populateNoiseMap, processNoiseMap, setNoiseEngine, setTerrain
 
Methods inherited from class Utilities.NoiseEngine
getMax, getMin, getNoiseOffset, getNoiseSize, getPreviewNoise, getPreviewVertices, getTerrain, setProjection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Precipiton

public Precipiton()
Method Detail

process

protected void process(java.nio.DoubleBuffer noiseMap,
                       Progress progress)
Specified by:
process in class PostProcess

copy

public NoiseEngine copy()
Specified by:
copy in class NoiseEngine

description

public java.lang.String description()
Specified by:
description in class NoiseEngine

getDetails

public java.lang.String getDetails()
Specified by:
getDetails in class NoiseEngine

getNoiseForVertex

public double getNoiseForVertex(Vertex vertex)
Specified by:
getNoiseForVertex in class NoiseEngine

getNoiseForVertex

public double getNoiseForVertex(int vertex)
Specified by:
getNoiseForVertex in class NoiseEngine

getPanel

public javax.swing.JPanel getPanel()
Specified by:
getPanel in class NoiseEngine

load

public void load(java.io.ObjectInputStream file)
          throws java.lang.ClassNotFoundException,
                 java.io.IOException
Specified by:
load in class NoiseEngine
Throws:
java.lang.ClassNotFoundException
java.io.IOException

makePreview

public void makePreview()
Specified by:
makePreview in class NoiseEngine

name

public java.lang.String name()
Specified by:
name in class NoiseEngine

restoreSettings

public void restoreSettings()
Specified by:
restoreSettings in class NoiseEngine

save

public void save(java.io.ObjectOutputStream file)
          throws java.io.IOException
Specified by:
save in class NoiseEngine
Throws:
java.io.IOException

storeSettings

public void storeSettings()
Specified by:
storeSettings in class NoiseEngine

paintIcon

public void paintIcon(java.awt.Graphics2D g2,
                      java.awt.image.ImageObserver component)
Overrides:
paintIcon in class NoiseEngine

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.

Specified by:
getScaledMovedNoiseForVertex in class NoiseEngine
Returns: