A Margin to clip a Graph for an ElevationGraphLayer. More...
#include <ElevationMargin.h>
Public Member Functions | |
ElevationMargin () | |
Creates an uninitialized ElevationMargin. | |
ElevationMargin (int samplesPerTile, float borderFactor) | |
Creates a new ElevationMargin. | |
virtual | ~ElevationMargin () |
Deletes this ElevationMargin. | |
virtual double | getMargin (double clipSize) |
Returns the margin for the given clip region. | |
Protected Attributes | |
int | samplesPerTile |
Number of pixels per elevation tile, without borders. | |
float | borderFactor |
Size of the tile borders in percentage of tile size. |
A Margin to clip a Graph for an ElevationGraphLayer.
This margin enlarges the clip region so that it also includes the elevation tile borders.
proland::ElevationMargin::ElevationMargin | ( | ) |
Creates an uninitialized ElevationMargin.
proland::ElevationMargin::ElevationMargin | ( | int | samplesPerTile, | |
float | borderFactor | |||
) |
Creates a new ElevationMargin.
samplesPerTile | number of pixels per elevation tile (without borders). | |
borderFactor | size of the tile borders in percentage of tile size. |
virtual proland::ElevationMargin::~ElevationMargin | ( | ) | [virtual] |
Deletes this ElevationMargin.
virtual double proland::ElevationMargin::getMargin | ( | double | clipSize | ) | [virtual] |
Returns the margin for the given clip region.
This margin will be added to the clip region in order to clip a graph.
clipSize | size of the clip region (width or height). |
Implements proland::Margin.
float proland::ElevationMargin::borderFactor [protected] |
Size of the tile borders in percentage of tile size.
int proland::ElevationMargin::samplesPerTile [protected] |
Number of pixels per elevation tile, without borders.