#include <perlin.h>
Inheritance diagram for NUM::NoiseGenerator_Perlin< T >:
Public Member Functions | |
NoiseGenerator_Perlin (int seed=-1) | |
Create Perlin noise generator; use specified seed if >=0. | |
~NoiseGenerator_Perlin () | |
T | noise1 (T) const |
Calculate one dimensional noise; see base class. | |
T | noise2 (const T *) const |
Calculate two dimensional noise; see base class. | |
T | noise3 (const T *) const |
Calculate three dimensional noise; see base class. | |
Static Public Attributes | |
const int | B = 0x100 |
MUST be a power of 2. | |
const int | NP = 12 |
const int | N = 1<<NP |
N=2^NP. | |
Private Member Functions | |
void | _init () |
initialize the frequency tables | |
NoiseGenerator_Perlin (const NoiseGenerator_Perlin &) | |
Do not use:. | |
void | operator= (const NoiseGenerator_Perlin &) |
Do not use:. | |
Private Attributes | |
int | p [B+B+2] |
T | g1 [B+B+2] |
T | g2 [B+B+2][2] |
T | g3 [B+B+2][3] |
This class is not "C++-safe".
Definition at line 48 of file perlin.h.
|
Do not use:.
|
|
Create Perlin noise generator; use specified seed if >=0.
Definition at line 71 of file perlin.h. References NUM::NoiseGenerator_Perlin< T >::_init(). |
|
|
|
initialize the frequency tables
Definition at line 27 of file perlin.cc. References NUM::NoiseGenerator_Perlin< T >::B, NUM::NoiseGenerator_Perlin< T >::g1, NUM::NoiseGenerator_Perlin< T >::g2, NUM::NoiseGenerator_Perlin< T >::g3, NUM::NoiseGenerator_Perlin< T >::p, and NUM::sqr(). Referenced by NUM::NoiseGenerator_Perlin< T >::NoiseGenerator_Perlin(). |
|
Calculate one dimensional noise; see base class.
Reimplemented from NUM::NoiseGenerator_Base< T >. Definition at line 91 of file perlin.cc. References NUM::NoiseGenerator_Perlin< T >::g1, NUM::lerp(), NUM::NoiseGenerator_Perlin< T >::p, s_curve, and setup. Referenced by NUM::_NoiseGenerator_PerlinInstantiationDummy(). |
|
Calculate two dimensional noise; see base class.
Reimplemented from NUM::NoiseGenerator_Base< T >. Definition at line 109 of file perlin.cc. References at2, NUM::NoiseGenerator_Perlin< T >::B, NUM::NoiseGenerator_Perlin< T >::g2, NUM::lerp(), NUM::NoiseGenerator_Perlin< T >::N, NUM::NoiseGenerator_Perlin< T >::p, and s_curve. Referenced by NUM::_NoiseGenerator_PerlinInstantiationDummy(). |
|
Calculate three dimensional noise; see base class.
Reimplemented from NUM::NoiseGenerator_Base< T >. Definition at line 157 of file perlin.cc. References at3, NUM::NoiseGenerator_Perlin< T >::B, NUM::NoiseGenerator_Perlin< T >::g3, NUM::lerp(), NUM::NoiseGenerator_Perlin< T >::N, NUM::NoiseGenerator_Perlin< T >::p, and s_curve. Referenced by NUM::_NoiseGenerator_PerlinInstantiationDummy(). |
|
Do not use:.
|
|
MUST be a power of 2.
Definition at line 51 of file perlin.h. Referenced by NUM::NoiseGenerator_Perlin< T >::_init(), NUM::NoiseGenerator_Perlin< T >::noise2(), and NUM::NoiseGenerator_Perlin< T >::noise3(). |
|
Definition at line 58 of file perlin.h. Referenced by NUM::NoiseGenerator_Perlin< T >::_init(), and NUM::NoiseGenerator_Perlin< T >::noise1(). |
|
Definition at line 59 of file perlin.h. Referenced by NUM::NoiseGenerator_Perlin< T >::_init(), and NUM::NoiseGenerator_Perlin< T >::noise2(). |
|
Definition at line 60 of file perlin.h. Referenced by NUM::NoiseGenerator_Perlin< T >::_init(), and NUM::NoiseGenerator_Perlin< T >::noise3(). |
|
N=2^NP.
Definition at line 53 of file perlin.h. Referenced by NUM::NoiseGenerator_Perlin< T >::noise2(), and NUM::NoiseGenerator_Perlin< T >::noise3(). |
|
|
|
Definition at line 56 of file perlin.h. Referenced by NUM::NoiseGenerator_Perlin< T >::_init(), NUM::NoiseGenerator_Perlin< T >::noise1(), NUM::NoiseGenerator_Perlin< T >::noise2(), and NUM::NoiseGenerator_Perlin< T >::noise3(). |