Constructor.
Returns the control module.
Returns the falloff value at the edge transition.
Returns the lower bound of the selection range.
Returns the upper bound of the selection range.
Sets the lower and upper bounds of the selection range.
Sets the control module.
Sets the falloff value at the edge transition.
Edge-falloff value.
Lower bound of the selection range.
Upper bound of the selection range.
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.
Noise module that outputs the value selected from one of two source modules chosen by the output value from a control module.
@image html moduleselect.png
Unlike most other noise modules, the index value assigned to a source module determines its role in the selection operation: - Source module 0 (upper left in the diagram) outputs a value. - Source module 1 (lower left in the diagram) outputs a value. - Source module 2 (bottom of the diagram) is known as the <i>control module</i>. The control module determines the value to select. If the output value from the control module is within a range of values known as the <i>selection range</i>, this noise module outputs the value from the source module with an index value of 1. Otherwise, this noise module outputs the value from the source module with an index value of 0.
To specify the bounds of the selection range, call the SetBounds() method.
An application can pass the control module to the SetControlMod() method instead of the SetSourceMod() method. This may make the application code easier to read.
By default, there is an abrupt transition between the output values from the two source modules at the selection-range boundary. To smooth the transition, pass a non-zero value to the SetEdgeFalloff() method. Higher values result in a smoother transition.
This noise module requires three source modules.