17 #include <osgEarth/GeoData>
53 CDBTileKey(
int lod,
int lon,
int lat,
int rref,
int uref );
65 std::string str()
const;
83 const osgEarth::GeoExtent& getExtent()
const;
86 bool getChildren( std::vector< CDBTileKey >& children )
const;
89 static int calcDLonZone(
double coord_y );
92 static void getTileDimensions(
int lod,
int lon,
int lat,
int rref,
int uref,
double& out_width,
double& out_height );
95 static void createRootKeys(
const CDBTileCache& tileCache, std::vector< CDBTileKey >& rootKeys );
98 static double getApproximateLodGridSpacing(
int lod );
101 osg::BoundingSphere getBounds(
const osgEarth::Map* map )
const;
104 bool equals(
int lod,
int uref,
int rref )
const;
110 size_t getLatLongHash(
void )
const;
112 size_t getFullHash(
void )
const;
113 size_t getHashNoLod(
void )
const;
117 void setCdbTile(
CDBTile* tile );
122 std::string latString()
const;
123 std::string lonString()
const;
124 std::string lodString()
const;
125 std::string uRefString()
const;
126 std::string rRefString()
const;
CDBTile * myCdbTile
Definition: DtCDBTileKey.h:147
Tile Key equal operation.
Definition: DtCDBTileKey.h:186
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:47
functions class that help find CDB tiles information
Definition: DtCDBTileKey.h:37
size_t operator()(const makVrv::oe::CDB::CDBTileKey &tileKey) const
Definition: DtCDBTileKey.h:179
#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:145
int myLod
Tile Level Of Detail.
Definition: DtCDBTileKey.h:130
Latitude Longitude equal operation.
Definition: DtCDBTileKey.h:168
bool operator()(const makVrv::oe::CDB::CDBTileKey &lhs, const makVrv::oe::CDB::CDBTileKey &rhs) const
Definition: DtCDBTileKey.h:188
std::string myRRefStr
Definition: DtCDBTileKey.h:151
std::string myLonStr
Definition: DtCDBTileKey.h:149
Class used to find CDB Tiles information.
Definition: DtCDBTile.h:55
int myLon
Tile Longitude.
Definition: DtCDBTileKey.h:139
std::ostream & operator<<(std::ostream &os, const CDBTileKey &key)
Output the CDB Tile Key stream representation.
Latitude Longitude hash key.
Definition: DtCDBTileKey.h:159
int myLat
Tile Latitude.
Definition: DtCDBTileKey.h:142
Definition: DtCDBTileKey.h:39
Definition: DtCDBTileKey.h:40
int myRRef
Tile Right index Reference.
Definition: DtCDBTileKey.h:136
int getLat() const
Get the lat coordinate of this CDBTileKey.
std::string myLatStr
Definition: DtCDBTileKey.h:148
Definition: DtCDBTileKey.h:36
int myURef
Tile Upper index Reference.
Definition: DtCDBTileKey.h:133
Quadrant
Definition: DtCDBTileKey.h:33
bool operator()(const makVrv::oe::CDB::CDBTileKey &lhs, const makVrv::oe::CDB::CDBTileKey &rhs) const
Definition: DtCDBTileKey.h:170
Complete tile key hash.
Definition: DtCDBTileKey.h:177
int getLOD() const
Get the level of detail for this CDBTileKey.
Utility class to pass CDB lat/lon/ured/rref) values.
Definition: DtCDBTileVerbose.h:17
Definition: DtCDBTileKey.h:35
Definition: DtCDBTileKey.h:38
size_t operator()(const makVrv::oe::CDB::CDBTileKey &tileKey) const
Definition: DtCDBTileKey.h:161
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:150
int getLon() const
Get the lon coordinate of this CDBTileKey.
std::string myLodStr
Definition: DtCDBTileKey.h:152
int getRRef() const
Get the right direction index this CDBTileKey.