#include <vtkPerlinNoise.h>
Inheritance diagram for vtkPerlinNoise:
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.
Definition at line 42 of file vtkPerlinNoise.h.
double | EvaluateFunction (double x[3]) |
double | EvaluateFunction (double x, double y, double z) |
static vtkPerlinNoise * | New () |
Public Types | |
typedef vtkImplicitFunction | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | EvaluateGradient (double x[3], double n[3]) |
virtual void | SetFrequency (double, double, double) |
virtual void | SetFrequency (double[3]) |
virtual double * | GetFrequency () |
virtual void | GetFrequency (double data[3]) |
virtual void | SetPhase (double, double, double) |
virtual void | SetPhase (double[3]) |
virtual double * | GetPhase () |
virtual void | GetPhase (double data[3]) |
virtual void | SetAmplitude (double) |
virtual double | GetAmplitude () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkPerlinNoise * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkPerlinNoise () | |
~vtkPerlinNoise () | |
Protected Attributes | |
double | Frequency [3] |
double | Phase [3] |
double | Amplitude |
|
Reimplemented from vtkImplicitFunction. Definition at line 45 of file vtkPerlinNoise.h. |
|
|
|
Definition at line 88 of file vtkPerlinNoise.h. |
|
Reimplemented from vtkImplicitFunction. |
|
Return 1 if this class type 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. Reimplemented from vtkImplicitFunction. |
|
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. Reimplemented from vtkImplicitFunction. |
|
Reimplemented from vtkImplicitFunction. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkImplicitFunction. |
|
Instantiate the class. Reimplemented from vtkObject. |
|
Evaluate PerlinNoise function. Implements vtkImplicitFunction. |
|
Evaluate PerlinNoise function. Reimplemented from vtkImplicitFunction. Definition at line 54 of file vtkPerlinNoise.h. References vtkImplicitFunction::EvaluateFunction(). |
|
Evaluate PerlinNoise gradient. Currently, the method returns a 0 gradient. Implements vtkImplicitFunction. |
|
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. |
|
Evaluate PerlinNoise gradient. Currently, the method returns a 0 gradient. |
|
Evaluate PerlinNoise gradient. Currently, the method returns a 0 gradient. |
|
Evaluate PerlinNoise gradient. Currently, the method returns a 0 gradient. |
|
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. |
|
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. |
|
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. |
|
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. |
|
Set/get the amplitude of the noise function. By default, the amplitude is 1. |
|
Set/get the amplitude of the noise function. By default, the amplitude is 1. |
|
Definition at line 90 of file vtkPerlinNoise.h. |
|
Definition at line 91 of file vtkPerlinNoise.h. |
|
Definition at line 92 of file vtkPerlinNoise.h. |