Rok4Server  0.25.4
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | Private Attributes | List of all members
TileMatrix Class Reference

Handles a matrix of tiles. More...

#include <TileMatrix.h>

Collaboration diagram for TileMatrix:
Collaboration graph

Public Member Functions

 TileMatrix (std::string id, double res, double x0, double y0, int tileW, int tileH, long int matrixW, long int matrixH)
 Create a TileMatrix.
 TileMatrix (const TileMatrix &t)
 Copy Constructor.
TileMatrixoperator= (TileMatrix const &other)
 Assignement.
bool operator== (const TileMatrix &other) const
 Test whether 2 TileMatrix are equals.
bool operator!= (const TileMatrix &other) const
 Test whether 2 TileMatrix are different.
std::string getId ()
 Return the identifier.
double getRes ()
 Return the tile's resolution.
double getX0 ()
 Return the x-coordinate of the top right corner in the linked coordinate system.
double getY0 ()
 Return the y-coordinate of the top right corner in the linked coordinate system.
int getTileW ()
 Return the tile width.
int getTileH ()
 Return the tile height.
long int getMatrixW ()
 Return the number of tiles in the matrix width.
long int getMatrixH ()
 Return the number of tiles in the matrix height.
virtual ~TileMatrix ()
 Default destructor.

Private Attributes

std::string id
 Identifier.
double res
 Tiles resolution.
double x0
 X-coordinate of the top right corner in the linked coordinate system.
double y0
 Y-coordinate of the top right corner in the linked coordinate system.
int tileW
 Tile width.
int tileH
 Tile height.
long int matrixW
 Tiles number in the matrix width.
long int matrixH
 Tiles number in the matrix height.

Detailed Description

Handles a matrix of tiles.

Author
Institut national de l'information géographique et forestière

A TileMatrix represent a matrix of tiles. This matrix is part of a pyramid defined in a TileMatrixSet

XML definition of a TileMatrix :

<tileMatrix>
<id>Lvl 8</id>
<resolution>611.4962262814100</resolution>
<topLeftCornerX>-20037508.3427892480</topLeftCornerX>
<topLeftCornerY>20037508.3427892480</topLeftCornerY>
<tileWidth>256</tileWidth>
<tileHeight>256</tileHeight>
<matrixWidth>256</matrixWidth>
<matrixHeight>256</matrixHeight>
</tileMatrix>

Constructor & Destructor Documentation

TileMatrix::TileMatrix ( std::string  id,
double  res,
double  x0,
double  y0,
int  tileW,
int  tileH,
long int  matrixW,
long int  matrixH 
)
inline

Create a TileMatrix.

Parameters
[in]ididentifier
[in]restiles resolution
[in]x0x-coordinate of the top right corner in the linked coordinate system.
[in]y0y-coordinate of the top right corner in the linked coordinate system.
[in]tileWtile width
[in]tileHtile height
[in]matrixWtiles number in the matrix width
[in]matrixHtiles number in the matrix height
TileMatrix::TileMatrix ( const TileMatrix t)

Copy Constructor.

Create a TileMatrix from another

Parameters
[in]tTileMatrix to copy

Member Function Documentation

std::string TileMatrix::getId ( )

Return the identifier.

Returns
identifier

Here is the caller graph for this function:

long int TileMatrix::getMatrixH ( )

Return the number of tiles in the matrix height.

Returns
number of tiles in height

Here is the caller graph for this function:

long int TileMatrix::getMatrixW ( )

Return the number of tiles in the matrix width.

Returns
number of tiles in width

Here is the caller graph for this function:

double TileMatrix::getRes ( )

Return the tile's resolution.

Returns
resolution

Here is the caller graph for this function:

int TileMatrix::getTileH ( )

Return the tile height.

Returns
height

Here is the caller graph for this function:

int TileMatrix::getTileW ( )

Return the tile width.

Returns
width

Here is the caller graph for this function:

double TileMatrix::getX0 ( )

Return the x-coordinate of the top right corner in the linked coordinate system.

Returns
x-coordinate

Here is the caller graph for this function:

double TileMatrix::getY0 ( )

Return the y-coordinate of the top right corner in the linked coordinate system.

Returns
y-coordinate

Here is the caller graph for this function:

bool TileMatrix::operator!= ( const TileMatrix other) const

Test whether 2 TileMatrix are different.

Returns
true if one of their attributes is different
bool TileMatrix::operator== ( const TileMatrix other) const

Test whether 2 TileMatrix are equals.

Returns
true if all their attributes are identical

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