Heightfield 1.0
Public Member Functions | Protected Attributes | List of all members
AnalyticFieldDune Class Reference

A simple dune model. More...

#include <analyticfield.h>

Inheritance diagram for AnalyticFieldDune:
AnalyticHeightField AnalyticScalarField2

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...
 

Detailed Description

A simple dune model.

Constructor & Destructor Documentation

◆ AnalyticFieldDune()

AnalyticFieldDune::AnalyticFieldDune ( const double &  e,
const double &  a,
const double &  w 
)

Create a dune node.

Parameters
eBase elevation.
aAmplitude.
wWavelength.

Member Function Documentation

◆ Height()

double AnalyticFieldDune::Height ( const Vector2 p) const
virtual

Return the field value at a given position.

Parameters
pPoint.

Reimplemented from AnalyticHeightField.

Member Data Documentation

◆ e

double AnalyticFieldDune::e
protected

Noise function.

Base elevation.