Mercator
|
Terrain modifier that defines an area of fixed height. More...
#include <TerrainMod.h>
Public Member Functions | |
LevelTerrainMod (float level, const Shape< 2 > &s) | |
Constructor. | |
virtual void | apply (float &point, int x, int y) const |
Apply this modifier on a terrain segment. | |
virtual TerrainMod * | clone () const |
Create a copy of this modifier. | |
void | setShape (float level, const Shape< 2 > &s) |
![]() | |
ShapeTerrainMod (const Shape< 2 > &s) | |
Constructor. | |
virtual bool | checkIntersects (const Segment &s) const |
void | setShape (const Shape< 2 > &s) |
![]() | |
int | addToSegment (Segment &) const |
void | updateToSegment (Segment &) const |
void | removeFromSegment (Segment &) const |
![]() | |
Context * | context () const |
void | setContext (Context *) |
const WFMath::AxisBox< 2 > & | bbox () const |
Accessor for the bounding box of the geometric shape. |
Protected Attributes | |
float | m_level |
The height level of all points affected. | |
![]() | |
Shape< 2 > | m_shape |
Shape of the modifier. |
Private Member Functions | |
LevelTerrainMod (LevelTerrainMod &) | |
Copy constructor. |
Terrain modifier that defines an area of fixed height.
This modifier sets all points inside the shape to the same altitude
|
inline |
Constructor.
level | The height level of all points affected. |
s | shape of the modifier. |
|
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.