|
| LayerStack () |
| Create an empty terrain.
|
|
| LayerStack (const Box2 &, int, int) |
| Create a terrain with different material layers. More...
|
|
| LayerStack (const ScalarField2 &) |
| Create terrain. More...
|
|
| LayerStack (const ScalarField2 &, const ScalarField2 &, const ScalarField2 &, const ScalarField2 &, const ScalarField2 &, const ScalarField2 &, const ScalarField2 &, const ScalarField2 &) |
| Create a layered terrain model. More...
|
|
| ~LayerStack () |
| Empty.
|
|
void | Subdivide () |
| Double the resolution of the terrain.
|
|
Box | GetBox () const |
| Compute the bounding box of the terrain. More...
|
|
double | Vegetation (const Vector2 &) const |
| Return the vegetation density. More...
|
|
double | Vegetation (int, int) const |
| Return the vegetation density. More...
|
|
double | Grass (const Vector2 &) const |
| Return the grass elevation. More...
|
|
double | Grass (int, int) const |
| Return the grass elevation. More...
|
|
double | Water (const Vector2 &) const |
| Return the water elevation. More...
|
|
double | Water (int, int) const |
| Return the water elevation. More...
|
|
double | Rocks (const Vector2 &) const |
| Return the rocks elevation. More...
|
|
double | Rocks (int, int) const |
| Return the rocks elevation. More...
|
|
ScalarField2 & | GetRock () |
| Access to the rock scalar field.
|
|
ScalarField2 & | GetWater () |
| Access to the water scalar field.
|
|
ScalarField2 & | GetSnow () |
| Access to the snow scalar field.
|
|
ScalarField2 & | GetGrass () |
| Access to the grass scalar field.
|
|
ScalarField2 & | GetVegetation () |
| Access to the vegetation scalar field.
|
|
ScalarField2 & | GetAlpha () |
| Access to the alpha scalar field.
|
|
HeightField | GetHeightField (bool=true, bool=true) const |
| Convert the layer model into a simple heightfield. More...
|
|
void | UpdateHeightField (HeightField &, const QRect &=QRect(), bool=true, bool=true) const |
| Convert the layer model into a simple heightfield. More...
|
|
bool | Intersect (const Ray &, double &, Vector &) const |
| Compute the intersection between a ray and the surface of the terrain. More...
|
|
LayerStack | Crop (const QPoint &, const QPoint &) const |
| Crops a rectangular region in the terrain. More...
|
|
void | WaterFlood (const double &) |
| Fill the terrain with a water body. More...
|
|
void | WaterFlood (const Vector2 &, const double &) |
| Flood fills a region with water. More...
|
|
void | WaterDry (const Vector2 &) |
| Dries a connex region, removing water using a flood fill algorithm. More...
|
|
void | SandOverall (const double &) |
| Add sand over the terrain. More...
|
|
void | RockOverall (const double &) |
| Add rock over the terrain. More...
|
|
QVector< Vector > | GetTrees () const |
| Warning
|
|
Vector | Vertex (int, int) const |
| Compute the vertex corresponding to a given sample. More...
|
|
Vector | Vertex (const Vector2 &) const |
| Compute the elevation of a point, which is the sum of the bedrock, sand and rocks layers. More...
|
|
Vector | Normal (int, int) const |
| Compute the normal at a given sample. More...
|
|
Color | GetColorVector (int, int) const |
| Compute the vertex corresponding to a given sample. More...
|
|
double | Height (const Vector2 &) const |
| Compute the elevation of a point, which is the sum of the bedrock, sand and rocks layers. More...
|
|
Vector | Normal (const Vector2 &, bool=false) const |
| Compute the normal for a given position on the terrain. More...
|
|
void | Scale (const double &) |
| Scale the layer-field. More...
|
|
void | Translate (const Vector2 &) |
| Translate the layer-field. More...
|
|
void | Save (const QString &) const |
| Save structure as a set of images. More...
|
|
Mesh | CreateWaterGeometry () const |
| Create the geometry of the water on the terrain.
|
|
void | CreateCubes (Box &, QVector< FrameScaled > &, QVector< FrameScaled > &, QVector< FrameScaled > &, QVector< FrameScaled > &, QVector< FrameScaled > &, QVector< FrameScaled > &, bool=true, bool=true, bool=true, bool=true, bool=true, bool=true) const |
| Create a material stack representation of the model. More...
|
|
| HeightFieldSediment () |
| Create an empty terrain.
|
|
| HeightFieldSediment (const Box2 &, int, int) |
| Create a flat terrain with no sediments. More...
|
|
| HeightFieldSediment (const ScalarField2 &) |
| Create a terrain with no sediments from an elevation field. More...
|
|
| HeightFieldSediment (const ScalarField2 &, const ScalarField2 &) |
| Create a terrain with sediments. More...
|
|
| ~HeightFieldSediment () |
| Empty.
|
|
Array2 | GetArray () const |
| Return the array representing the grid domain.
|
|
ScalarField2 | AlphaBlend () const |
| Compute the alpha blending between sand and bedrock.
|
|
HeightField | GetHeightField () const |
| Convert the layered model into a simple heightfield.
|
|
void | SmoothRock (int=1) |
| Smoothes the bedrock layer. More...
|
|
HeightField & | GetBedrock () |
| Access to the bedrock scalar field.
|
|
ScalarField2 & | GetSand () |
| Access to the sand scalar field.
|
|
double | Bedrock (const Vector2 &) const |
| Compute the bedrock elevation. More...
|
|
double | Bedrock (int, int) const |
| Return the bedrock elevation. More...
|
|
double | Sand (const Vector2 &) const |
| Compute the sand thickness. More...
|
|
double | Sand (int, int) const |
| Return the sand thickness. More...
|
|
void | Subdivide () |
| Double the resolution of the terrain.
|
|
void | BedrockFlatten (const Vector2 &, const double &, const double &=0.25) |
| Flatten the bedrock around the target point. More...
|
|
void | BedrockLevel (const Vector2 &, const double &, const double &) |
| Level the bedrock to the target elevation. More...
|
|
void | BedrockUplift (const double &) |
| Modify the bedrock using a uniform uplift. More...
|
|
void | BedrockUplift (const ScalarField2 &) |
| Uplift. More...
|
|
void | ThermalImpact (const double &) |
| Globally transform a thin layer of bedrock into sediments. More...
|
|
void | ThermalImpactSlope (const double &) |
| Globally transform a thin layer of bedrock into sediments. More...
|
|
void | Stabilize (const double &, const double &=0.84) |
| Stabilizes sediments over the entire terrain. More...
|
|
bool | StabilizeStep (int, int, const double &, ScalarField2 &) |
| Perform a stabilization step on the given layered cell. More...
|
|
int | CheckFlowSlope (const QPoint &, FlowStruct &) const |
| Compute the flow directions at a given point. More...
|
|
int | CheckFlowDirectionsAngle (const QPoint &, const double &, QPoint *, double *, double *, double *) const |
| Compute the flow directions at a given point. More...
|
|
bool | SelectFlowDirection (const QPoint &, QPoint &, double &) const |
| Select flow direction. More...
|
|
void | TRUC (const QPoint &q, const double &slope, const double &V_T, double &V_T_S, double &V_E_R, double &V_E_S, double &V_D_S) |
| Compute eroded material.
|
|
This class implements a layered heightfield.