Mercator::TerrainMod Class Reference

Base class for modifiers to the procedurally generated terrain. More...

#include <TerrainMod.h>

Inheritance diagram for Mercator::TerrainMod:

Mercator::CraterTerrainMod Mercator::ShapeTerrainMod< Shape > Mercator::AdjustTerrainMod< Shape > Mercator::LevelTerrainMod< Shape > Mercator::SlopeTerrainMod< Shape >

List of all members.

Public Member Functions

virtual void apply (float &point, int x, int y) const =0
 Apply this modifier on a terrain segment.
virtual WFMath::AxisBox< 2 > bbox () const =0
 Get the boundingbox of the modifier.
virtual TerrainModclone () const =0
 Create a copy of this modifier.


Detailed Description

Base class for modifiers to the procedurally generated terrain.

Anything that modifies the terrain implements this interface.


Member Function Documentation

virtual void Mercator::TerrainMod::apply ( float &  point,
int  x,
int  y 
) const [pure virtual]

Apply this modifier on a terrain segment.

The segment is at x,y in local coordinates. Output is placed into point.

Implemented in Mercator::LevelTerrainMod< Shape >, Mercator::AdjustTerrainMod< Shape >, Mercator::SlopeTerrainMod< Shape >, and Mercator::CraterTerrainMod.

Referenced by Mercator::Segment::applyMod().


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

Generated for Mercator by  doxygen 1.5.6