proland::OrthoMargin Class Reference

A Margin to clip a Graph for an OrthoGPUProducer layer. More...

#include <OrthoMargin.h>

Inheritance diagram for proland::OrthoMargin:
proland::Margin

List of all members.

Public Member Functions

 OrthoMargin ()
 Creates an uninitialized OrthoMargin.
 OrthoMargin (int samplesPerTile, float borderFactor, float widthFactor)
 Creates a new OrthoMargin.
virtual ~OrthoMargin ()
 Deletes this OrthoMargin.
virtual double getMargin (double clipSize)
 Returns the margin for the given clip region.
virtual double getMargin (double clipSize, CurvePtr p)
 Returns the margin for the given curve.

Protected Attributes

int samplesPerTile
 Number of pixels per elevation tile, without borders.
float borderFactor
 Size of the tile borders in percentage of tile size.
float widthFactor
 Width of drawn curves in percentage of curve width.

Detailed Description

A Margin to clip a Graph for an OrthoGPUProducer layer.

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

Author:
Antoine Begault

Constructor & Destructor Documentation

proland::OrthoMargin::OrthoMargin (  ) 

Creates an uninitialized OrthoMargin.

proland::OrthoMargin::OrthoMargin ( int  samplesPerTile,
float  borderFactor,
float  widthFactor 
)

Creates a new OrthoMargin.

Parameters:
samplesPerTile number of pixels per ortho tile (without borders).
borderFactor size of the tile borders in percentage of tile size.
widthFactor width of drawn curves in percentage of curve width.
virtual proland::OrthoMargin::~OrthoMargin (  )  [virtual]

Deletes this OrthoMargin.


Member Function Documentation

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

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

Width of drawn curves in percentage of curve width.


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