Determines how a clip region must be extended to clip a Graph, depending on its content. More...
#include <Margin.h>
Public Member Functions | |
virtual double | getMargin (double clipSize)=0 |
Returns the margin for the given clip region. | |
virtual double | getMargin (double clipSize, CurvePtr p)=0 |
Returns the margin for the given curve. | |
virtual double | getMargin (double clipSize, AreaPtr a) |
Returns the margin for the given area. |
Determines how a clip region must be extended to clip a Graph, depending on its content.
In order to take curve widths into account during clipping, the clip area is enlarged with a margin to avoid clipping curves whose axis is outside the clip region, but not their borders (see Graph producer).
virtual double proland::Margin::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 in proland::WaterElevationLayer::WaterElevationMargin, and proland::ComposedMargin.
virtual double proland::Margin::getMargin | ( | double | clipSize, | |
CurvePtr | p | |||
) | [pure 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. |
Implemented in proland::RoadElevationLayer::RoadElevationMargin, proland::WaterElevationLayer::WaterElevationMargin, proland::ComposedMargin, and proland::OrthoMargin.
virtual double proland::Margin::getMargin | ( | double | clipSize | ) | [pure 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). |
Implemented in proland::ElevationMargin, proland::ComposedMargin, and proland::OrthoMargin.