Constructor.
Destructor.
Adds a control point to the terrace-forming curve.
Deletes all the control points on the terrace-forming curve.
Determines the array index in which to insert the control point into the internal control point array.
Returns a pointer to the array of control points on the terrace-forming curve.
Returns the number of control points on the terrace-forming curve.
Inserts the control point at the specified position in the internal control point array.
Enables or disables the inversion of the terrace-forming curve between the control points.
Determines if the terrace-forming curve between the control points is inverted.
Creates a number of equally-spaced control points that range from -1 to +1.
Number of control points stored in this noise module.
Determines if the terrace-forming curve between all control points is inverted.
Array that stores the control points.
Destructor.
Returns a reference to a source module connected to this noise module.
Returns the number of source modules required by this noise module.
Generates an output value given the coordinates of the specified input value.
Connects a source module to this noise module.
An array containing the pointers to each source module required by this noise module.
@addtogroup libnoise @{ @addtogroup modules @{ @addtogroup modifiermodules @{ Noise module that maps the output value from a source module onto a terrace-forming curve.
@image html moduleterrace.png
This noise module maps the output value from the source module onto a terrace-forming curve. The start of this curve has a slope of zero; its slope then smoothly increases. This curve also contains <i>control points</i> which resets the slope to zero at that point, producing a "terracing" effect. Refer to the following illustration:
@image html terrace.png
To add a control point to this noise module, call the AddControlPoint() method.
An application must add a minimum of two control points to the curve. If this is not done, the GetValue() method fails. The control points can have any value, although no two control points can have the same value. There is no limit to the number of control points that can be added to the curve.
This noise module clamps the output value from the source module if that value is less than the value of the lowest control point or greater than the value of the highest control point.
This noise module is often used to generate terrain features such as your stereotypical desert canyon.
This noise module requires one source module.