vtkPerlinNoise Class Reference
#include <vtkPerlinNoise.h>
Inheritance diagram for vtkPerlinNoise:
[legend]Collaboration diagram for vtkPerlinNoise:
[legend]List of all members.
Detailed Description
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.
- See also:
- vtkImplicitFunction
- Created by:
-
- CVS contributions (if > 5%):
- Halle, Michael (69%)
- Schroeder, Will (15%)
- Martin, Ken (11%)
- CVS logs (CVSweb):
.cxx (/Filtering/vtkPerlinNoise
.cxx)
.h (/Filtering/vtkPerlinNoise
.h)
- Examples:
- vtkPerlinNoise (Examples)
- Tests:
- vtkPerlinNoise (Tests)
Definition at line 54 of file vtkPerlinNoise.h.
Member Typedef Documentation
Constructor & Destructor Documentation
vtkPerlinNoise::vtkPerlinNoise |
( |
|
) |
[protected] |
|
Member Function Documentation
virtual const char* vtkPerlinNoise::GetClassName |
( |
|
) |
[virtual] |
|
int vtkPerlinNoise::IsTypeOf |
( |
const char * |
type |
) |
[static] |
|
|
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. |
virtual int vtkPerlinNoise::IsA |
( |
const char * |
type |
) |
[virtual] |
|
|
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. |
void vtkPerlinNoise::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
[virtual] |
|
|
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. |
double vtkPerlinNoise::EvaluateFunction |
( |
double |
x[3] |
) |
[virtual] |
|
double vtkPerlinNoise::EvaluateFunction |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
[inline] |
|
void vtkPerlinNoise::EvaluateGradient |
( |
double |
x[3], |
|
|
double |
n[3] |
|
) |
[virtual] |
|
|
Evaluate PerlinNoise gradient. Currently, the method returns a 0 gradient.
Implements vtkImplicitFunction. |
virtual void vtkPerlinNoise::SetFrequency |
( |
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
[virtual] |
|
|
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. |
virtual void vtkPerlinNoise::SetFrequency |
( |
double |
[3] |
) |
[virtual] |
|
|
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. |
virtual double* vtkPerlinNoise::GetFrequency |
( |
|
) |
[virtual] |
|
|
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. |
virtual void vtkPerlinNoise::GetFrequency |
( |
double |
data[3] |
) |
[virtual] |
|
|
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. |
virtual void vtkPerlinNoise::SetPhase |
( |
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
[virtual] |
|
|
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. |
virtual void vtkPerlinNoise::SetPhase |
( |
double |
[3] |
) |
[virtual] |
|
|
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. |
virtual double* vtkPerlinNoise::GetPhase |
( |
|
) |
[virtual] |
|
|
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. |
virtual void vtkPerlinNoise::GetPhase |
( |
double |
data[3] |
) |
[virtual] |
|
|
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. |
virtual void vtkPerlinNoise::SetAmplitude |
( |
double |
|
) |
[virtual] |
|
|
Set/get the amplitude of the noise function. By default, the amplitude is 1. |
virtual double vtkPerlinNoise::GetAmplitude |
( |
|
) |
[virtual] |
|
|
Set/get the amplitude of the noise function. By default, the amplitude is 1. |
Member Data Documentation
The documentation for this class was generated from the following file: