vtk
Class vtkPerlinNoise

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkImplicitFunction
              extended byvtk.vtkPerlinNoise
All Implemented Interfaces:
java.io.Serializable

public class vtkPerlinNoise
extends vtkImplicitFunction
implements java.io.Serializable

vtkPerlinNoise - an implicit function that implements Perlin noise. vtkPerlinNoise computes a Perlin noise field as an implicit function. vtkPerlinNoise is a concrete implementation of vtkImplicitFunction. Perlin noise, originally described by Ken Perlin, is a non-periodic and continuous noise function useful for modeling real-world objects. The amplitude and frequency of the noise pattern are adjustable. This implementation of Perlin noise is derived closely from Greg Ward's version in Graphics Gems II. JavaBean wrapper for vtkPerlinNoise object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkPerlinNoise()
           
protected vtkPerlinNoise(int dmy)
           
 
Method Summary
 double evaluateFunction(double[] id0)
          Evaluate PerlinNoise function.
 double evaluateFunction(double id0, double id1, double id2)
          Evaluate PerlinNoise function.
 void evaluateGradient(double[] id0, double[] id1)
          Evaluate PerlinNoise gradient.
 double getAmplitude()
          Set/get the amplitude of the noise function.
 java.lang.String getClassName()
          Return the class name as a string.
 double[] getFrequency()
          Set/get the frequency, or physical scale, of the noise function (higher is finer scale).
 double[] getPhase()
          Set/get the phase of the noise function.
 vtkPerlinNoise getThisPerlinNoise()
           
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void setAmplitude(double id0)
          Set/get the amplitude of the noise function.
 void setFrequency(double[] id0)
          Set/get the frequency, or physical scale, of the noise function (higher is finer scale).
 void setFrequency(double id0, double id1, double id2)
          Set/get the frequency, or physical scale, of the noise function (higher is finer scale).
 void setPhase(double[] id0)
          Set/get the phase of the noise function.
 void setPhase(double id0, double id1, double id2)
          Set/get the phase of the noise function.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkImplicitFunction
functionGradient, functionGradient, functionGradient, functionValue, functionValue, getMTime, getThisImplicitFunction, getTransform, setTransform
 
Methods inherited from class vtk.vtkObject
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, getThisObject, globalWarningDisplayOff, globalWarningDisplayOn, hasObserver, hasObserver, invokeEvent, invokeEvent, modified, Print, PrintRevisions, register, removeObserver, removeObservers, removeObservers, setDebug, setGlobalWarningDisplay, unRegister
 
Methods inherited from class vtk.vtkObjectBase
addPropertyChangeListener, finalize, getReferenceCount, getThisObjectBase, isTypeOf, removePropertyChangeListener, setReferenceCount, VTKDelete
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changes

protected java.beans.PropertyChangeSupport changes
Constructor Detail

vtkPerlinNoise

public vtkPerlinNoise()

vtkPerlinNoise

protected vtkPerlinNoise(int dmy)
Method Detail

getThisPerlinNoise

public vtkPerlinNoise getThisPerlinNoise()

getClassName

public java.lang.String getClassName()
Description copied from class: vtkObjectBase
Return the class name as a string. This method is defined in all subclasses of vtkObjectBase with the vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
getClassName in class vtkImplicitFunction

isA

public int isA(java.lang.String id0)
Description copied from class: vtkObjectBase
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
isA in class vtkImplicitFunction

evaluateFunction

public double evaluateFunction(double[] id0)
Evaluate PerlinNoise function.

Overrides:
evaluateFunction in class vtkImplicitFunction

evaluateFunction

public double evaluateFunction(double id0,
                               double id1,
                               double id2)
Evaluate PerlinNoise function.

Overrides:
evaluateFunction in class vtkImplicitFunction

evaluateGradient

public void evaluateGradient(double[] id0,
                             double[] id1)
Evaluate PerlinNoise gradient. Currently, the method returns a 0 gradient.

Overrides:
evaluateGradient in class vtkImplicitFunction

setFrequency

public void setFrequency(double id0,
                         double id1,
                         double id2)
Set/get the frequency, or physical scale, of the noise function (higher is finer scale). The frequency can be adjusted per axis, or the same for all axes.


setFrequency

public void setFrequency(double[] id0)
Set/get the frequency, or physical scale, of the noise function (higher is finer scale). The frequency can be adjusted per axis, or the same for all axes.


getFrequency

public double[] getFrequency()
Set/get the frequency, or physical scale, of the noise function (higher is finer scale). The frequency can be adjusted per axis, or the same for all axes.


setPhase

public void setPhase(double id0,
                     double id1,
                     double id2)
Set/get the phase of the noise function. This parameter can be used to shift the noise function within space (perhaps to avoid a beat with a noise pattern at another scale). Phase tends to repeat about every unit, so a phase of 0.5 is a half-cycle shift.


setPhase

public void setPhase(double[] id0)
Set/get the phase of the noise function. This parameter can be used to shift the noise function within space (perhaps to avoid a beat with a noise pattern at another scale). Phase tends to repeat about every unit, so a phase of 0.5 is a half-cycle shift.


getPhase

public double[] getPhase()
Set/get the phase of the noise function. This parameter can be used to shift the noise function within space (perhaps to avoid a beat with a noise pattern at another scale). Phase tends to repeat about every unit, so a phase of 0.5 is a half-cycle shift.


setAmplitude

public void setAmplitude(double id0)
Set/get the amplitude of the noise function. By default, the amplitude is 1.


getAmplitude

public double getAmplitude()
Set/get the amplitude of the noise function. By default, the amplitude is 1.


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkImplicitFunction


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.