marble
Marble::TileLoaderHelper Namespace Reference
Functions | |
MARBLE_EXPORT int | columnToLevel (int levelZeroColumns, int column) |
MARBLE_EXPORT int | levelToColumn (int levelZeroColumns, int level) |
MARBLE_EXPORT int | levelToRow (int levelZeroRows, int level) |
MARBLE_EXPORT int | rowToLevel (int levelZeroRows, int row) |
Function Documentation
int Marble::TileLoaderHelper::columnToLevel | ( | int | levelZeroColumns, |
int | column | ||
) |
Get the tile level for the given maximum number of tile columns.
- Parameters
-
levelZeroColumns the number of columns in level zero column the maximum number of columns that a map level was tiled into.
- Returns
- the corresponding tile level. If the number of columns is invalid then "-1" gets returned so this case of wrong input data can get caught by the code which makes use of it.
Definition at line 66 of file TileLoaderHelper.cpp.
int Marble::TileLoaderHelper::levelToColumn | ( | int | levelZeroColumns, |
int | level | ||
) |
Get the maximum number of tile columns for a given tile level.
- Parameters
-
levelZeroColumns the number of columns in level zero level the tile level
- Returns
- the maximum number of columns that a map level was tiled into. If the tile level number is invalid then "-1" gets returned so this case of wrong input data can get caught by the code which makes use of it.
Definition at line 46 of file TileLoaderHelper.cpp.
int Marble::TileLoaderHelper::levelToRow | ( | int | levelZeroRows, |
int | level | ||
) |
Get the maximum number of tile rows for a given tile level.
- Parameters
-
levelZeroRows the number of rows in level zero level the tile level
- Returns
- the maximum number of rows that a map level was tiled into. If the tile level number is invalid then "-1" gets returned so this case of wrong input data can get caught by the code which makes use of it.
Definition at line 36 of file TileLoaderHelper.cpp.
int Marble::TileLoaderHelper::rowToLevel | ( | int | levelZeroRows, |
int | row | ||
) |
Get the tile level for the given maximum number of tile columns.
- Parameters
-
levelZeroRows the number of rows in level zero row the maximum number of rows that a map level was tiled into.
- Returns
- the corresponding tile level. If the number of rows is invalid then "-1" gets returned so this case of wrong input data can get caught by the code which makes use of it.
Definition at line 56 of file TileLoaderHelper.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.