13 #include <osgEarth/GeoData>
20 namespace makVrv {
namespace oe {
namespace CDB
34 CDBTileKey(
int lod,
int lon,
int lat,
int rref,
int uref);
40 std::string
str()
const;
58 const osgEarth::GeoExtent&
getExtent()
const;
61 bool getChildren( std::vector< CDBTileKey >& children )
const;
67 static void getTileDimensions(
int lod,
int lon,
int lat,
int rref,
int uref,
double& out_width,
double& out_height);
76 osg::BoundingSphere
getBounds(
const osgEarth::Map* map)
const;
79 bool equals(
int lod,
int uref,
int rref)
const;
const osgEarth::GeoExtent & getExtent() const
Get the extent of this CDBTileKey.
Tile Key equal operation.
Definition: DtCDBTileKey.h:134
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.
Definition: DtCDBTileKey.h:28
size_t operator()(const makVrv::oe::CDB::CDBTileKey &tileKey) const
Definition: DtCDBTileKey.h:130
int getURef() const
Get the upper direction index of this CDBTileKey.
osgEarth::GeoExtent myExtent
Tile Extent.
Definition: DtCDBTileKey.h:106
static double getApproximateLodGridSpacing(int lod)
Return the Approximate Lod Grid Spacing for the current LOD (see table 2-4 in CDB spec 3...
int myLod
Tile Level Of Detail.
Definition: DtCDBTileKey.h:91
bool equals(int lod, int uref, int rref) const
Checks lod, uref and rref.
Latitude Longitude equal operation.
Definition: DtCDBTileKey.h:119
static void getTileDimensions(int lod, int lon, int lat, int rref, int uref, double &out_width, double &out_height)
Gets the width and height in degrees of a CDBTileKey.
static void createRootKeys(const CDBTileCache &tileCache, std::vector< CDBTileKey > &rootKeys)
Creates the root CDBTileKeys at lod -10.
bool operator()(const makVrv::oe::CDB::CDBTileKey &lhs, const makVrv::oe::CDB::CDBTileKey &rhs) const
Definition: DtCDBTileKey.h:136
osg::BoundingSphere getBounds(const osgEarth::Map *map) const
Gets the bounding sphere for a given TileKey.
int myLon
Tile Longitude.
Definition: DtCDBTileKey.h:100
std::ostream & operator<<(std::ostream &os, const CDBTileKey &key)
Output the CDB Tile Key stream representation.
Latitude Longitude hash key.
Definition: DtCDBTileKey.h:113
int myLat
Tile Latitude.
Definition: DtCDBTileKey.h:103
int myRRef
Tile Right index Reference.
Definition: DtCDBTileKey.h:97
int getLat() const
Get the lat coordinate of this CDBTileKey.
int myURef
Tile Upper index Reference.
Definition: DtCDBTileKey.h:94
bool operator()(const makVrv::oe::CDB::CDBTileKey &lhs, const makVrv::oe::CDB::CDBTileKey &rhs) const
Definition: DtCDBTileKey.h:121
Complete tile key hash.
Definition: DtCDBTileKey.h:128
int getLOD() const
Get the level of detail for this CDBTileKey.
CDBTileKey(int lod, int lon, int lat, int rref, int uref)
CTOR Creates a new CDBTileKey.
std::string str() const
Get the string representation of this key.
static int calcDLonZone(double coord_y)
Gets the longitude zone for the given y coordinate.
size_t operator()(const makVrv::oe::CDB::CDBTileKey &tileKey) const
Definition: DtCDBTileKey.h:115
size_t getFullHash(void) const
size_t getLatLongHash(void) const
Utility function to get hash off of lat, lon.
int getLon() const
Get the lon coordinate of this CDBTileKey.
int getRRef() const
Get the right direction index this CDBTileKey.
bool getChildren(std::vector< CDBTileKey > &children) const
Gets the children of this CDBTileKey.