Heightfield 1.0
|
A simple dune model. More...
#include <analyticfield.h>
Public Member Functions | |
AnalyticFieldDune (const double &, const double &, const double &) | |
Create a dune node. More... | |
~AnalyticFieldDune () | |
Empty. | |
double | Height (const Vector2 &) const |
Return the field value at a given position. More... | |
int | Memory () const |
Compute the size of a node. | |
Public Member Functions inherited from AnalyticHeightField | |
AnalyticHeightField () | |
Empty. | |
virtual Vector | Normal (const Vector2 &) const |
Compute the normal to the field. More... | |
HeightField | CreateHeightField (const Box2 &, int, int) const |
Create a HeightField given an input domain. More... | |
double | Slope (const Vector2 &) const |
Compute the slope at a given point. More... | |
double | AverageSlope (const Vector2 &, int=8) const |
Compute the average slope at a given point. More... | |
double | Slope (const Vector2 &, const Vector2 &) const |
Compute the slope in a given direction and at a given point. More... | |
QVector< double > | Cross (const Vector2 &, const Vector2 &, int) const |
Compute the elevation along a segment. More... | |
Protected Attributes | |
double | e |
Noise function. More... | |
double | a |
Amplitude. | |
double | w |
Average wavelength between dunes. | |
Additional Inherited Members | |
Static Public Member Functions inherited from AnalyticHeightField | |
static double | Ridge (const double &, const double &=0.0) |
Ridge function. More... | |
Static Protected Attributes inherited from AnalyticHeightField | |
static double | Epsilon = 1e-6 |
Epsilon value used for gradient computation. More... | |
A simple dune model.
AnalyticFieldDune::AnalyticFieldDune | ( | const double & | e, |
const double & | a, | ||
const double & | w | ||
) |
Create a dune node.
e | Base elevation. |
a | Amplitude. |
w | Wavelength. |
|
virtual |
Return the field value at a given position.
p | Point. |
Reimplemented from AnalyticHeightField.
|
protected |
Noise function.
Base elevation.