Mercator
Public Member Functions | Protected Attributes | Private Member Functions
Mercator::AdjustTerrainMod Class Reference

Terrain modifier that defines an area of adjusted height. More...

#include <TerrainMod.h>

Inheritance diagram for Mercator::AdjustTerrainMod:
Mercator::ShapeTerrainMod< Shape >

List of all members.

Public Member Functions

 AdjustTerrainMod (float dist, const Shape< 2 > &s)
 Constructor.
virtual void apply (float &point, int x, int y) const
virtual TerrainModclone () const
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.

Detailed Description

Terrain modifier that defines an area of adjusted height.

This modifier changes the altitude of all points inside the shape by the same amount.


Constructor & Destructor Documentation

Mercator::AdjustTerrainMod::AdjustTerrainMod ( float  dist,
const Shape< 2 > &  s 
) [inline]

Constructor.

Parameters:
distadjustment to the height of all points affected.
sshape of the modifier.

The documentation for this class was generated from the following files: