Marble::TextureTile

Search for usage in LXR

Marble::TextureTile Class Reference

#include <TextureTile.h>

Inheritance diagram for Marble::TextureTile:

Public Member Functions

 TextureTile (TileId const &tileId, QImage const &image, const Blending *blending)
 
Blending const * blending () const
 
int byteCount () const
 
QImage const * image () const
 
- Public Member Functions inherited from Marble::Tile
 Tile (TileId const &tileId)
 
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 45 of file TextureTile.h.

Constructor & Destructor Documentation

◆ TextureTile()

Marble::TextureTile::TextureTile ( TileId const & tileId,
QImage const & image,
const Blending * blending )

Definition at line 16 of file TextureTile.cpp.

Member Function Documentation

◆ blending()

Blending const * Marble::TextureTile::blending ( ) const
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 79 of file TextureTile.h.

◆ byteCount()

int Marble::TextureTile::byteCount ( ) const
inline

Definition at line 84 of file TextureTile.h.

◆ image()

QImage const * Marble::TextureTile::image ( ) const
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 74 of file TextureTile.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.