TerrainDatabase Class Reference
#include <TerrainDatabase.h>
List of all members.
Public Member Functions | 
| void  | LLToXY (double lat, double longi, double &x, double &y) | 
| void  | XYToLL (double &lat, double &longi, double x, double y) | 
|   | TerrainDatabase (std::string _databaseFolder="TerrainDatabase") | 
| virtual bool  | LoadHeightmap (Tile *tile) | 
| virtual bool  | LoadBitmap (Tile *tile) | 
| void  | SetBounds (double _x0, double _y0, int _width, int _height, int _tileSize=65, int _imageSize=512, double _pixelSize=1) | 
| int  | GetLocalLOD (double x, double y, int minLOD=1) | 
| std::string  | TileName (int x, int y, int lod=1) | 
| std::string  | TileName (TileData *tileData) | 
| Point2d  | GetPosition (double x, double y) | 
| float  | GetTileSize (int lod=1) | 
| bool  | Save (Tile *tile) | 
| bool  | SaveOutline (Tile *tile) | 
| std::string  | GetFilePath (Tile *tile) | 
| bool  | Load (Tile *tile) | 
| bool  | Valid (double x, double y) | 
| bool  | FindTileAtPoint (int x, int y, int lod=1) | 
| bool  | FindTile (int x, int y, int lod=1) | 
| int  | LODMultiplier (int _lod) | 
| int  | GetUniqueIndex (int lod, int x, int y) | 
Public Attributes | 
| double  | x0 | 
| double  | y0 | 
| double  | x1 | 
| double  | y1 | 
| double  | pixelSize | 
| int  | width | 
| int  | height | 
| int  | imageSize | 
| int  | tileSize | 
| int  | lods | 
| std::string  | databaseFolder | 
Protected Member Functions | 
| bool  | FileExists (std::string filename) | 
Protected Attributes | 
| Log  | myLog | 
| STMCoorz  | m_tmorigin | 
Constructor & Destructor Documentation
      
        
          | TerrainDatabase::TerrainDatabase  | 
          ( | 
          std::string  | 
           _databaseFolder = "TerrainDatabase" | 
           )  | 
           | 
        
      
 
 
