marble
MarbleModel.cpp
Go to the documentation of this file.
87 m_homePoint( -9.4, 54.8, 0.0, GeoDataCoordinates::Degree ), // Some point that tackat defined. :-)
304 mDebug() << "Number of SRTM textures: " << d->m_mapTheme->map()->layer("srtm")->datasets().count();
313 if( d->m_mapTheme->head()->target().toLower() != d->m_planet->id() || radiusAttributeValue != d->m_planet->radius() ) {
659 const GeoSceneLayer * const layer = static_cast<const GeoSceneLayer*>( mapTheme->map()->layer( themeId ));
663 const GeoSceneTiled * const texture = static_cast<const GeoSceneTiled*>( layer->groundDataset() );
void clearPersistentTileCache()
Definition: MarbleModel.cpp:562
const GeoSceneAbstractDataset * groundDataset() const
Definition: GeoSceneLayer.cpp:108
void homeChanged(const GeoDataCoordinates &newHomePoint)
Emitted when the home location is changed.
virtual const char * nodeType() const
Provides type information for downcasting a GeoData.
Definition: GeoDataGeometry.cpp:77
Qt::PenStyle style() const
void addStyleMap(const GeoDataStyleMap &map)
Add a stylemap to the stylemap storage.
Definition: GeoDataDocument.cpp:166
void setPersistentTileCacheLimit(quint64 kiloBytes)
Set the limit of the persistent (on hard disc) tile cache.
Definition: MarbleModel.cpp:607
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
void removeGeoData(const QString &key)
Remove the file or raw data from the treeModel.
Definition: MarbleModel.cpp:736
void setMapThemeId(const QString &mapThemeId)
Set a new map theme to use.
Definition: MarbleModel.cpp:247
The representation of GeoData in a model This class represents all available data given by kml-data f...
Definition: GeoDataTreeModel.h:32
bool workOffline() const
Proxy Model for restructuring a Tree into a list.
Definition: kdescendantsproxymodel.h:69
void workOfflineChanged()
QItemSelectionModel * placemarkSelectionModel()
Definition: MarbleModel.cpp:507
GeoDataTreeModel * treeModel()
Return the list of Placemarks as a QAbstractItemModel *.
Definition: MarbleModel.cpp:477
static bool baseTilesAvailable(GeoSceneTiled const &texture)
Returns whether the mandatory most basic tile level is fully available for the given texture layer...
Definition: TileLoader.cpp:168
This file contains the headers for MarbleModel.
void setDownloadEnabled(const bool enable)
Switches loading on/off, useful for offline mode.
Definition: HttpDownloadManager.cpp:108
GeoSceneLayer * layer(const QString &name)
Return a layer by its name.
Definition: GeoSceneMap.cpp:102
GeoDataPolyStyle & polyStyle()
Return the label style of this style.
Definition: GeoDataStyle.cpp:153
QVector< GeoDataFeature * >::Iterator begin()
Definition: GeoDataContainer.cpp:331
Definition: TileCreatorDialog.h:31
const char * GeoDataPlacemarkType
Definition: GeoDataTypes.cpp:66
void removeAt(int i)
const char * GeoDataDocumentType
Definition: GeoDataTypes.cpp:38
void addGeoDataString(const QString &data, const QString &key="data")
Handle raw data loading into the treeModel.
Definition: MarbleModel.cpp:731
QString fileFormat() const
Definition: GeoSceneAbstractDataset.cpp:43
void setTrackedPlacemark(const GeoDataPlacemark *placemark)
Change the placemark tracked by this model.
Definition: MarbleModel.cpp:623
Definition: GeoSceneTiled.h:43
const GeoDataStyle * style() const
Return the style assigned to the placemark, or a default style if none has been set.
Definition: GeoDataFeature.cpp:709
const char * GeoDataGroundOverlayType
Definition: GeoDataTypes.cpp:44
a class to map different styles to one style
Definition: GeoDataStyleMap.h:38
const PluginManager * pluginManager() const
Definition: MarbleModel.cpp:634
const Planet * planet() const
Returns the planet object for the current map.
Definition: MarbleModel.cpp:644
const GeoDataPlacemark * trackedPlacemark() const
Returns the placemark being tracked by this model or 0 if no placemark is currently tracked...
Definition: MarbleModel.cpp:629
int size() const
Contents used inside a layer.
Definition: GeoSceneAbstractDataset.h:37
GeoDataGeometry * geometry()
The geometry of the GeoDataPlacemark is to be rendered to the marble map along with the icon at the c...
Definition: GeoDataPlacemark.cpp:152
Definition: PositionTracking.h:31
const QColor & color() const
QList< const DownloadPolicy * > downloadPolicies() const
Definition: GeoSceneTiled.cpp:248
This class is responsible for loading the book mark objects from the files and various book mark oper...
Definition: BookmarkManager.h:35
QColor color() const
Definition: SunLocator.h:33
void addGeoDataFile(const QString &filename)
Handle file loading into the treeModel.
Definition: MarbleModel.cpp:725
QVariant property(const char *name) const
void setWorkOffline(bool workOffline)
Definition: MarbleModel.cpp:843
void assignFillColors(const QString &filePath)
Definition: MarbleModel.cpp:754
void assignNewStyle(const QString &filePath, GeoDataStyle *style)
Definition: MarbleModel.cpp:417
void themeChanged(QString mapTheme)
Signal that the map theme has changed, and to which theme.
void home(qreal &lon, qreal &lat, int &zoom) const
get the home point
Definition: MarbleModel.cpp:446
Definition: GeoDataDocument.h:42
bool isEmpty() const
Definition: TileCreator.h:53
This class is responsible for loading the different files into Geodata model.
Definition: FileManager.h:36
bool isEmpty() const
PositionTracking * positionTracking() const
Definition: MarbleModel.cpp:512
Definition: Planet.h:25
static GeoSceneDocument * loadMapTheme(const QString &mapThemeStringID)
Returns the map theme as a GeoSceneDocument object.
Definition: MapThemeManager.cpp:155
quint64 persistentTileCacheLimit() const
Returns the limit in kilobytes of the persistent (on hard disc) tile cache.
Definition: MarbleModel.cpp:557
void addStyle(const GeoDataStyle &style)
Add a style to the style storage.
Definition: GeoDataDocument.cpp:134
void updateProperty(const QString &property, bool value)
Definition: MarbleModel.cpp:741
void setClockTimezone(int timeInSec)
Definition: MarbleModel.cpp:705
void setClockDateTime(const QDateTime &datetime)
Definition: MarbleModel.cpp:685
const char * dgmlValue_geodata
Definition: DgmlAuxillaryDictionary.cpp:41
Definition: ElevationModel.h:33
void setStyleUrl(const QString &value)
Set the styleUrl of this feature to value.
Definition: GeoDataFeature.cpp:631
QString toLower() const
Delegates data retrieval and model updates to the appropriate routing provider.
Definition: RoutingManager.h:37
void setTileFormat(const QString &format)
Definition: TileCreator.cpp:581
A container for features parsed from the DGML file.
Definition: GeoSceneDocument.h:44
void setHome(qreal lon, qreal lat, int zoom=1050)
Set the home point.
Definition: MarbleModel.cpp:452
Definition: GeoDataDocument.h:41
QVector< GeoDataFeature * >::Iterator end()
Definition: GeoDataContainer.cpp:336
QAbstractItemModel * groundOverlayModel()
Definition: MarbleModel.cpp:497
int width() const
bool hasVectorLayers() const
Checks for valid layers that contain vector data.
Definition: GeoSceneMap.cpp:203
QVector< GeoSceneAbstractDataset * > datasets() const
Definition: GeoSceneLayer.cpp:124
BookmarkManager * bookmarkManager()
return instance of BookmarkManager
Definition: MarbleModel.cpp:213
void setAlphaF(qreal alpha)
iterator insert(const Key &key, const T &value)
HttpDownloadManager * downloadManager()
Return the downloadmanager to load missing tiles.
Definition: MarbleModel.cpp:466
void setStyle(GeoDataStyle *style)
Sets the style of the placemark.
Definition: GeoDataFeature.cpp:735
const_iterator constEnd() const
const_iterator constBegin() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Definition: MarbleClock.h:25
specifies the style how polygons are drawn
Definition: GeoDataPolyStyle.h:34
void setLegend(QTextDocument *document)
Definition: MarbleModel.cpp:720
virtual const char * nodeType() const
Provides type information for downcasting a GeoData.
Definition: GeoDataFeature.cpp:158
void trackedPlacemarkChanged(const GeoDataPlacemark *placemark)
Emitted when the placemark tracked by this model has changed.
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
const char * dgmlValue_vector
Definition: DgmlAuxillaryDictionary.cpp:39
QAbstractItemModel * placemarkModel()
Definition: MarbleModel.cpp:487
bool hasTextureLayers() const
Checks for valid layers that contain texture data.
Definition: GeoSceneMap.cpp:190
This class manages scheduled downloads.
Definition: HttpDownloadManager.h:44
Definition: GeoSceneGeodata.h:24
void setColorIndex(quint8 colorIndex)
Set the color index which will be used to assign color to brush.
Definition: GeoDataPolyStyle.cpp:120
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 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:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.