plugins.engines
Class RotateFunction

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

public class RotateFunction
extends ApplyFunction

Author:
vargol 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
RotateFunction()
           
 
Method Summary
 java.lang.String description()
           
 java.lang.String getDetails()
           
 double getNoiseForVertex(int vertex)
           
 double getNoiseForVertex(Vertex vertex)
           
 javax.swing.JPanel getPanel()
           
 void initNoise()
           
 void load(java.io.ObjectInputStream file)
           
 void makePreview()
           
 java.lang.String name()
           
 void paintIcon(java.awt.Graphics2D g2, java.awt.image.ImageObserver component)
           
 void restoreSettings()
           
 Vertex rotateVertex(double x, double y, double z)
           
 void save(java.io.ObjectOutputStream file)
           
 void setFunction(java.lang.String functionName)
           
 void storeSettings()
           
 
Methods inherited from class plugins.engines.ApplyFunction
copy, getNoiseEngine, getNoiseOffset, getNoiseSize, getPreviewNoise, getPreviewVertices, getScaledMovedNoiseForVertex, getTerrain, getVertex, main, setNoiseEngine, setProjection, setTerrain
 
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

RotateFunction

public RotateFunction()
Method Detail

description

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

getDetails

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

getNoiseForVertex

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

getNoiseForVertex

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

getPanel

public javax.swing.JPanel getPanel()
Specified by:
getPanel in interface FunctionEngine
Overrides:
getPanel in class ApplyFunction

initNoise

public void initNoise()
Overrides:
initNoise in class ApplyFunction

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 ApplyFunction
Throws:
java.lang.ClassNotFoundException
java.io.IOException

makePreview

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

name

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

restoreSettings

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

save

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

storeSettings

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

paintIcon

public void paintIcon(java.awt.Graphics2D g2,
                      java.awt.image.ImageObserver component)
Specified by:
paintIcon in interface FunctionEngine
Overrides:
paintIcon in class ApplyFunction

setFunction

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

rotateVertex

public Vertex rotateVertex(double x,
                           double y,
                           double z)