proland::RoadElevationLayer::RoadElevationMargin Class Reference

An ElevationMargin for roads. More...

#include <RoadElevationLayer.h>

Inheritance diagram for proland::RoadElevationLayer::RoadElevationMargin:
proland::ElevationMargin proland::Margin

List of all members.

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.

Detailed Description

An ElevationMargin for roads.

This margin takes into account the total footprint width of roads, larger than their real widths (see ElevationGraphLayer::drawCurveAltitude).

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Generated on Sat May 12 09:42:46 2012 for proland by  doxygen 1.6.1