proland::ElevationMargin Class Reference

A Margin to clip a Graph for an ElevationGraphLayer. More...

#include <ElevationMargin.h>

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

List of all members.

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.

Detailed Description

A Margin to clip a Graph for an ElevationGraphLayer.

This margin enlarges the clip region so that it also includes the elevation tile borders.

Authors:
Antoine Begault, Eric Bruneton

Constructor & Destructor Documentation

proland::ElevationMargin::ElevationMargin (  ) 

Creates an uninitialized ElevationMargin.

proland::ElevationMargin::ElevationMargin ( int  samplesPerTile,
float  borderFactor 
)

Creates a new ElevationMargin.

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


Member Function Documentation

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.

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

Implements proland::Margin.


Member Data Documentation

Size of the tile borders in percentage of tile size.

Number of pixels per elevation tile, without borders.


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