digiKam
Digikam::TileIndex Class Reference

Public Types

enum  Constants { MaxLevel = 9 , MaxIndexCount = MaxLevel+1 , Tiling = 10 , MaxLinearIndex = Tiling*Tiling }
 
enum  CornerPosition { CornerNW = 1 , CornerSW = 2 , CornerNE = 3 , CornerSE = 4 }
 
typedef QList< TileIndexList
 

Public Member Functions

void appendLatLonIndex (const int latIndex, const int lonIndex)
 
void appendLinearIndex (const int newIndex)
 
int at (const int getLevel) const
 
void clear ()
 
int indexCount () const
 
int indexLat (const int getLevel) const
 
int indexLon (const int getLevel) const
 
int lastIndex () const
 
QPoint latLonIndex (const int getLevel) const
 
void latLonIndex (const int getLevel, int *const latIndex, int *const lonIndex) const
 
int level () const
 
int linearIndex (const int getLevel) const
 
TileIndex mid (const int first, const int len) const
 
void oneUp ()
 
 TileIndex ()
 
GeoCoordinates toCoordinates () const
 
GeoCoordinates toCoordinates (const CornerPosition ofCorner) const
 
QIntList toIntList () const
 
 ~TileIndex ()
 

Static Public Member Functions

static TileIndex fromCoordinates (const Digikam::GeoCoordinates &coordinate, const int getLevel)
 
static TileIndex fromIntList (const QIntList &intList)
 
static bool indicesEqual (const TileIndex &a, const TileIndex &b, const int upToLevel)
 
static QList< QIntListlistToIntListList (const QList< TileIndex > &tileIndexList)
 

Member Typedef Documentation

◆ List

Member Enumeration Documentation

◆ Constants

Enumerator
MaxLevel 
MaxIndexCount 
Tiling 
MaxLinearIndex 

◆ CornerPosition

Enumerator
CornerNW 
CornerSW 
CornerNE 
CornerSE 

Constructor & Destructor Documentation

◆ TileIndex()

Digikam::TileIndex::TileIndex ( )
explicit

References MaxIndexCount.

Referenced by fromCoordinates().

◆ ~TileIndex()

Digikam::TileIndex::~TileIndex ( )

Member Function Documentation

◆ appendLatLonIndex()

void Digikam::TileIndex::appendLatLonIndex ( const int  latIndex,
const int  lonIndex 
)

References appendLinearIndex(), and Tiling.

◆ appendLinearIndex()

void Digikam::TileIndex::appendLinearIndex ( const int  newIndex)

◆ at()

int Digikam::TileIndex::at ( const int  getLevel) const

References GEOIFACE_ASSERT, and level().

◆ clear()

void Digikam::TileIndex::clear ( )

◆ fromCoordinates()

◆ fromIntList()

TileIndex Digikam::TileIndex::fromIntList ( const QIntList intList)
static

References appendLinearIndex().

◆ indexCount()

int Digikam::TileIndex::indexCount ( ) const

◆ indexLat()

int Digikam::TileIndex::indexLat ( const int  getLevel) const

References linearIndex(), and Tiling.

Referenced by latLonIndex(), and toCoordinates().

◆ indexLon()

int Digikam::TileIndex::indexLon ( const int  getLevel) const

References linearIndex(), and Tiling.

Referenced by latLonIndex(), and toCoordinates().

◆ indicesEqual()

bool Digikam::TileIndex::indicesEqual ( const TileIndex a,
const TileIndex b,
const int  upToLevel 
)
static

◆ lastIndex()

int Digikam::TileIndex::lastIndex ( ) const

◆ latLonIndex() [1/2]

QPoint Digikam::TileIndex::latLonIndex ( const int  getLevel) const

References indexLat(), and indexLon().

◆ latLonIndex() [2/2]

void Digikam::TileIndex::latLonIndex ( const int  getLevel,
int *const  latIndex,
int *const  lonIndex 
) const

◆ level()

◆ linearIndex()

int Digikam::TileIndex::linearIndex ( const int  getLevel) const

◆ listToIntListList()

QList< QIntList > Digikam::TileIndex::listToIntListList ( const QList< TileIndex > &  tileIndexList)
static

◆ mid()

TileIndex Digikam::TileIndex::mid ( const int  first,
const int  len 
) const

◆ oneUp()

void Digikam::TileIndex::oneUp ( )

References GEOIFACE_ASSERT.

◆ toCoordinates() [1/2]

◆ toCoordinates() [2/2]

GeoCoordinates Digikam::TileIndex::toCoordinates ( const CornerPosition  ofCorner) const

References indexLat(), indexLon(), MaxLevel, and Tiling.

◆ toIntList()

QIntList Digikam::TileIndex::toIntList ( ) const

The documentation for this class was generated from the following files: