[Marble-commits] KDE/kdeedu/marble/src/lib
Bernhard Beschow
bbeschow at cs.tu-berlin.de
Thu Mar 31 17:31:00 CEST 2011
SVN commit 1226642 by beschow:
move StackedTileLoader::findRelevantTextureLayers() into private class
M +8 -6 StackedTileLoader.cpp
M +0 -2 StackedTileLoader.h
--- trunk/KDE/kdeedu/marble/src/lib/StackedTileLoader.cpp #1226641:1226642
@@ -68,6 +68,8 @@
}
void detectMaxTileLevel();
+ QVector<GeoSceneTexture const *>
+ findRelevantTextureLayers( TileId const & stackedTileId ) const;
MergedLayerDecorator m_layerDecorator;
TileLoader *m_tileLoader;
@@ -213,7 +215,7 @@
// mDebug() << "load Tile from Disk: " << stackedTileId.toString();
QVector<QSharedPointer<TextureTile> > tiles;
- QVector<GeoSceneTexture const *> const textureLayers = findRelevantTextureLayers( stackedTileId );
+ QVector<GeoSceneTexture const *> const textureLayers = d->findRelevantTextureLayers( stackedTileId );
QVector<GeoSceneTexture const *>::const_iterator pos = textureLayers.constBegin();
QVector<GeoSceneTexture const *>::const_iterator const end = textureLayers.constEnd();
for (; pos != end; ++pos ) {
@@ -265,7 +267,7 @@
}
QVector<QSharedPointer<TextureTile> > tiles;
- QVector<GeoSceneTexture const *> const textureLayers = findRelevantTextureLayers( stackedTileId );
+ QVector<GeoSceneTexture const *> const textureLayers = d->findRelevantTextureLayers( stackedTileId );
QVector<GeoSceneTexture const *>::const_iterator pos = textureLayers.constBegin();
QVector<GeoSceneTexture const *>::const_iterator const end = textureLayers.constEnd();
for (; pos != end; ++pos ) {
@@ -290,7 +292,7 @@
void StackedTileLoader::downloadTile( TileId const & stackedTileId )
{
- QVector<GeoSceneTexture const *> const textureLayers = findRelevantTextureLayers( stackedTileId );
+ QVector<GeoSceneTexture const *> const textureLayers = d->findRelevantTextureLayers( stackedTileId );
QVector<GeoSceneTexture const *>::const_iterator pos = textureLayers.constBegin();
QVector<GeoSceneTexture const *>::const_iterator const end = textureLayers.constEnd();
for (; pos != end; ++pos ) {
@@ -423,11 +425,11 @@
//
QVector<GeoSceneTexture const *>
-StackedTileLoader::findRelevantTextureLayers( TileId const & stackedTileId ) const
+StackedTileLoaderPrivate::findRelevantTextureLayers( TileId const & stackedTileId ) const
{
QVector<GeoSceneTexture const *> result;
- QVector<GeoSceneTexture const *>::const_iterator pos = d->m_textureLayers.constBegin();
- QVector<GeoSceneTexture const *>::const_iterator const end = d->m_textureLayers.constEnd();
+ QVector<GeoSceneTexture const *>::const_iterator pos = m_textureLayers.constBegin();
+ QVector<GeoSceneTexture const *>::const_iterator const end = m_textureLayers.constEnd();
for (; pos != end; ++pos ) {
GeoSceneTexture const * const candidate = dynamic_cast<GeoSceneTexture const *>( *pos );
// check if layer is enabled. A layer is considered to be enabled if one of the
--- trunk/KDE/kdeedu/marble/src/lib/StackedTileLoader.h #1226641:1226642
@@ -167,8 +167,6 @@
private:
Q_DISABLE_COPY( StackedTileLoader )
- QVector<GeoSceneTexture const *>
- findRelevantTextureLayers( TileId const & stackedTileId ) const;
void mergeDecorations( StackedTile * const ) const;
void reloadCachedTile( StackedTile * const cachedTile, DownloadUsage const );
More information about the Marble-commits
mailing list