An ElevationMargin for roads. More...
#include <RoadElevationLayer.h>
Public Member Functions | |
RoadElevationMargin (int samplesPerTile, float borderFactor) | |
Creates a new RoadElevationMargin. | |
~RoadElevationMargin () | |
Deletes this RoadElevationMargin. | |
virtual double | getMargin (double clipSize, CurvePtr p) |
Returns the margin for the given curve. |
An ElevationMargin for roads.
This margin takes into account the total footprint width of roads, larger than their real widths (see ElevationGraphLayer::drawCurveAltitude).
proland::RoadElevationLayer::RoadElevationMargin::RoadElevationMargin | ( | int | samplesPerTile, | |
float | borderFactor | |||
) |
Creates a new RoadElevationMargin.
samplesPerTile | number of pixels per elevation tile (without borders). | |
borderFactor | size of the border in percentage of tile size. |
proland::RoadElevationLayer::RoadElevationMargin::~RoadElevationMargin | ( | ) |
Deletes this RoadElevationMargin.
virtual double proland::RoadElevationLayer::RoadElevationMargin::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.