|
Mercator
|
Base class for modifiers to the procedurally generated terrain. More...
#include <TerrainMod.h>
Public Member Functions | |
| int | addToSegment (Segment &) const |
| void | updateToSegment (Segment &) const |
| void | removeFromSegment (Segment &) const |
| virtual void | apply (float &point, int x, int y) const =0 |
| Apply this modifier on a terrain segment. | |
| virtual TerrainMod * | clone () const =0 |
| Create a copy of this modifier. | |
Public Member Functions inherited from Mercator::Effector | |
| Context * | context () const |
| void | setContext (Context *) |
| const WFMath::AxisBox< 2 > & | bbox () const |
| Accessor for the bounding box of the geometric shape. | |
| virtual bool | checkIntersects (const Segment &s) const =0 |
Additional Inherited Members | |
Protected Member Functions inherited from Mercator::Effector | |
| Effector () | |
| Constructor. | |
| Effector (const Effector &) | |
| Copy constructor. | |
| Effector & | operator= (const Effector &) |
| Assignment. | |
Protected Attributes inherited from Mercator::Effector | |
| WFMath::AxisBox< 2 > | m_box |
| The bounding box of the geometric shape. | |
| Context * | m_context |
| The application context of this effector. | |
Base class for modifiers to the procedurally generated terrain.
Anything that modifies the terrain implements this interface.
|
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::CraterTerrainMod< Shape >, Mercator::SlopeTerrainMod< Shape >, Mercator::AdjustTerrainMod< Shape >, and Mercator::LevelTerrainMod< Shape >.
Referenced by Mercator::Segment::applyMod().
1.8.1.1