proland::WaterElevationLayer::WaterElevationMargin Class Reference

An ElevationMargin for rivers and lakes. More...

#include <WaterElevationLayer.h>

Inheritance diagram for proland::WaterElevationLayer::WaterElevationMargin:
proland::ElevationMargin proland::Margin

List of all members.

Public Member Functions

 WaterElevationMargin (int samplesPerTile, float borderFactor)
 Creates a new WaterElevationMargin.
 ~WaterElevationMargin ()
 Deletes this WaterElevationMargin.
virtual double getMargin (double clipSize, CurvePtr p)
 Returns the margin for the given curve.
virtual double getMargin (double clipSize, AreaPtr a)
 Returns the margin for the given area.

Detailed Description

An ElevationMargin for rivers and lakes.

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


Constructor & Destructor Documentation

proland::WaterElevationLayer::WaterElevationMargin::WaterElevationMargin ( int  samplesPerTile,
float  borderFactor 
)

Creates a new WaterElevationMargin.

Parameters:
samplesPerTile number of pixels per elevation tile (without borders).
borderFactor size of the border in percentage of tile size.
proland::WaterElevationLayer::WaterElevationMargin::~WaterElevationMargin (  ) 

Deletes this WaterElevationMargin.


Member Function Documentation

virtual double proland::WaterElevationLayer::WaterElevationMargin::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.

Parameters:
clipSize size of the clip region (width or height).
a an area.

Reimplemented from proland::Margin.

virtual double proland::WaterElevationLayer::WaterElevationMargin::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.

Parameters:
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