proland::TileSamplerZ::TileCallback Class Reference

A ork::ReadbackManager::Callback to readback an elevation tile and to update the zmin and zmax fields of a TerrainQuad. More...

Inheritance diagram for proland::TileSamplerZ::TileCallback:
proland::ReadbackManager::Callback

List of all members.

Public Member Functions

 TileCallback (vector< ptr< TerrainQuad > > &targets, bool camera)
 Creates a new ZTileCallback.
virtual void dataRead (volatile void *data)
 Called when a readback is finished.

Public Attributes

vector< ptr< TerrainQuad > > targets
 The TerrainQuad(s) whose zmin and zmax values must be read back.
bool camera
 True if the first element in target is the quad under the camera.

Detailed Description

A ork::ReadbackManager::Callback to readback an elevation tile and to update the zmin and zmax fields of a TerrainQuad.


Constructor & Destructor Documentation

proland::TileSamplerZ::TileCallback::TileCallback ( vector< ptr< TerrainQuad > > &  targets,
bool  camera 
)

Creates a new ZTileCallback.

Parameters:
targets the TerrainQuad(s) whose zmin and zmax values must be read back.
camera true if the first element in target is the quad under the camera.

Member Function Documentation

virtual void proland::TileSamplerZ::TileCallback::dataRead ( volatile void *  data  )  [virtual]

Called when a readback is finished.

Parameters:
data the data that has been read.

Implements proland::ReadbackManager::Callback.


Member Data Documentation

True if the first element in target is the quad under the camera.

If so its zmin and zmax are used to update TerrainNode::groundHeightAtCamera

The TerrainQuad(s) whose zmin and zmax values must be read back.


Generated on Sat May 12 09:41:39 2012 for proland by  doxygen 1.6.1