plugins.engines
Class BasedFunction

java.lang.Object
  extended by Utilities.NoiseEngine
      extended by plugins.engines.ApplyFunction
          extended by plugins.engines.BasedFunction
All Implemented Interfaces:
FunctionEngine

public class BasedFunction
extends ApplyFunction

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.ApplyFunction
ApplyFunction.Function
 
Field Summary
 
Fields inherited from class plugins.engines.ApplyFunction
functionName, math, noise, panel
 
Fields inherited from class Utilities.NoiseEngine
gridProjection, max, min, noiseArray, preview, previewNoise, scanlineSize, terrain, xGap
 
Constructor Summary
BasedFunction()
           
 
Method Summary
 java.lang.String getDetails()
           
 double getNoiseForVertex(int vertex)
           
 Vertex getNoiseOffset()
           
 Vertex getNoiseSize()
           
 Vertex[] getPreviewVertices()
           
 Vertex getVertex(int index)
           
 void makePreview()
           
 void setFunction(java.lang.String functionName)
           
 void setTerrain(Landscape terrain)
           
 
Methods inherited from class plugins.engines.ApplyFunction
copy, description, getNoiseEngine, getNoiseForVertex, getPanel, getPreviewNoise, getScaledMovedNoiseForVertex, getTerrain, initNoise, load, main, name, paintIcon, restoreSettings, save, setNoiseEngine, setProjection, storeSettings
 
Methods inherited from class Utilities.NoiseEngine
getMax, getMin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasedFunction

public BasedFunction()
Method Detail

getNoiseForVertex

public double getNoiseForVertex(int vertex)
Overrides:
getNoiseForVertex in class ApplyFunction

getPreviewVertices

public Vertex[] getPreviewVertices()
Overrides:
getPreviewVertices in class ApplyFunction

makePreview

public void makePreview()
Specified by:
makePreview in interface FunctionEngine
Overrides:
makePreview in class ApplyFunction

setFunction

public void setFunction(java.lang.String functionName)
Specified by:
setFunction in interface FunctionEngine
Overrides:
setFunction in class ApplyFunction

getNoiseSize

public Vertex getNoiseSize()
Overrides:
getNoiseSize in class ApplyFunction

getNoiseOffset

public Vertex getNoiseOffset()
Overrides:
getNoiseOffset in class ApplyFunction

getVertex

public Vertex getVertex(int index)
Overrides:
getVertex in class ApplyFunction

setTerrain

public void setTerrain(Landscape terrain)
Overrides:
setTerrain in class ApplyFunction

getDetails

public java.lang.String getDetails()
Specified by:
getDetails in interface FunctionEngine
Overrides:
getDetails in class ApplyFunction