A Margin to clip a Graph for an OrthoGPUProducer layer. More...
#include <OrthoMargin.h>
Public Member Functions | |
OrthoMargin () | |
Creates an uninitialized OrthoMargin. | |
OrthoMargin (int samplesPerTile, float borderFactor, float widthFactor) | |
Creates a new OrthoMargin. | |
virtual | ~OrthoMargin () |
Deletes this OrthoMargin. | |
virtual double | getMargin (double clipSize) |
Returns the margin for the given clip region. | |
virtual double | getMargin (double clipSize, CurvePtr p) |
Returns the margin for the given curve. | |
Protected Attributes | |
int | samplesPerTile |
Number of pixels per elevation tile, without borders. | |
float | borderFactor |
Size of the tile borders in percentage of tile size. | |
float | widthFactor |
Width of drawn curves in percentage of curve width. |
A Margin to clip a Graph for an OrthoGPUProducer layer.
This margin enlarges the clip region so that it also includes the ortho tile borders.
proland::OrthoMargin::OrthoMargin | ( | ) |
Creates an uninitialized OrthoMargin.
proland::OrthoMargin::OrthoMargin | ( | int | samplesPerTile, | |
float | borderFactor, | |||
float | widthFactor | |||
) |
Creates a new OrthoMargin.
samplesPerTile | number of pixels per ortho tile (without borders). | |
borderFactor | size of the tile borders in percentage of tile size. | |
widthFactor | width of drawn curves in percentage of curve width. |
virtual proland::OrthoMargin::~OrthoMargin | ( | ) | [virtual] |
Deletes this OrthoMargin.
virtual double proland::OrthoMargin::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.
virtual double proland::OrthoMargin::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::OrthoMargin::borderFactor [protected] |
Size of the tile borders in percentage of tile size.
int proland::OrthoMargin::samplesPerTile [protected] |
Number of pixels per elevation tile, without borders.
float proland::OrthoMargin::widthFactor [protected] |
Width of drawn curves in percentage of curve width.