marble
thumbnailer.cpp
Go to the documentation of this file.
69 connect(model->treeModel(), SIGNAL(added(GeoDataObject*)), this, SLOT(onGeoDataObjectAdded(GeoDataObject*)));
89 m_marbleMap.paint( geoPainter, QRect() ); // TODO: dirtyRect seems currently unused, make sure it is
92 disconnect(model->treeModel(), SIGNAL(added(GeoDataObject*)), this, SLOT(onGeoDataObjectAdded(GeoDataObject*)));
123 const int horizontalRadius = ( 0.25 * M_PI ) * ( viewparams->height() / latLonAltBox.height() );
126 newRadius = qMax<int>(radius(m_marbleMap.minimumZoom()), qMin<int>(newRadius, radius(m_marbleMap.maximumZoom())));
129 m_marbleMap.centerOn( center.longitude(GeoDataCoordinates::Degree), center.latitude(GeoDataCoordinates::Degree) );
void setInterval(int msec)
void quit()
void removeGeoData(const QString &key)
Remove the file or raw data from the treeModel.
Definition: MarbleModel.cpp:736
GeoDataTreeModel * treeModel()
Return the list of Placemarks as a QAbstractItemModel *.
Definition: MarbleModel.cpp:477
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
This file contains the headers for MarbleModel.
const char * GeoDataDocumentType
Definition: GeoDataTypes.cpp:38
void setMapQualityForViewContext(MapQuality qualityForViewContext, ViewContext viewContext)
Definition: MarbleMap.cpp:299
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void setViewContext(ViewContext viewContext)
Definition: MarbleMap.cpp:317
void clear()
virtual bool create(const QString &path, int width, int height, QImage &image)
Definition: thumbnailer.cpp:59
void addGeoDataFile(const QString &filename)
Handle file loading into the treeModel.
Definition: MarbleModel.cpp:725
int maximumZoom() const
return the minimum zoom value for the current map theme.
Definition: MarbleMap.cpp:430
void fill(uint pixelValue)
int exec(QFlags< QEventLoop::ProcessEventsFlag > flags)
void paint(GeoPainter &painter, const QRect &dirtyRect)
Paint the map using a give painter.
Definition: MarbleMap.cpp:739
int minimumZoom() const
return the minimum zoom value for the current map theme.
Definition: MarbleMap.cpp:422
QList< RenderPlugin * > renderPlugins() const
Returns a list of all RenderPlugins in the model, this includes float items.
Definition: MarbleMap.cpp:1206
void setProjection(Projection projection)
Set the Projection used for the map.
Definition: MarbleMap.cpp:665
This file contains the headers for ViewportParams.
void stop()
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
virtual ~GeoDataThumbnailer()
Definition: thumbnailer.cpp:55
void start(int msec)
void centerOn(const qreal lon, const qreal lat)
Center the view on a geographical point.
Definition: MarbleMap.cpp:643
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
The abstract class that creates a renderable item.
Definition: RenderPlugin.h:43
void setSingleShot(bool singleShot)
MapQuality mapQuality(ViewContext viewContext) const
Definition: MarbleMap.cpp:307
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.