marble
TextureLayer.cpp
Go to the documentation of this file.
138 const bool propertyExists = m_textureLayerSettings->propertyValue( candidate->name(), enabled );
167 bool TextureLayer::Private::drawOrderLessThan( const GeoDataGroundOverlay* o1, const GeoDataGroundOverlay* o2 )
176 const GeoDataGroundOverlay *overlay = static_cast<GeoDataGroundOverlay *>( qvariant_cast<GeoDataObject *>( index.data( MarblePlacemarkModel::ObjectPointerRole ) ) );
182 int pos = qLowerBound( m_groundOverlayCache.begin(), m_groundOverlayCache.end(), overlay, drawOrderLessThan ) - m_groundOverlayCache.begin();
195 const GeoDataGroundOverlay *overlay = static_cast<GeoDataGroundOverlay *>( qvariant_cast<GeoDataObject *>( index.data( MarblePlacemarkModel::ObjectPointerRole ) ) );
197 int pos = qLowerBound( m_groundOverlayCache.begin(), m_groundOverlayCache.end(), overlay, drawOrderLessThan ) - m_groundOverlayCache.begin();
308 // choose the smaller dimension for selecting the tile level, leading to higher-resolution results
309 const int levelZeroWidth = d->m_layerDecorator.tileSize().width() * d->m_layerDecorator.tileColumnCount( 0 );
310 const int levelZeroHight = d->m_layerDecorator.tileSize().height() * d->m_layerDecorator.tileRowCount( 0 );
318 const qreal tileLevelF = qLn( linearLevel ) / qLn( 2.0 ) * 1.00001; // snap to the sharper tile level a tiny bit earlier
330 d->m_texmapper->mapTexture( painter, viewport, d->m_tileZoomLevel, dirtyRect, d->m_texcolorizer );
443 void TextureLayer::setMapTheme( const QVector<const GeoSceneTextureTile *> &textures, const GeoSceneGroup *textureLayerSettings, const QString &seaFile, const QString &landFile )
virtual bool render(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos="NONE", GeoSceneLayer *layer=0)
Renders the content provided by the layer on the viewport.
Definition: TextureLayer.cpp:282
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
int tileColumnCount(int level) const
Definition: TextureLayer.cpp:478
void repaintNeeded()
void append(const T &value)
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
void setShowCityLights(bool show)
Definition: TextureLayer.cpp:363
Browsing mode, normal operation of Marble, like a web browser.
Definition: MarbleGlobal.h:166
bool isNull() const
void tileLevelChanged(int)
QStringList renderPosition() const
Preferred level in the layer stack for the rendering.
Definition: TextureLayer.cpp:251
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void addLandDocument(const GeoDataDocument *landDocument)
Definition: TextureLayer.cpp:264
void setShowSunShading(bool show)
Definition: TextureLayer.cpp:348
void addSeaDocument(const GeoDataDocument *seaDocument)
Definition: TextureLayer.cpp:256
qint64 volatileCacheLimit() const
Definition: TextureLayer.cpp:488
Definition: SunLocator.h:33
int tileRowCount(int level) const
Definition: TextureLayer.cpp:483
Group inside the settings of a GeoScene document.
Definition: GeoSceneGroup.h:40
Definition: TextureLayer.h:38
void setProjection(Projection projection)
Set the Projection used for the map.
Definition: TextureLayer.cpp:377
Definition: RenderState.h:22
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
Definition: TextureColorizer.h:33
void setVolatileCacheLimit(quint64 kilobytes)
Definition: TextureLayer.cpp:415
const int REPAINT_SCHEDULING_INTERVAL
Definition: TextureLayer.cpp:42
This file contains the headers for ViewportParams.
The popularity index.
Definition: MarblePlacemarkModel.h:60
qreal centerLatitude() const
Definition: ViewportParams.cpp:294
virtual QString runtimeTrace() const
Returns a debug line for perfo/tracing issues.
Definition: TextureLayer.cpp:336
Definition: TileId.h:27
QVariant data(int role) const
int preferredRadiusFloor(int radius) const
Definition: TextureLayer.cpp:507
qreal centerLongitude() const
Definition: ViewportParams.cpp:289
void downloadStackedTile(const TileId &stackedTileId)
Definition: TextureLayer.cpp:438
void setMapTheme(const QVector< const GeoSceneTextureTile * > &textures, const GeoSceneGroup *textureLayerSettings, const QString &seaFile, const QString &landFile)
Definition: TextureLayer.cpp:443
Projection
This enum is used to choose the projection shown in the view.
Definition: MarbleGlobal.h:44
GeoSceneTiled::Projection tileProjection() const
Definition: TextureLayer.cpp:473
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
int preferredRadiusCeil(int radius) const
Definition: TextureLayer.cpp:493
Bulk download, for example "File/Download region".
Definition: MarbleGlobal.h:165
This class manages scheduled downloads.
Definition: HttpDownloadManager.h:44
Definition: TileLoader.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 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:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.