proland::Margin Class Reference
[graph]

Determines how a clip region must be extended to clip a Graph, depending on its content. More...

#include <Margin.h>

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

List of all members.

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.

Detailed Description

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).

Author:
Antoine Begault

Member Function Documentation

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.

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

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

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

Implemented in proland::ElevationMargin, proland::ComposedMargin, and proland::OrthoMargin.


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