Mercator
|
Terrain modifier that defines an area of adjusted height. More...
#include <TerrainMod.h>
Public Member Functions | |
AdjustTerrainMod (float dist, const Shape< 2 > &s) | |
Constructor. | |
virtual void | apply (float &point, int x, int y) const |
Apply this modifier on a terrain segment. | |
virtual TerrainMod * | clone () const |
Create a copy of this modifier. | |
void | setShape (float dist, const Shape< 2 > &s) |
Protected Attributes | |
float | m_dist |
Adjustment to the height of all points affected. | |
Private Member Functions | |
AdjustTerrainMod (AdjustTerrainMod &) | |
Copy constructor. |
Terrain modifier that defines an area of adjusted height.
This modifier changes the altitude of all points inside the shape by the same amount.
Mercator::AdjustTerrainMod< Shape >::AdjustTerrainMod | ( | float | dist, |
const Shape< 2 > & | s | ||
) | [inline] |
Constructor.
dist | adjustment to the height of all points affected. |
s | shape of the modifier. |
void Mercator::AdjustTerrainMod< Shape >::apply | ( | float & | point, |
int | x, | ||
int | y | ||
) | const [virtual] |
Apply this modifier on a terrain segment.
The segment is at x,y in local coordinates. Output is placed into point.
Implements Mercator::TerrainMod.