• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • Marble
  • TileLoaderHelper
Functions
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
levelZeroColumnsthe number of columns in level zero
columnthe 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
levelZeroColumnsthe number of columns in level zero
levelthe 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
levelZeroRowsthe number of rows in level zero
levelthe 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
levelZeroRowsthe number of rows in level zero
rowthe 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

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal