#include <mod_sim_terrain.hh>
Public Member Functions | |
| Terrain (void) | |
| ~Terrain () | |
| void | Populate (const BoxVolume &quadrantBoxVolume) |
| CLASS_METHOD fp | GetLandAltitude (void) |
Private Member Functions | |
| SharedPtr< Heightmap > | GetHeightmap (const BoxVolume &boxVolume) |
Private Attributes | |
| TileFactory | mTileFactory |
| produces drawable Tile objects from Heightmap | |
Friends | |
| class | Heightmap |
| class | TileFactory |
Terrain objects are threads that live during populating one Quadrant. Since terrain generation is slow, Terrain is threadable, and the subdividing by Quadrants facilitates parallel terrain generation.
| mod_sim::Terrain::Terrain | ( | void | ) |
For threading, a new Terrain objects is constructed every time a Quadrant is populated.
| mod_sim::Terrain::~Terrain | ( | ) |
| void mod_sim::Terrain::Populate | ( | const BoxVolume & | quadrantBoxVolume | ) |
| fp mod_sim::Terrain::GetLandAltitude | ( | void | ) |
Return approximate altitude of land.
| SharedPtr<Heightmap> mod_sim::Terrain::GetHeightmap | ( | const BoxVolume & | boxVolume | ) | [private] |
friend class Heightmap [friend] |
friend class TileFactory [friend] |
TileFactory mod_sim::Terrain::mTileFactory [private] |
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:31 2007