mod_sim_terrain.hh

Go to the documentation of this file.
00001 /*
00008  * LEGAL:   COPYRIGHT (C) 2007 JIM E. BROOKS
00009  *          THIS SOURCE CODE IS RELEASED UNDER THE TERMS
00010  *          OF THE GNU GENERAL PUBLIC LICENSE VERSION 2 (GPL 2).
00011  *****************************************************************************/
00012 
00013 #if COMPILING_MODULE
00014 #ifndef MOD_SIM_TERRAIN_HH
00015 #define MOD_SIM_TERRAIN_HH 1
00016 
00017 #include "mod_sim_terrain_heightmap.hh"
00018 #include "mod_sim_terrain_tile.hh"
00019 
00020 namespace mod_sim {
00021 
00022 //==============================================================================
00023 namespace terrain_defs {
00024 
00025 const uint MAX_HEIGHTMAP_SIZE = 64 * MEGABYTE;
00026 
00027 } // namespace terrain_defs
00028 //==============================================================================
00029 
00037 class Terrain : public Threadable
00038 {
00039 
00040 friend class Heightmap;
00041 friend class TileFactory;
00042 public:
00043                     Terrain( void );
00044                     ~Terrain();
00045     void            Populate( const BoxVolume& quadrantBoxVolume );
00046     CLASS_METHOD fp GetLandAltitude( void );
00047 
00048 private:
00049     SharedPtr<Heightmap>    GetHeightmap( const BoxVolume& boxVolume );
00050 
00051 private:
00052     TileFactory         mTileFactory;   
00053 };
00054 
00055 } // namespace mod_sim
00056 
00057 #endif // MOD_SIM_TERRAIN_HH
00058 #endif // COMPILING_MODULE
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:13 2007