Terrain Height Modifier. More...
#include <deTerrainHeightModifier.h>
Public Member Functions | |
Constructors and Destructors | |
| deTerrainHeightModifier (deImage *heightImage) | |
| Creates a new height modifier. | |
| ~deTerrainHeightModifier () | |
| Cleans up the height modifier. | |
Management | |
| const decPoint & | GetPosition () const |
| Retrieves the position of the upper left corner. | |
| void | SetPosition (const decPoint &position) |
| Sets the position of the upper left corner. | |
| float | GetScaling () const |
| Retrieves the scaling. | |
| void | SetScaling (float scaling) |
| Sets the scaling. | |
| deImage * | GetHeightImage () const |
| Retrieves the height image. | |
Terrain Height Modifier.
Defines a small grid of height modifiers. The grid is overlayed on an existing height map terrain mesh and alters the heights by adding a height difference from an image. Height modifiers can protrude outside the the original height map. All points outside the valid range are ignored. The height modifier works similar to the height map itself. The position is the upper left corner of the height modifier which is on the negative X and positive Z side if looked from the terrain.
| deTerrainHeightModifier::deTerrainHeightModifier | ( | deImage * | heightImage ) |
Creates a new height modifier.
| deTerrainHeightModifier::~deTerrainHeightModifier | ( | ) |
Cleans up the height modifier.
| deImage* deTerrainHeightModifier::GetHeightImage | ( | ) | const [inline] |
Retrieves the height image.
| const decPoint& deTerrainHeightModifier::GetPosition | ( | ) | const [inline] |
Retrieves the position of the upper left corner.
| float deTerrainHeightModifier::GetScaling | ( | ) | const [inline] |
Retrieves the scaling.
| void deTerrainHeightModifier::SetPosition | ( | const decPoint & | position ) |
Sets the position of the upper left corner.
| void deTerrainHeightModifier::SetScaling | ( | float | scaling ) |
Sets the scaling.
1.7.2