#include <TeFaultFormation.h>
Inheritance diagram for TeFaultFormation:
This generator implements fault-formation algorithm. This algorithm is designated to generate heightmap values. Generated values are stored in the TeHeightMap object.
The algorithm works as follows:
Public Member Functions | |
TeFaultFormation () | |
virtual void | setDefaults () |
virtual void | updateParams () |
virtual void | generate () |
virtual SbBool | genStep () |
Public Attributes | |
unsigned int | seed |
int | numFaults |
float | minDelta |
float | maxDelta |
Private Attributes | |
unsigned int | _seed |
int | _numFaults |
float | _minDelta |
float | _maxDelta |
|
Constructor. Sets default generator parameters and resets the step counter. |
|
In-One-Step generation. The whole generation will be done in one function call. Calling updateParams() should be the first thing done here. It calls original TeHeightMap::generate_FaultFormation() method. Implements TeGenerator. |
|
One step of the generation algorithm. Calling updateParams() should be the first thing done in the first run. reset() and TeHeightMap::resetFlags() should be called before returning TRUE.
Implements TeGenerator. |
|
Sets default generator parameters.
Implements TeGenerator. |
|
Updates private parameters to fit theirs public images. I call this "delayed setting". It ensures, that correct attributes are used for the current task (the private ones). When the task is done, private attributes are updated to match the public ones and then will be used for the next task. User doesn't need to worry about this, because this method is called internally from generate() and genStep() functions.
Implements TeGenerator. |
|
Private attribute used by generator.
|
|
Private attribute used by generator.
|
|
Private attribute used by generator.
|
|
Private attribute used by generator.
|
|
Maximal value used to modify heightmap values in one iteration. This value will be used in the first iteration. Other values will be interpolated according to minDelta attribute and iteration number. Set this one to modify its private image.
|
|
Minimal value used to modify heightmap values in one iteration. This value will be used in the last iteration. Other values will be interpolated according to maxDelta attribute and iteration number. Set this one to modify its private image.
|
|
Number of faults used to generate the heightmap. Set this one to modify its private image.
|
|
Random number generator seed. Set this one to modify its private image.
|