plugins.functions
Class FunctionFunction

java.lang.Object
  extended by Utilities.NoiseEngine
      extended by plugins.noiseGen.ManagedNoiseEngine
          extended by plugins.functions.ManagedFunctionEngine
              extended by plugins.functions.FunctionFunction
All Implemented Interfaces:
FunctionEngine

public class FunctionFunction
extends ManagedFunctionEngine


Field Summary
 
Fields inherited from class plugins.functions.ManagedFunctionEngine
noiseEngine
 
Fields inherited from class plugins.noiseGen.ManagedNoiseEngine
depth, height, noiseDescription, noiseName, panel, properties, width, xOffset, yOffset, zOffset
 
Fields inherited from class Utilities.NoiseEngine
gridProjection, max, min, noiseArray, preview, previewNoise, scanlineSize, terrain, xGap
 
Constructor Summary
FunctionFunction()
           
 
Method Summary
 NoiseEngine copy()
           
 javax.swing.JPanel createPanel()
           
 double getNoiseForVertex(double x, double y, double z)
           
 void load(java.io.ObjectInputStream file)
           
 void restoreSettings()
           
 void save(java.io.ObjectOutputStream file)
           
 void setFunction(java.lang.String name)
           
 void storeSettings()
           
 
Methods inherited from class plugins.functions.ManagedFunctionEngine
getDetails, getNoiseEngine, getPreviewVertices, getScaledMovedNoiseForVertex, makePreview, paintIcon, setNoiseEngine
 
Methods inherited from class plugins.noiseGen.ManagedNoiseEngine
description, getNoiseForVertex, getNoiseForVertex, getNoiseOffset, getNoiseSize, getPanel, initNoise, name
 
Methods inherited from class Utilities.NoiseEngine
getMax, getMin, getPreviewNoise, getTerrain, getVertex, setProjection, setTerrain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface plugins.functions.FunctionEngine
description, getPanel, name
 

Constructor Detail

FunctionFunction

public FunctionFunction()
Method Detail

createPanel

public javax.swing.JPanel createPanel()

copy

public NoiseEngine copy()
Overrides:
copy in class ManagedFunctionEngine

setFunction

public void setFunction(java.lang.String name)

getNoiseForVertex

public double getNoiseForVertex(double x,
                                double y,
                                double z)
Overrides:
getNoiseForVertex in class ManagedNoiseEngine

storeSettings

public void storeSettings()
Specified by:
storeSettings in interface FunctionEngine
Overrides:
storeSettings in class ManagedNoiseEngine

restoreSettings

public void restoreSettings()
Specified by:
restoreSettings in interface FunctionEngine
Overrides:
restoreSettings in class ManagedNoiseEngine

save

public void save(java.io.ObjectOutputStream file)
          throws java.io.IOException
Specified by:
save in interface FunctionEngine
Overrides:
save in class ManagedNoiseEngine
Throws:
java.io.IOException

load

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