Terraformer Class Reference#include <terraformer.h>
Inheritance diagram for Terraformer:
[legend]List of all members.
|
Public Types |
typedef SimObject | Parent |
| OperationAdd |
| OperationSubtract |
| OperationMax |
| OperationMin |
| OperationMultiply |
enum | BlendOperation {
OperationAdd,
OperationSubtract,
OperationMax,
OperationMin,
OperationMultiply
} |
Public Member Functions |
| Terraformer () |
| ~Terraformer () |
| DECLARE_CONOBJECT (Terraformer) |
bool | onAdd () |
| Called when the object is added to the sim.
|
void | setSize (U32 n) |
void | setTerrainInfo (U32 blockSize, F32 tileSize, F32 minHeight, F32 heightRange, F32 worldWater) |
void | setShift (const Point2F &shift) |
void | clearRegister (U32 r) |
GBitmap * | getScaledGreyscale (U32 r) |
GBitmap * | getScaled (U32 r) |
GBitmap * | getGreyscale (U32 r) |
bool | saveGreyscale (U32 r, const char *filename) |
bool | loadGreyscale (U32 r, const char *filename) |
bool | loadGreyscale (U32 r, GBitmap *bmp) |
bool | saveHeightField (U32 r, const char *filename) |
bool | setTerrain (U32 r) |
bool | setHeightmap (U32 r, U16 *hmap, F32 scale, U32 offsetX, U32 offsetY) |
void | setCameraPosition (const Point3F &pos) |
Point3F | getCameraPosition () |
bool | scale (U32 r_src, U32 r_dst, F32 fmin, F32 fmax) |
bool | smooth (U32 r_src, U32 r_dst, F32 factor, U32 iterations) |
bool | smoothWater (U32 r_src, U32 r_dst, F32 factor, U32 iterations) |
bool | smoothRidges (U32 r_src, U32 r_dst, F32 factor, U32 iterations, F32 threshold) |
bool | blend (U32 r_srcA, U32 r_srcB, U32 r_dst, F32 factor, BlendOperation operation) |
bool | filter (U32 r_src, U32 r_dst, const Filter &filter) |
bool | turbulence (U32 r_src, U32 r_dst, F32 v, F32 r) |
bool | shift (U32 r_src) |
bool | setHeight (U32 r, F32 height) |
bool | terrainData (U32 r) |
bool | terrainFile (U32 r, const char *terrFile) |
bool | fBm (U32 r, U32 interval, F32 roughness, F32 detail, U32 seed) |
bool | rigidMultiFractal (U32 r, U32 interval, F32 roughness, F32 detail, U32 seed) |
bool | canyonFractal (U32 r, U32 f, F32 v, U32 seed) |
bool | sinus (U32 r, const Filter &filter, U32 seed) |
bool | erodeHydraulic (U32 r_src, U32 r_dst, U32 iterations, const Filter &filter) |
bool | erodeThermal (U32 r_src, U32 r_dst, F32 slope, F32 materialLoss, U32 iterations) |
bool | maskFBm (U32 r_dst, U32 interval, F32 roughness, U32 seed, const Filter &filter, bool distort, U32 r_distort) |
bool | maskHeight (U32 r_src, U32 r_dst, const Filter &filter, bool distort, U32 r_distort) |
bool | maskSlope (U32 r_src, U32 r_dst, const Filter &filter, bool distort, U32 r_distort) |
bool | maskWater (U32 r_src, U32 r_dst, bool distort, U32 r_distort) |
bool | mergeMasks (const char *r_src, U32 r_dst) |
bool | setMaterials (const char *r_src, const char *materials) |
Private Member Functions |
S32 | wrap (S32 p) |
Heightfield * | getRegister (U32 r) |
Heightfield * | getScratch (U32 r) |
void | getMinMax (U32 r, F32 *fmin, F32 *fmax) |
Private Attributes |
VectorPtr< Heightfield * > | registerList |
VectorPtr< Heightfield * > | scratchList |
MRandomR250 | random |
TerrainEditor * | mTerrainEditor |
Noise2D | noise |
U32 | blockMask |
U32 | blockSize |
F32 | worldTileSize |
F32 | worldBaseHeight |
F32 | worldHeight |
F32 | worldWater |
Point2F | mShift |
Member Typedef Documentation
Member Enumeration Documentation
- Enumerator:
-
OperationAdd |
|
OperationSubtract |
|
OperationMax |
|
OperationMin |
|
OperationMultiply |
|
Constructor & Destructor Documentation
Terraformer::Terraformer |
( |
|
) |
|
Terraformer::~Terraformer |
( |
|
) |
|
Member Function Documentation
S32 Terraformer::wrap |
( |
S32 |
p |
) |
[inline, private] |
void Terraformer::getMinMax |
( |
U32 |
r, |
|
|
F32 * |
fmin, |
|
|
F32 * |
fmax | |
|
) |
| | [private] |
bool Terraformer::onAdd |
( |
|
) |
[virtual] |
Called when the object is added to the sim.
Reimplemented from SimObject.
void Terraformer::setSize |
( |
U32 |
n |
) |
|
void Terraformer::setTerrainInfo |
( |
U32 |
blockSize, |
|
|
F32 |
tileSize, |
|
|
F32 |
minHeight, |
|
|
F32 |
heightRange, |
|
|
F32 |
worldWater | |
|
) |
| | |
void Terraformer::clearRegister |
( |
U32 |
r |
) |
|
GBitmap* Terraformer::getScaledGreyscale |
( |
U32 |
r |
) |
|
bool Terraformer::saveGreyscale |
( |
U32 |
r, |
|
|
const char * |
filename | |
|
) |
| | |
bool Terraformer::loadGreyscale |
( |
U32 |
r, |
|
|
const char * |
filename | |
|
) |
| | |
bool Terraformer::saveHeightField |
( |
U32 |
r, |
|
|
const char * |
filename | |
|
) |
| | |
bool Terraformer::setTerrain |
( |
U32 |
r |
) |
|
void Terraformer::setCameraPosition |
( |
const Point3F & |
pos |
) |
|
Point3F Terraformer::getCameraPosition |
( |
|
) |
|
bool Terraformer::smoothWater |
( |
U32 |
r_src, |
|
|
U32 |
r_dst, |
|
|
F32 |
factor, |
|
|
U32 |
iterations | |
|
) |
| | |
bool Terraformer::smoothRidges |
( |
U32 |
r_src, |
|
|
U32 |
r_dst, |
|
|
F32 |
factor, |
|
|
U32 |
iterations, |
|
|
F32 |
threshold | |
|
) |
| | |
bool Terraformer::shift |
( |
U32 |
r_src |
) |
|
bool Terraformer::terrainData |
( |
U32 |
r |
) |
|
bool Terraformer::terrainFile |
( |
U32 |
r, |
|
|
const char * |
terrFile | |
|
) |
| | |
bool Terraformer::rigidMultiFractal |
( |
U32 |
r, |
|
|
U32 |
interval, |
|
|
F32 |
roughness, |
|
|
F32 |
detail, |
|
|
U32 |
seed | |
|
) |
| | |
bool Terraformer::erodeHydraulic |
( |
U32 |
r_src, |
|
|
U32 |
r_dst, |
|
|
U32 |
iterations, |
|
|
const Filter & |
filter | |
|
) |
| | |
bool Terraformer::erodeThermal |
( |
U32 |
r_src, |
|
|
U32 |
r_dst, |
|
|
F32 |
slope, |
|
|
F32 |
materialLoss, |
|
|
U32 |
iterations | |
|
) |
| | |
bool Terraformer::mergeMasks |
( |
const char * |
r_src, |
|
|
U32 |
r_dst | |
|
) |
| | |
bool Terraformer::setMaterials |
( |
const char * |
r_src, |
|
|
const char * |
materials | |
|
) |
| | |
Member Data Documentation
|