Mercator::LevelTerrainMod< Shape > Class Template Reference

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

#include <TerrainMod.h>

Inheritance diagram for Mercator::LevelTerrainMod< Shape >:

Mercator::ShapeTerrainMod< Shape > Mercator::TerrainMod

List of all members.

Public Member Functions

 LevelTerrainMod (float level, const Shape &s)
 Constructor.
virtual void apply (float &point, int x, int y) const
 Apply this modifier on a terrain segment.
virtual TerrainModclone () const
 Create a copy of this modifier.

Protected Attributes

float m_level
 The height level of all points affected.

Private Member Functions

 LevelTerrainMod (LevelTerrainMod &)
 Copy constructor.


Detailed Description

template<typename Shape>
class Mercator::LevelTerrainMod< Shape >

Terrain modifier that defines an area of fixed height.

This modifier sets all points inside the shape to the same altitude


Constructor & Destructor Documentation

template<typename Shape>
Mercator::LevelTerrainMod< Shape >::LevelTerrainMod ( float  level,
const Shape &  s 
) [inline]

Constructor.

Parameters:
level The height level of all points affected.
s shape of the modifier.


Member Function Documentation

template<typename Shape>
void Mercator::LevelTerrainMod< Shape >::apply ( float &  point,
int  x,
int  y 
) const [inline, 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.

References Mercator::LevelTerrainMod< Shape >::m_level, and Mercator::ShapeTerrainMod< Shape >::m_shape.


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

Generated for Mercator by  doxygen 1.5.6