16 #include <osgEarth/GeoData>
52 CDBTileKey(
int lod,
int lon,
int lat,
int rref,
int uref );
61 std::string str()
const;
79 const osgEarth::GeoExtent& getExtent()
const;
82 bool getChildren( std::vector< CDBTileKey >& children )
const;
85 static int calcDLonZone(
double coord_y );
88 static void getTileDimensions(
int lod,
int lon,
int lat,
int rref,
int uref,
double& out_width,
double& out_height );
91 static void createRootKeys(
const CDBTileCache& tileCache, std::vector< CDBTileKey >& rootKeys );
94 static double getApproximateLodGridSpacing(
int lod );
97 osg::BoundingSphere getBounds(
const osgEarth::Map* map )
const;
100 bool equals(
int lod,
int uref,
int rref )
const;
106 size_t getLatLongHash(
void )
const;
108 size_t getFullHash(
void )
const;
109 size_t getHashNoLod(
void )
const;
113 void setCdbTile(
CDBTile* tile );
118 std::string latString()
const;
119 std::string lonString()
const;
120 std::string lodString()
const;
121 std::string uRefString()
const;
122 std::string rRefString()
const;
CDBTile * myCdbTile
Definition: DtCDBTileKey.h:143
Tile Key equal operation.
Definition: DtCDBTileKey.h:182
CDB Tile cache manager Used by CDBTileSource to try to avoid reading the the same CDB tile many time ...
Definition: DtCDBTileCache.h:34
Hold the unique CDB tile key information CDB LOD goes from -10 to 23. Negative keys to zero are all 1...
Definition: DtCDBTileKey.h:46
Definition: DtCDBTileKey.h:36
size_t operator()(const makVrv::oe::CDB::CDBTileKey &tileKey) const
Definition: DtCDBTileKey.h:175
#define DT_DLL_OSGEARTH_CDB_UTILS
Definition: DtCDBExport.h:18
int getURef() const
Get the upper direction index of this CDBTileKey.
osgEarth::GeoExtent myExtent
Tile Extent.
Definition: DtCDBTileKey.h:141
int myLod
Tile Level Of Detail.
Definition: DtCDBTileKey.h:126
Latitude Longitude equal operation.
Definition: DtCDBTileKey.h:164
bool operator()(const makVrv::oe::CDB::CDBTileKey &lhs, const makVrv::oe::CDB::CDBTileKey &rhs) const
Definition: DtCDBTileKey.h:184
std::string myRRefStr
Definition: DtCDBTileKey.h:147
std::string myLonStr
Definition: DtCDBTileKey.h:145
Class used to find CDB Tiles information.
Definition: DtCDBTile.h:52
int myLon
Tile Longitude.
Definition: DtCDBTileKey.h:135
std::ostream & operator<<(std::ostream &os, const CDBTileKey &key)
Output the CDB Tile Key stream representation.
Latitude Longitude hash key.
Definition: DtCDBTileKey.h:155
int myLat
Tile Latitude.
Definition: DtCDBTileKey.h:138
Definition: DtCDBTileKey.h:38
Definition: DtCDBTileKey.h:39
int myRRef
Tile Right index Reference.
Definition: DtCDBTileKey.h:132
int getLat() const
Get the lat coordinate of this CDBTileKey.
std::string myLatStr
Definition: DtCDBTileKey.h:144
Definition: DtCDBTileKey.h:35
int myURef
Tile Upper index Reference.
Definition: DtCDBTileKey.h:129
Quadrant
Definition: DtCDBTileKey.h:32
bool operator()(const makVrv::oe::CDB::CDBTileKey &lhs, const makVrv::oe::CDB::CDBTileKey &rhs) const
Definition: DtCDBTileKey.h:166
Complete tile key hash.
Definition: DtCDBTileKey.h:173
int getLOD() const
Get the level of detail for this CDBTileKey.
Definition: DtCDBTileKey.h:34
Definition: DtCDBTileKey.h:37
size_t operator()(const makVrv::oe::CDB::CDBTileKey &tileKey) const
Definition: DtCDBTileKey.h:157
size_t getFullHash(void) const
size_t getLatLongHash(void) const
Utility function to get hash off of lat, lon.
std::string myURefStr
Definition: DtCDBTileKey.h:146
int getLon() const
Get the lon coordinate of this CDBTileKey.
std::string myLodStr
Definition: DtCDBTileKey.h:148
int getRRef() const
Get the right direction index this CDBTileKey.