marble
#include <TextureTile.h>
Public Member Functions | |
TextureTile (TileId const &tileId, QImage const &image, const Blending *blending) | |
~TextureTile () | |
Blending const * | blending () const |
int | byteCount () const |
QImage const * | image () const |
Public Member Functions inherited from Marble::Tile | |
Tile (TileId const &tileId) | |
virtual | ~Tile () |
TileId const & | id () const |
Detailed Description
A class that resembles an image tile (extends Tile).
This tile provides a bitmap image for a certain (geographic) area and for a given zoom level. Each Tile can be identified via a unique TileId.
A stack of Tiles that cover the same area and the same zoom level can be stored (and painted) layer by layer in a StackedTile object. For this purpose each Tile specifies a blending type.
Usually the tiles are organized in so called quad tiles: This means that with increasing zoom level four other tiles cover the same area as a single "parent" tile in the previous zoom level. These four tiles have the same pixel size as the "parent" tile.
The process of "filling the tile with data is done in stages: The State describes the current progress of loading the data (Empty, Scaled, Expired, StateUptodate).
The life time cycle of a Tile can also be influenced by its expiration time which will trigger a reload of the tile data.
Definition at line 60 of file TextureTile.h.
Constructor & Destructor Documentation
Marble::TextureTile::TextureTile | ( | TileId const & | tileId, |
QImage const & | image, | ||
const Blending * | blending | ||
) |
Definition at line 30 of file TextureTile.cpp.
Marble::TextureTile::~TextureTile | ( | ) |
Definition at line 38 of file TextureTile.cpp.
Member Function Documentation
|
inline |
Returns the kind of blending used for the texture tile.
- Returns
- A pointer to the blending object used for painting/merging the Tile.
If no blending is set the pointer returned will be zero.
Definition at line 95 of file TextureTile.h.
|
inline |
Definition at line 100 of file TextureTile.h.
|
inline |
Returns the QImage that describes the look of the Tile.
- Returns
- A non-zero pointer to a QImage associated with the tile.
Definition at line 90 of file TextureTile.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.