Member Function Documentation
      
        
          | bool TerrainDatabase::FileExists  | 
          ( | 
          std::string  | 
           filename | 
           )  | 
           [inline, protected] | 
        
      
 
 
      
        
          | bool TerrainDatabase::FindTile  | 
          ( | 
          int  | 
           x,  | 
        
        
           | 
           | 
          int  | 
           y,  | 
        
        
           | 
           | 
          int  | 
           lod = 1 |   | 
        
        
           | 
          ) | 
           |  |  [inline] | 
        
      
 
 
      
        
          | bool TerrainDatabase::FindTileAtPoint  | 
          ( | 
          int  | 
           x,  | 
        
        
           | 
           | 
          int  | 
           y,  | 
        
        
           | 
           | 
          int  | 
           lod = 1 |   | 
        
        
           | 
          ) | 
           |  |  [inline] | 
        
      
 
 
      
        
          | string TerrainDatabase::GetFilePath  | 
          ( | 
          Tile *  | 
           tile | 
           )  | 
           | 
        
      
 
 
      
        
          | int TerrainDatabase::GetLocalLOD  | 
          ( | 
          double  | 
           x,  | 
        
        
           | 
           | 
          double  | 
           y,  | 
        
        
           | 
           | 
          int  | 
           minLOD = 1 |   | 
        
        
           | 
          ) | 
           |  |  | 
        
      
 
 
      
        
          | Point2d TerrainDatabase::GetPosition  | 
          ( | 
          double  | 
           x,  | 
        
        
           | 
           | 
          double  | 
           y |   | 
        
        
           | 
          ) | 
           |  |  | 
        
      
 
 
      
        
          | float TerrainDatabase::GetTileSize  | 
          ( | 
          int  | 
           lod = 1 | 
           )  | 
           | 
        
      
 
 
      
        
          | int TerrainDatabase::GetUniqueIndex  | 
          ( | 
          int  | 
           lod,  | 
        
        
           | 
           | 
          int  | 
           x,  | 
        
        
           | 
           | 
          int  | 
           y |   | 
        
        
           | 
          ) | 
           |  |  [inline] | 
        
      
 
 
      
        
          | void TerrainDatabase::LLToXY  | 
          ( | 
          double  | 
           lat,  | 
        
        
           | 
           | 
          double  | 
           longi,  | 
        
        
           | 
           | 
          double &  | 
           x,  | 
        
        
           | 
           | 
          double &  | 
           y |   | 
        
        
           | 
          ) | 
           |  |  | 
        
      
 
 
      
        
          | bool TerrainDatabase::Load  | 
          ( | 
          Tile *  | 
           tile | 
           )  | 
           | 
        
      
 
 
      
        
          | bool TerrainDatabase::LoadBitmap  | 
          ( | 
          Tile *  | 
           tile | 
           )  | 
           [virtual] | 
        
      
 
 
      
        
          | bool TerrainDatabase::LoadHeightmap  | 
          ( | 
          Tile *  | 
           tile | 
           )  | 
           [virtual] | 
        
      
 
 
      
        
          | int TerrainDatabase::LODMultiplier  | 
          ( | 
          int  | 
           _lod | 
           )  | 
           [inline] | 
        
      
 
 
      
        
          | bool TerrainDatabase::Save  | 
          ( | 
          Tile *  | 
           tile | 
           )  | 
           | 
        
      
 
 
      
        
          | bool TerrainDatabase::SaveOutline  | 
          ( | 
          Tile *  | 
           tile | 
           )  | 
           | 
        
      
 
 
      
        
          | void TerrainDatabase::SetBounds  | 
          ( | 
          double  | 
           _x0,  | 
        
        
           | 
           | 
          double  | 
           _y0,  | 
        
        
           | 
           | 
          int  | 
           _width,  | 
        
        
           | 
           | 
          int  | 
           _height,  | 
        
        
           | 
           | 
          int  | 
           _tileSize = 65,  | 
        
        
           | 
           | 
          int  | 
           _imageSize = 512,  | 
        
        
           | 
           | 
          double  | 
           _pixelSize = 1 |   | 
        
        
           | 
          ) | 
           |  |  | 
        
      
 
 
      
        
          | std::string TerrainDatabase::TileName  | 
          ( | 
          TileData *  | 
           tileData | 
           )  | 
           | 
        
      
 
 
      
        
          | string TerrainDatabase::TileName  | 
          ( | 
          int  | 
           x,  | 
        
        
           | 
           | 
          int  | 
           y,  | 
        
        
           | 
           | 
          int  | 
           lod = 1 |   | 
        
        
           | 
          ) | 
           |  |  | 
        
      
 
 
      
        
          | bool TerrainDatabase::Valid  | 
          ( | 
          double  | 
           x,  | 
        
        
           | 
           | 
          double  | 
           y |   | 
        
        
           | 
          ) | 
           |  |  [inline] | 
        
      
 
 
      
        
          | void TerrainDatabase::XYToLL  | 
          ( | 
          double &  | 
           lat,  | 
        
        
           | 
           | 
          double &  | 
           longi,  | 
        
        
           | 
           | 
          double  | 
           x,  | 
        
        
           | 
           | 
          double  | 
           y |   | 
        
        
           | 
          ) | 
           |  |  | 
        
      
 
 
Member Data Documentation
The documentation for this class was generated from the following files:
- C:/Users/Robert/Documents/Visual Studio 2008/Projects/ferprojekt/TerrainEditor/TerrainEditor/TerrainDatabase.h
 
- C:/Users/Robert/Documents/Visual Studio 2008/Projects/ferprojekt/TerrainEditor/TerrainEditor/TerrainDatabase.cpp