proland::CPUElevationProducer Class Reference
[dem]

A TileProducer to create elevation tiles on CPU from CPU residual tiles. More...

#include <CPUElevationProducer.h>

List of all members.

Public Member Functions

 CPUElevationProducer (ptr< TileCache > cache, ptr< TileProducer > residualTiles)
 Creates a new CPUElevationProducer.
virtual ~CPUElevationProducer ()
 Deletes this CPUElevationProducer.

Static Public Member Functions

static float getHeight (ptr< TileProducer > producer, int level, float x, float y)
 Returns the terrain altitude at a given point, at a given level.

Protected Member Functions

 CPUElevationProducer ()
 Creates an uninitialized CPUElevationProducer.
void init (ptr< TileCache > cache, ptr< TileProducer > residualTiles)
 Initializes this CPUElevationProducer.

Private Attributes

ptr< TileProducer > residualTiles
 The producer producing the residual tiles.

Detailed Description

A TileProducer to create elevation tiles on CPU from CPU residual tiles.

Authors:
Antoine Begault, Eric Bruneton

Constructor & Destructor Documentation

proland::CPUElevationProducer::CPUElevationProducer ( ptr< TileCache >  cache,
ptr< TileProducer >  residualTiles 
)

Creates a new CPUElevationProducer.

Parameters:
cache the cache to store the produced tiles. The underlying storage must be a CPUTileStorage of float type.
residualTiles the producer producing the residual tiles. This producer should produce its tiles in a CPUTileStorage of float type. The size of the residual tiles (without borders) must be a multiple of the size of the elevation tiles (without borders).
virtual proland::CPUElevationProducer::~CPUElevationProducer (  )  [virtual]

Deletes this CPUElevationProducer.

proland::CPUElevationProducer::CPUElevationProducer (  )  [protected]

Creates an uninitialized CPUElevationProducer.


Member Function Documentation

static float proland::CPUElevationProducer::getHeight ( ptr< TileProducer >  producer,
int  level,
float  x,
float  y 
) [static]

Returns the terrain altitude at a given point, at a given level.

The corresponding tile must be in cache before calling this method.

Parameters:
producer a CPUElevationProducer or an equivalent (i.e. a % producer using an underlying CPUTileStorage of float type).
level level at which we want to get the altitude.
x physical x coordinate of the point to get (in meters from the terrain center).
y physical y coordinate of the point to get (in meters from the terrain center).
void proland::CPUElevationProducer::init ( ptr< TileCache >  cache,
ptr< TileProducer >  residualTiles 
) [protected]

Initializes this CPUElevationProducer.

Parameters:
cache the cache to store the produced tiles. The underlying storage must be a CPUTileStorage of float type.
residualTiles the producer producing the residual tiles. This producer should produce its tiles in a CPUTileStorage of float type. The size of the residual tiles (without borders) must be a multiple of the size of the elevation tiles (without borders).

Member Data Documentation

ptr<TileProducer> proland::CPUElevationProducer::residualTiles [private]

The producer producing the residual tiles.

This producer should produce its tiles in a CPUTileStorage of float type. The size of the residual tiles (without borders) must be a multiple of the size of the elevation tiles (without borders).


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