An ElevationMargin for rivers and lakes. More...
#include <WaterElevationLayer.h>
Public Member Functions | |
WaterElevationMargin (int samplesPerTile, float borderFactor) | |
Creates a new WaterElevationMargin. | |
~WaterElevationMargin () | |
Deletes this WaterElevationMargin. | |
virtual double | getMargin (double clipSize, CurvePtr p) |
Returns the margin for the given curve. | |
virtual double | getMargin (double clipSize, AreaPtr a) |
Returns the margin for the given area. |
An ElevationMargin for rivers and lakes.
This margin takes into account the total footprint width of rivers and lakes, larger than their real widths (see ElevationGraphLayer::drawCurveAltitude).
proland::WaterElevationLayer::WaterElevationMargin::WaterElevationMargin | ( | int | samplesPerTile, | |
float | borderFactor | |||
) |
Creates a new WaterElevationMargin.
samplesPerTile | number of pixels per elevation tile (without borders). | |
borderFactor | size of the border in percentage of tile size. |
proland::WaterElevationLayer::WaterElevationMargin::~WaterElevationMargin | ( | ) |
Deletes this WaterElevationMargin.
virtual double proland::WaterElevationLayer::WaterElevationMargin::getMargin | ( | double | clipSize, | |
AreaPtr | a | |||
) | [virtual] |
Returns the margin for the given area.
This margin will be added to the clip region in order to clip this area.
clipSize | size of the clip region (width or height). | |
a | an area. |
Reimplemented from proland::Margin.
virtual double proland::WaterElevationLayer::WaterElevationMargin::getMargin | ( | double | clipSize, | |
CurvePtr | p | |||
) | [virtual] |
Returns the margin for the given curve.
This margin will be added to the clip region in order to clip this curve.
clipSize | size of the clip region (width or height). | |
p | a curve. |
Implements proland::Margin.