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

Terrain modifier that defines a crater. More...

#include <TerrainMod.h>

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

List of all members.

Public Member Functions

 CraterTerrainMod (float level, const Shape< 2 > &s)
 Constructor.
virtual void apply (float &point, int x, int y) const
virtual TerrainModclone () const
void setShape (float level, const Shape< 2 > &s)

Protected Attributes

float m_level
 The height level of the crater center.

Private Member Functions

 CraterTerrainMod (CraterTerrainMod &)
 Copy constructor.

Detailed Description

Terrain modifier that defines a crater.

This modifier creates an area where a sphere shaped volume has been subtracted from the terrain surface to create a spherical crater.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
sSphere that defines the shape of the crater.

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