Heightfield 1.0
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.
 
 ~AnalyticFieldDune ()
 Empty.
 
double Value (const Vector2 &) const
 Return the field value at a given position.
 
int Memory () const
 Compute the size of a node.
 
- Public Member Functions inherited from AnalyticHeightField
 AnalyticHeightField ()
 Empty.
 
virtual double Height (const Vector2 &) const
 Compute elevation at a given point.
 
virtual Vector Normal (const Vector2 &) const
 Compute the normal to the field.
 
HeightField CreateHeightField (const Box2 &, int, int) const
 Create a HeightField given an input domain.
 
double Slope (const Vector2 &) const
 Compute the slope at a given point.
 
double AverageSlope (const Vector2 &, int=8) const
 Compute the average slope at a given point.
 
double Slope (const Vector2 &, const Vector2 &) const
 Compute the slope in a given direction and at a given point.
 
QVector< double > Cross (const Vector2 &, const Vector2 &, int) const
 Compute the elevation along a segment.
 

Protected Attributes

double e
 Noise function.
 
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.
 
- Static Protected Attributes inherited from AnalyticHeightField
static double Epsilon = 1e-6
 Epsilon value used for gradient computation.
 

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

◆ Value()

double AnalyticFieldDune::Value ( const Vector2 & p) const
virtual

Return the field value at a given position.

Parameters
pPoint.

Reimplemented from AnalyticScalarField2.

Member Data Documentation

◆ e

double AnalyticFieldDune::e
protected

Noise function.

Base elevation.