Marble::MarbleWidget

Search for usage in LXR

Marble::MarbleWidget Class Reference

#include <MarbleWidget.h>

Inheritance diagram for Marble::MarbleWidget:

Properties

bool isLockedToSubSolarPoint
 
bool isSubSolarPointIconVisible
 
qreal latitude
 
qreal longitude
 
QString mapThemeId
 
int projection
 
RenderStatus renderStatus
 
bool showAtmosphere
 
bool showBorders
 
bool showCities
 
bool showCityLights
 
bool showClouds
 
bool showCompass
 
bool showCrosshairs
 
bool showGrid
 
bool showIceLayer
 
bool showLakes
 
bool showOtherPlaces
 
bool showOverviewMap
 
bool showPlaces
 
bool showRelief
 
bool showRivers
 
bool showScaleBar
 
bool showSunShading
 
bool showTerrain
 
ViewContext viewContext
 
quint64 volatileTileCacheLimit
 
int zoom
 
- Properties inherited from QWidget
 acceptDrops
 
 accessibleDescription
 
 accessibleName
 
 autoFillBackground
 
 baseSize
 
 childrenRect
 
 childrenRegion
 
 contextMenuPolicy
 
 cursor
 
 enabled
 
 focus
 
 focusPolicy
 
 font
 
 frameGeometry
 
 frameSize
 
 fullScreen
 
 geometry
 
 height
 
 inputMethodHints
 
 isActiveWindow
 
 layoutDirection
 
 locale
 
 maximized
 
 maximumHeight
 
 maximumSize
 
 maximumWidth
 
 minimized
 
 minimumHeight
 
 minimumSize
 
 minimumSizeHint
 
 minimumWidth
 
 modal
 
 mouseTracking
 
 normalGeometry
 
 palette
 
 pos
 
 rect
 
 size
 
 sizeHint
 
 sizeIncrement
 
 sizePolicy
 
 statusTip
 
 styleSheet
 
 tabletTracking
 
 toolTip
 
 toolTipDuration
 
 updatesEnabled
 
 visible
 
 whatsThis
 
 width
 
 windowFilePath
 
 windowFlags
 
 windowIcon
 
 windowIconText
 
 windowModality
 
 windowModified
 
 windowOpacity
 
 windowTitle
 
 x
 
 y
 
- Properties inherited from QObject
 objectName
 

Public Slots

Position management slots
void setRadius (int radius)
 
void setZoom (int zoom, FlyToMode mode=Instant)
 
void zoomView (int zoom, FlyToMode mode=Instant)
 
void zoomViewBy (int zoomStep, FlyToMode mode=Instant)
 
void zoomIn (FlyToMode mode=Automatic)
 
void zoomOut (FlyToMode mode=Automatic)
 
void setDistance (qreal distance)
 
void rotateBy (const qreal deltaLon, const qreal deltaLat, FlyToMode mode=Instant)
 
void centerOn (const qreal lon, const qreal lat, bool animated=false)
 
void centerOn (const GeoDataCoordinates &point, bool animated=false)
 
void centerOn (const GeoDataLatLonBox &box, bool animated=false)
 
void centerOn (const GeoDataPlacemark &placemark, bool animated=false)
 
void setCenterLatitude (qreal lat, FlyToMode mode=Instant)
 
void setCenterLongitude (qreal lon, FlyToMode mode=Instant)
 
void setHeading (qreal heading)
 
void moveLeft (FlyToMode mode=Automatic)
 
void moveRight (FlyToMode mode=Automatic)
 
void moveUp (FlyToMode mode=Automatic)
 
void moveDown (FlyToMode mode=Automatic)
 
void goHome (FlyToMode mode=Automatic)
 
void flyTo (const GeoDataLookAt &lookAt, FlyToMode mode=Automatic)
 
Float items and map appearance slots
void setProjection (int projection)
 
void setProjection (Projection projection)
 
void setMapThemeId (const QString &maptheme)
 
void setPropertyValue (const QString &name, bool value)
 
void setShowOverviewMap (bool visible)
 
void setShowScaleBar (bool visible)
 
void setShowCompass (bool visible)
 
void setShowClouds (bool visible)
 
void setShowSunShading (bool visible)
 
void setShowCityLights (bool visible)
 
void setLockToSubSolarPoint (bool visible)
 
void setSubSolarPointIconVisible (bool visible)
 
void setShowAtmosphere (bool visible)
 
void setShowCrosshairs (bool visible)
 
void setShowGrid (bool visible)
 
void setShowPlaces (bool visible)
 
void setShowCities (bool visible)
 
void setShowTerrain (bool visible)
 
void setShowOtherPlaces (bool visible)
 
void setShowRelief (bool visible)
 
void setShowIceLayer (bool visible)
 
void setShowBorders (bool visible)
 
void setShowRivers (bool visible)
 
void setShowLakes (bool visible)
 
void setShowFrameRate (bool visible)
 
void setShowBackground (bool visible)
 
void setShowTileId (bool visible)
 
void setShowRuntimeTrace (bool visible)
 
bool showRuntimeTrace () const
 
void setShowDebugPolygons (bool visible)
 
bool showDebugPolygons () const
 
void setShowDebugBatchRender (bool visible)
 
bool showDebugBatchRender () const
 
void setShowDebugPlacemarks (bool visible)
 
bool showDebugPlacemarks () const
 
void setDebugLevelTags (bool visible)
 
bool debugLevelTags () const
 
void setLevelToDebug (int level)
 
int levelToDebug () const
 
void setMapQualityForViewContext (MapQuality quality, ViewContext viewContext)
 
void setViewContext (ViewContext viewContext)
 
void setAnimationsEnabled (bool enabled)
 
Tile management slots
void clearVolatileTileCache ()
 
void setVolatileTileCacheLimit (quint64 kiloBytes)
 
void creatingTilesStart (TileCreator *creator, const QString &name, const QString &description)
 
void reloadMap ()
 
void downloadRegion (QList< TileCoordsPyramid > const &)
 

Public Member Functions

 MarbleWidget (QWidget *parent=nullptr)
 
Access to helper objects
MarbleModelmodel ()
 
const MarbleModelmodel () const
 
ViewportParamsviewport ()
 
const ViewportParamsviewport () const
 
MarbleWidgetPopupMenupopupMenu ()
 
MarbleWidgetInputHandler * inputHandler () const
 
void setInputHandler (MarbleWidgetInputHandler *handler)
 
QList< RenderPlugin * > renderPlugins () const
 
QList< AbstractFloatItem * > floatItems () const
 
AbstractFloatItemfloatItem (const QString &nameId) const
 
void readPluginSettings (QSettings &settings)
 
void writePluginSettings (QSettings &settings) const
 
ViewContext viewContext () const
 
GeoSceneDocumentmapTheme () const
 
QList< AbstractDataPluginItem * > whichItemAt (const QPoint &curpos) const
 
void addLayer (LayerInterface *layer)
 
void removeLayer (LayerInterface *layer)
 
RoutingLayerroutingLayer ()
 
PopupLayerpopupLayer ()
 
const StyleBuilder * styleBuilder () const
 
Projection projection () const
 
Visible map area
QString mapThemeId () const
 
QRegion mapRegion () const
 
int radius () const
 
int zoom () const
 
int tileZoomLevel () const
 
qreal distance () const
 
QString distanceString () const
 
int minimumZoom () const
 
int maximumZoom () const
 
Position management
bool screenCoordinates (qreal lon, qreal lat, qreal &x, qreal &y) const
 
bool geoCoordinates (int x, int y, qreal &lon, qreal &lat, GeoDataCoordinates::Unit=GeoDataCoordinates::Degree) const
 
qreal centerLongitude () const
 
qreal centerLatitude () const
 
qreal heading () const
 
qreal moveStep () const
 
GeoDataLookAt lookAt () const
 
GeoDataCoordinates focusPoint () const
 
void setFocusPoint (const GeoDataCoordinates &focusPoint)
 
void resetFocusPoint ()
 
qreal radiusFromDistance (qreal distance) const
 
qreal distanceFromRadius (qreal radius) const
 
qreal zoomFromDistance (qreal distance) const
 
qreal distanceFromZoom (qreal zoom) const
 
Placemark management
QList< const GeoDataFeature * > whichFeatureAt (const QPoint &) const
 
Float items and map appearance
bool showOverviewMap () const
 
bool showScaleBar () const
 
bool showCompass () const
 
bool showClouds () const
 
bool showSunShading () const
 
bool showCityLights () const
 
bool isLockedToSubSolarPoint () const
 
bool isSubSolarPointIconVisible () const
 
bool showAtmosphere () const
 
bool showCrosshairs () const
 
bool showGrid () const
 
bool showPlaces () const
 
bool showCities () const
 
bool showTerrain () const
 
bool showOtherPlaces () const
 
bool showRelief () const
 
bool showIceLayer () const
 
bool showBorders () const
 
bool showRivers () const
 
bool showLakes () const
 
bool showFrameRate () const
 
bool showBackground () const
 
MapQuality mapQuality (ViewContext=Still) const
 
bool animationsEnabled () const
 
AngleUnit defaultAngleUnit () const
 
void setDefaultAngleUnit (AngleUnit angleUnit)
 
QFont defaultFont () const
 
void setDefaultFont (const QFont &font)
 
Tile management
quint64 volatileTileCacheLimit () const
 
Miscellaneous
QPixmap mapScreenShot ()
 
RenderStatus renderStatus () const
 
RenderState renderState () const
 
void setHighlightEnabled (bool enabled)
 
- Public Member Functions inherited from QWidget
 QWidget (QWidget *parent, Qt::WindowFlags f)
 
bool acceptDrops () const const
 
QString accessibleDescription () const const
 
QString accessibleName () const const
 
QList< QAction * > actions () const const
 
void activateWindow ()
 
QActionaddAction (const QIcon &icon, const QString &text)
 
QActionaddAction (const QIcon &icon, const QString &text, Args &&... args)
 
QActionaddAction (const QIcon &icon, const QString &text, const QKeySequence &shortcut)
 
QActionaddAction (const QIcon &icon, const QString &text, const QKeySequence &shortcut, Args &&... args)
 
QActionaddAction (const QIcon &icon, const QString &text, const QKeySequence &shortcut, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
QActionaddAction (const QIcon &icon, const QString &text, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
QActionaddAction (const QString &text)
 
QActionaddAction (const QString &text, Args &&... args)
 
QActionaddAction (const QString &text, const QKeySequence &shortcut)
 
QActionaddAction (const QString &text, const QKeySequence &shortcut, Args &&... args)
 
QActionaddAction (const QString &text, const QKeySequence &shortcut, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
QActionaddAction (const QString &text, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
void addAction (QAction *action)
 
void addActions (const QList< QAction * > &actions)
 
void adjustSize ()
 
bool autoFillBackground () const const
 
QPalette::ColorRole backgroundRole () const const
 
QBackingStorebackingStore () const const
 
QSize baseSize () const const
 
QWidgetchildAt (const QPoint &p) const const
 
QWidgetchildAt (int x, int y) const const
 
QRect childrenRect () const const
 
QRegion childrenRegion () const const
 
void clearFocus ()
 
void clearMask ()
 
bool close ()
 
QMargins contentsMargins () const const
 
QRect contentsRect () const const
 
Qt::ContextMenuPolicy contextMenuPolicy () const const
 
QCursor cursor () const const
 
void customContextMenuRequested (const QPoint &pos)
 
WId effectiveWinId () const const
 
void ensurePolished () const const
 
Qt::FocusPolicy focusPolicy () const const
 
QWidgetfocusProxy () const const
 
QWidgetfocusWidget () const const
 
const QFontfont () const const
 
QFontInfo fontInfo () const const
 
QFontMetrics fontMetrics () const const
 
QPalette::ColorRole foregroundRole () const const
 
QRect frameGeometry () const const
 
QSize frameSize () const const
 
const QRectgeometry () const const
 
QPixmap grab (const QRect &rectangle)
 
void grabGesture (Qt::GestureType gesture, Qt::GestureFlags flags)
 
void grabKeyboard ()
 
void grabMouse ()
 
void grabMouse (const QCursor &cursor)
 
int grabShortcut (const QKeySequence &key, Qt::ShortcutContext context)
 
QGraphicsEffectgraphicsEffect () const const
 
QGraphicsProxyWidgetgraphicsProxyWidget () const const
 
bool hasEditFocus () const const
 
bool hasFocus () const const
 
virtual bool hasHeightForWidth () const const
 
bool hasMouseTracking () const const
 
bool hasTabletTracking () const const
 
int height () const const
 
virtual int heightForWidth (int w) const const
 
void hide ()
 
Qt::InputMethodHints inputMethodHints () const const
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const const
 
void insertAction (QAction *before, QAction *action)
 
void insertActions (QAction *before, const QList< QAction * > &actions)
 
bool isActiveWindow () const const
 
bool isAncestorOf (const QWidget *child) const const
 
bool isEnabled () const const
 
bool isEnabledTo (const QWidget *ancestor) const const
 
bool isFullScreen () const const
 
bool isHidden () const const
 
bool isMaximized () const const
 
bool isMinimized () const const
 
bool isModal () const const
 
bool isTopLevel () const const
 
bool isVisible () const const
 
bool isVisibleTo (const QWidget *ancestor) const const
 
bool isWindow () const const
 
bool isWindowModified () const const
 
QLayoutlayout () const const
 
Qt::LayoutDirection layoutDirection () const const
 
QLocale locale () const const
 
void lower ()
 
QPoint mapFrom (const QWidget *parent, const QPoint &pos) const const
 
QPointF mapFrom (const QWidget *parent, const QPointF &pos) const const
 
QPoint mapFromGlobal (const QPoint &pos) const const
 
QPointF mapFromGlobal (const QPointF &pos) const const
 
QPoint mapFromParent (const QPoint &pos) const const
 
QPointF mapFromParent (const QPointF &pos) const const
 
QPoint mapTo (const QWidget *parent, const QPoint &pos) const const
 
QPointF mapTo (const QWidget *parent, const QPointF &pos) const const
 
QPoint mapToGlobal (const QPoint &pos) const const
 
QPointF mapToGlobal (const QPointF &pos) const const
 
QPoint mapToParent (const QPoint &pos) const const
 
QPointF mapToParent (const QPointF &pos) const const
 
QRegion mask () const const
 
int maximumHeight () const const
 
QSize maximumSize () const const
 
int maximumWidth () const const
 
int minimumHeight () const const
 
QSize minimumSize () const const
 
virtual QSize minimumSizeHint () const const
 
int minimumWidth () const const
 
void move (const QPoint &)
 
void move (int x, int y)
 
QWidgetnativeParentWidget () const const
 
QWidgetnextInFocusChain () const const
 
QRect normalGeometry () const const
 
void overrideWindowFlags (Qt::WindowFlags flags)
 
virtual QPaintEnginepaintEngine () const const override
 
const QPalettepalette () const const
 
QWidgetparentWidget () const const
 
QPoint pos () const const
 
QWidgetpreviousInFocusChain () const const
 
 QWIDGETSIZE_MAX QWIDGETSIZE_MAX
 
void raise ()
 
QRect rect () const const
 
void releaseKeyboard ()
 
void releaseMouse ()
 
void releaseShortcut (int id)
 
void removeAction (QAction *action)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, RenderFlags renderFlags)
 
void render (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, RenderFlags renderFlags)
 
void repaint ()
 
void repaint (const QRect &rect)
 
void repaint (const QRegion &rgn)
 
void repaint (int x, int y, int w, int h)
 
void resize (const QSize &)
 
void resize (int w, int h)
 
bool restoreGeometry (const QByteArray &geometry)
 
QByteArray saveGeometry () const const
 
QScreenscreen () const const
 
void scroll (int dx, int dy)
 
void scroll (int dx, int dy, const QRect &r)
 
void setAcceptDrops (bool on)
 
void setAccessibleDescription (const QString &description)
 
void setAccessibleName (const QString &name)
 
void setAttribute (Qt::WidgetAttribute attribute, bool on)
 
void setAutoFillBackground (bool enabled)
 
void setBackgroundRole (QPalette::ColorRole role)
 
void setBaseSize (const QSize &)
 
void setBaseSize (int basew, int baseh)
 
void setContentsMargins (const QMargins &margins)
 
void setContentsMargins (int left, int top, int right, int bottom)
 
void setContextMenuPolicy (Qt::ContextMenuPolicy policy)
 
void setCursor (const QCursor &)
 
void setDisabled (bool disable)
 
void setEditFocus (bool enable)
 
void setEnabled (bool)
 
void setFixedHeight (int h)
 
void setFixedSize (const QSize &s)
 
void setFixedSize (int w, int h)
 
void setFixedWidth (int w)
 
void setFocus ()
 
void setFocus (Qt::FocusReason reason)
 
void setFocusPolicy (Qt::FocusPolicy policy)
 
void setFocusProxy (QWidget *w)
 
void setFont (const QFont &)
 
void setForegroundRole (QPalette::ColorRole role)
 
void setGeometry (const QRect &)
 
void setGeometry (int x, int y, int w, int h)
 
void setGraphicsEffect (QGraphicsEffect *effect)
 
void setHidden (bool hidden)
 
void setInputMethodHints (Qt::InputMethodHints hints)
 
void setLayout (QLayout *layout)
 
void setLayoutDirection (Qt::LayoutDirection direction)
 
void setLocale (const QLocale &locale)
 
void setMask (const QBitmap &bitmap)
 
void setMask (const QRegion &region)
 
void setMaximumHeight (int maxh)
 
void setMaximumSize (const QSize &)
 
void setMaximumSize (int maxw, int maxh)
 
void setMaximumWidth (int maxw)
 
void setMinimumHeight (int minh)
 
void setMinimumSize (const QSize &)
 
void setMinimumSize (int minw, int minh)
 
void setMinimumWidth (int minw)
 
void setMouseTracking (bool enable)
 
void setPalette (const QPalette &)
 
void setParent (QWidget *parent)
 
void setParent (QWidget *parent, Qt::WindowFlags f)
 
void setScreen (QScreen *screen)
 
void setShortcutAutoRepeat (int id, bool enable)
 
void setShortcutEnabled (int id, bool enable)
 
void setSizeIncrement (const QSize &)
 
void setSizeIncrement (int w, int h)
 
void setSizePolicy (QSizePolicy)
 
void setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical)
 
void setStatusTip (const QString &)
 
void setStyle (QStyle *style)
 
void setStyleSheet (const QString &styleSheet)
 
void setTabletTracking (bool enable)
 
void setToolTip (const QString &)
 
void setToolTipDuration (int msec)
 
void setUpdatesEnabled (bool enable)
 
void setupUi (QWidget *widget)
 
virtual void setVisible (bool visible)
 
void setWhatsThis (const QString &)
 
void setWindowFilePath (const QString &filePath)
 
void setWindowFlag (Qt::WindowType flag, bool on)
 
void setWindowFlags (Qt::WindowFlags type)
 
void setWindowIcon (const QIcon &icon)
 
void setWindowIconText (const QString &)
 
void setWindowModality (Qt::WindowModality windowModality)
 
void setWindowModified (bool)
 
void setWindowOpacity (qreal level)
 
void setWindowRole (const QString &role)
 
void setWindowState (Qt::WindowStates windowState)
 
void setWindowTitle (const QString &)
 
void show ()
 
void showFullScreen ()
 
void showMaximized ()
 
void showMinimized ()
 
void showNormal ()
 
QSize size () const const
 
virtual QSize sizeHint () const const
 
QSize sizeIncrement () const const
 
QSizePolicy sizePolicy () const const
 
void stackUnder (QWidget *w)
 
QString statusTip () const const
 
QStylestyle () const const
 
QString styleSheet () const const
 
bool testAttribute (Qt::WidgetAttribute attribute) const const
 
QString toolTip () const const
 
int toolTipDuration () const const
 
QWidgettopLevelWidget () const const
 
bool underMouse () const const
 
void ungrabGesture (Qt::GestureType gesture)
 
void unsetCursor ()
 
void unsetLayoutDirection ()
 
void unsetLocale ()
 
void update ()
 
void update (const QRect &rect)
 
void update (const QRegion &rgn)
 
void update (int x, int y, int w, int h)
 
void updateGeometry ()
 
bool updatesEnabled () const const
 
QRegion visibleRegion () const const
 
QString whatsThis () const const
 
int width () const const
 
QWidgetwindow () const const
 
QString windowFilePath () const const
 
Qt::WindowFlags windowFlags () const const
 
QWindowwindowHandle () const const
 
QIcon windowIcon () const const
 
void windowIconChanged (const QIcon &icon)
 
QString windowIconText () const const
 
void windowIconTextChanged (const QString &iconText)
 
Qt::WindowModality windowModality () const const
 
qreal windowOpacity () const const
 
QString windowRole () const const
 
Qt::WindowStates windowState () const const
 
QString windowTitle () const const
 
void windowTitleChanged (const QString &title)
 
Qt::WindowType windowType () const const
 
WId winId () const const
 
int x () const const
 
int y () const const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 
- Public Member Functions inherited from QPaintDevice
int colorCount () const const
 
int depth () const const
 
qreal devicePixelRatio () const const
 
qreal devicePixelRatioF () const const
 
int height () const const
 
int heightMM () const const
 
int logicalDpiX () const const
 
int logicalDpiY () const const
 
bool paintingActive () const const
 
int physicalDpiX () const const
 
int physicalDpiY () const const
 
int width () const const
 
int widthMM () const const
 

Miscellaneous slots

void notifyMouseClick (int x, int y)
 
void setSelection (const QRect &region)
 
void setInputEnabled (bool)
 
TextureLayer * textureLayer () const
 
VectorTileLayer * vectorTileLayer () const
 
void zoomChanged (int zoom)
 
void distanceChanged (const QString &distanceString)
 
void tileLevelChanged (int level)
 
void viewContextChanged (ViewContext newViewContext)
 
void themeChanged (const QString &theme)
 
void projectionChanged (Projection)
 
void mouseMoveGeoPosition (const QString &)
 
void mouseClickGeoPosition (qreal lon, qreal lat, GeoDataCoordinates::Unit)
 
void framesPerSecond (qreal fps)
 
void regionSelected (const GeoDataLatLonBox &boundingBox)
 
void pluginSettingsChanged ()
 
void renderPluginInitialized (RenderPlugin *renderPlugin)
 
void visibleLatLonAltBoxChanged (const GeoDataLatLonAltBox &visibleLatLonAltBox)
 
void renderStatusChanged (RenderStatus status)
 
void renderStateChanged (const RenderState &state)
 
void highlightedPlacemarksChanged (qreal lon, qreal lat, GeoDataCoordinates::Unit unit)
 
void propertyValueChanged (const QString &name, bool value)
 
void leaveEvent (QEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 
void connectNotify (const QMetaMethod &signal) override
 
void disconnectNotify (const QMetaMethod &signal) override
 
void changeEvent (QEvent *event) override
 
virtual void customPaint (GeoPainter *painter)
 

Additional Inherited Members

- Public Types inherited from QWidget
enum  RenderFlag
 
typedef  RenderFlags
 
- Public Types inherited from QObject
typedef  QObjectList
 
- Public Types inherited from QPaintDevice
enum  PaintDeviceMetric
 
- Static Public Member Functions inherited from QWidget
QWidgetcreateWindowContainer (QWindow *window, QWidget *parent, Qt::WindowFlags flags)
 
QWidgetfind (WId id)
 
QWidgetkeyboardGrabber ()
 
QWidgetmouseGrabber ()
 
void setTabOrder (QWidget *first, QWidget *second)
 
void setTabOrder (std::initializer_list< QWidget * > widgets)
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Public Attributes inherited from QWidget
 DrawChildren
 
 DrawWindowBackground
 
 IgnoreMask
 
- Public Attributes inherited from QPaintDevice
 PdmDepth
 
 PdmDevicePixelRatio
 
 PdmDevicePixelRatioScaled
 
 PdmDpiX
 
 PdmDpiY
 
 PdmHeight
 
 PdmHeightMM
 
 PdmNumColors
 
 PdmPhysicalDpiX
 
 PdmPhysicalDpiY
 
 PdmWidth
 
 PdmWidthMM
 
- Protected Member Functions inherited from QWidget
virtual void actionEvent (QActionEvent *event)
 
virtual void closeEvent (QCloseEvent *event)
 
virtual void contextMenuEvent (QContextMenuEvent *event)
 
void create (WId window, bool initializeWindow, bool destroyOldWindow)
 
void destroy (bool destroyWindow, bool destroySubWindows)
 
virtual void dragEnterEvent (QDragEnterEvent *event)
 
virtual void dragLeaveEvent (QDragLeaveEvent *event)
 
virtual void dragMoveEvent (QDragMoveEvent *event)
 
virtual void dropEvent (QDropEvent *event)
 
virtual void enterEvent (QEnterEvent *event)
 
virtual bool event (QEvent *event) override
 
virtual void focusInEvent (QFocusEvent *event)
 
bool focusNextChild ()
 
virtual bool focusNextPrevChild (bool next)
 
virtual void focusOutEvent (QFocusEvent *event)
 
bool focusPreviousChild ()
 
virtual void hideEvent (QHideEvent *event)
 
virtual void initPainter (QPainter *painter) const const override
 
virtual void inputMethodEvent (QInputMethodEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual int metric (PaintDeviceMetric m) const const override
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void moveEvent (QMoveEvent *event)
 
virtual bool nativeEvent (const QByteArray &eventType, void *message, qintptr *result)
 
virtual void showEvent (QShowEvent *event)
 
virtual void tabletEvent (QTabletEvent *event)
 
void updateMicroFocus (Qt::InputMethodQuery query)
 
virtual void wheelEvent (QWheelEvent *event)
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void customEvent (QEvent *event)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 
- Protected Member Functions inherited from QPaintDevice

Detailed Description

A widget class that displays a view of the earth.

This widget displays a view of the earth or any other globe, depending on which dataset is used. The user can navigate the globe using either a control widget, e.g. the MarbleNavigator, or the mouse. The mouse and keyboard control is done through a MarbleWidgetInputHandler. Only some aspects of the widget can be controlled by the mouse and/or keyboard.

By clicking on the globe and moving the mouse, the position can be changed. The user can also zoom by using the scroll wheel of the mouse in the widget. The zoom value is not tied to any units, but is an abstract value without any physical meaning. A value around 1000 shows the full globe in a normal-sized window. Higher zoom values give a more zoomed-in view.

The MarbleWidget owns a data model to work. This model is contained in the MarbleModel class, and it is painted by using a MarbleMap. The widget takes care of creating the map and model. A MarbleModel contains several datatypes, among them tiles which provide the background, vectors which provide things like country borders and coastlines and placemarks which can show points of interest, such as cities, mountain tops or the poles.

In addition to navigating with the mouse, you can also use it to get information about items on the map. You can either click on a placemark with the left mouse button or with the right mouse button anywhere on the map.

The left mouse button opens up a menu with all the placemarks within a certain distance from the mouse pointer. When you choose one item from the menu, Marble will open up a dialog window with some information about the placemark and also try to connect to Wikipedia to retrieve an article about it. If there is such an article, you will get a mini-browser window with the article in a tab.

See also
MarbleNavigator
MarbleMap
MarbleModel

Definition at line 97 of file MarbleWidget.h.

Property Documentation

◆ isLockedToSubSolarPoint

bool Marble::MarbleWidget::isLockedToSubSolarPoint
readwrite

Definition at line 120 of file MarbleWidget.h.

◆ isSubSolarPointIconVisible

bool Marble::MarbleWidget::isSubSolarPointIconVisible
readwrite

Definition at line 121 of file MarbleWidget.h.

◆ latitude

qreal Marble::MarbleWidget::latitude
readwrite

Definition at line 110 of file MarbleWidget.h.

◆ longitude

qreal Marble::MarbleWidget::longitude
readwrite

Definition at line 109 of file MarbleWidget.h.

◆ mapThemeId

QString Marble::MarbleWidget::mapThemeId
readwrite

Definition at line 106 of file MarbleWidget.h.

◆ projection

int Marble::MarbleWidget::projection
readwrite

Definition at line 107 of file MarbleWidget.h.

◆ renderStatus

RenderStatus Marble::MarbleWidget::renderStatus
read

Definition at line 139 of file MarbleWidget.h.

◆ showAtmosphere

bool Marble::MarbleWidget::showAtmosphere
readwrite

Definition at line 122 of file MarbleWidget.h.

◆ showBorders

bool Marble::MarbleWidget::showBorders
readwrite

Definition at line 133 of file MarbleWidget.h.

◆ showCities

bool Marble::MarbleWidget::showCities
readwrite

Definition at line 126 of file MarbleWidget.h.

◆ showCityLights

bool Marble::MarbleWidget::showCityLights
readwrite

Definition at line 119 of file MarbleWidget.h.

◆ showClouds

bool Marble::MarbleWidget::showClouds
readwrite

Definition at line 117 of file MarbleWidget.h.

◆ showCompass

bool Marble::MarbleWidget::showCompass
readwrite

Definition at line 114 of file MarbleWidget.h.

◆ showCrosshairs

bool Marble::MarbleWidget::showCrosshairs
readwrite

Definition at line 123 of file MarbleWidget.h.

◆ showGrid

bool Marble::MarbleWidget::showGrid
readwrite

Definition at line 115 of file MarbleWidget.h.

◆ showIceLayer

bool Marble::MarbleWidget::showIceLayer
readwrite

Definition at line 132 of file MarbleWidget.h.

◆ showLakes

bool Marble::MarbleWidget::showLakes
readwrite

Definition at line 135 of file MarbleWidget.h.

◆ showOtherPlaces

bool Marble::MarbleWidget::showOtherPlaces
readwrite

Definition at line 128 of file MarbleWidget.h.

◆ showOverviewMap

bool Marble::MarbleWidget::showOverviewMap
readwrite

Definition at line 112 of file MarbleWidget.h.

◆ showPlaces

bool Marble::MarbleWidget::showPlaces
readwrite

Definition at line 125 of file MarbleWidget.h.

◆ showRelief

bool Marble::MarbleWidget::showRelief
readwrite

Definition at line 130 of file MarbleWidget.h.

◆ showRivers

bool Marble::MarbleWidget::showRivers
readwrite

Definition at line 134 of file MarbleWidget.h.

◆ showScaleBar

bool Marble::MarbleWidget::showScaleBar
readwrite

Definition at line 113 of file MarbleWidget.h.

◆ showSunShading

bool Marble::MarbleWidget::showSunShading
readwrite

Definition at line 118 of file MarbleWidget.h.

◆ showTerrain

bool Marble::MarbleWidget::showTerrain
readwrite

Definition at line 127 of file MarbleWidget.h.

◆ viewContext

ViewContext Marble::MarbleWidget::viewContext
readwrite

Definition at line 137 of file MarbleWidget.h.

◆ volatileTileCacheLimit

quint64 Marble::MarbleWidget::volatileTileCacheLimit
readwrite

Definition at line 141 of file MarbleWidget.h.

◆ zoom

int Marble::MarbleWidget::zoom
readwrite

Definition at line 104 of file MarbleWidget.h.

Constructor & Destructor Documentation

◆ MarbleWidget()

Marble::MarbleWidget::MarbleWidget ( QWidget * parent = nullptr)
explicit

Construct a new MarbleWidget.

Parameters
parentthe parent widget

This constructor should be used when you will only use one MarbleWidget. The widget will create its own MarbleModel when created.

Definition at line 151 of file MarbleWidget.cpp.

◆ ~MarbleWidget()

Marble::MarbleWidget::~MarbleWidget ( )
override

Definition at line 159 of file MarbleWidget.cpp.

Member Function Documentation

◆ addLayer()

void Marble::MarbleWidget::addLayer ( LayerInterface * layer)

Add a layer to be included in rendering.

Definition at line 356 of file MarbleWidget.cpp.

◆ animationsEnabled()

bool Marble::MarbleWidget::animationsEnabled ( ) const

Retrieve whether travels to a point should get animated.

Definition at line 1025 of file MarbleWidget.cpp.

◆ centerLatitude()

qreal Marble::MarbleWidget::centerLatitude ( ) const

Return the latitude of the center point.

Returns
The latitude of the center point in degree.

Definition at line 671 of file MarbleWidget.cpp.

◆ centerLongitude()

qreal Marble::MarbleWidget::centerLongitude ( ) const

Return the longitude of the center point.

Returns
The longitude of the center point in degree.

Definition at line 676 of file MarbleWidget.cpp.

◆ centerOn [1/4]

void Marble::MarbleWidget::centerOn ( const GeoDataCoordinates & point,
bool animated = false )
slot

Center the view on a point This method centers the Marble map on the point described by the latitude and longitude in the GeoDataCoordinate parameter point.

It also zooms the map to be at the elevation described by the altitude. If this is not the desired functionality or you do not have an accurate altitude then use

See also
centerOn(qreal, qreal, bool)
Parameters
pointthe point in 3 dimensions above the globe to move the view to. It will always be looking vertically down.
animatedwhether to use animation

Definition at line 564 of file MarbleWidget.cpp.

◆ centerOn [2/4]

void Marble::MarbleWidget::centerOn ( const GeoDataLatLonBox & box,
bool animated = false )
slot

Center the view on a bounding box so that it completely fills the viewport This method not only centers on the center of the GeoDataLatLon box but it also adjusts the zoom of the marble widget so that the LatLon box provided fills the viewport.

Parameters
boxThe GeoDataLatLonBox to zoom and move the MarbleWidget to.
animatedwhether to use animation.

Definition at line 570 of file MarbleWidget.cpp.

◆ centerOn [3/4]

void Marble::MarbleWidget::centerOn ( const GeoDataPlacemark & placemark,
bool animated = false )
slot

Center the view on a placemark according to the following logic:

  • if the placemark has a lookAt, zoom and center on that lookAt
  • otherwise use the placemark geometry's latLonAltBox
    Parameters
    placemarkThe GeoDataPlacemark to zoom and move the MarbleWidget to.
    animatedWhether the centering is animated.

Definition at line 576 of file MarbleWidget.cpp.

◆ centerOn [4/4]

void Marble::MarbleWidget::centerOn ( const qreal lon,
const qreal lat,
bool animated = false )
slot

Center the view on a geographical point.

Parameters
latan angle in degrees parallel to the latitude lines +90(N) - -90(S)
lonan angle in degrees parallel to the longitude lines +180(W) - -180(E)
animatedwhether to use animation

Definition at line 558 of file MarbleWidget.cpp.

◆ changeEvent()

void Marble::MarbleWidget::changeEvent ( QEvent * event)
overrideprotectedvirtual

Reimplementation of the changeEvent() function in QWidget to react to changes of the enabled state.

Reimplemented from QWidget.

Definition at line 1143 of file MarbleWidget.cpp.

◆ clearVolatileTileCache

void Marble::MarbleWidget::clearVolatileTileCache ( )
slot

Definition at line 977 of file MarbleWidget.cpp.

◆ connectNotify()

void Marble::MarbleWidget::connectNotify ( const QMetaMethod & signal)
overrideprotectedvirtual

Reimplemented from QObject.

Definition at line 647 of file MarbleWidget.cpp.

◆ creatingTilesStart

void Marble::MarbleWidget::creatingTilesStart ( TileCreator * creator,
const QString & name,
const QString & description )
slot

A slot that is called when the model starts to create new tiles.

Parameters
creatorthe tile creator object.
namethe name of the created theme.
descriptiona descriptive text that can be shown in a dialog.
See also
creatingTilesProgress

This function is connected to the models signal with the same name. When the model needs to create a cache of tiles in several different resolutions, it will emit creatingTilesStart once with a name of the theme and a descriptive text. The widget can then pop up a dialog to explain why there is a delay. The model will then call creatingTilesProgress several times until the parameter reaches 100 (100%), after which the creation process is finished. After this there will be no more calls to creatingTilesProgress, and the poup dialog can then be closed.

Definition at line 990 of file MarbleWidget.cpp.

◆ customPaint()

void Marble::MarbleWidget::customPaint ( GeoPainter * painter)
protectedvirtual

Enables custom drawing onto the MarbleWidget straight after.

the globe and before all other layers has been rendered.

Parameters
painter
Deprecated
implement LayerInterface and add it using addLayer()

Definition at line 733 of file MarbleWidget.cpp.

◆ debugLevelTags

bool Marble::MarbleWidget::debugLevelTags ( ) const
slot

Definition at line 955 of file MarbleWidget.cpp.

◆ defaultAngleUnit()

AngleUnit Marble::MarbleWidget::defaultAngleUnit ( ) const

Definition at line 1035 of file MarbleWidget.cpp.

◆ defaultFont()

QFont Marble::MarbleWidget::defaultFont ( ) const

Definition at line 1045 of file MarbleWidget.cpp.

◆ disconnectNotify()

void Marble::MarbleWidget::disconnectNotify ( const QMetaMethod & signal)
overrideprotectedvirtual

Reimplemented from QObject.

Definition at line 654 of file MarbleWidget.cpp.

◆ distance()

qreal Marble::MarbleWidget::distance ( ) const

Return the current distance.

Definition at line 1060 of file MarbleWidget.cpp.

◆ distanceFromRadius()

qreal Marble::MarbleWidget::distanceFromRadius ( qreal radius) const

Return the distance (km) at the given globe radius (pixel)

Definition at line 1193 of file MarbleWidget.cpp.

◆ distanceFromZoom()

qreal Marble::MarbleWidget::distanceFromZoom ( qreal zoom) const

Returns the distance (km) corresponding to the given zoom value.

Definition at line 1203 of file MarbleWidget.cpp.

◆ distanceString()

QString Marble::MarbleWidget::distanceString ( ) const

Return the current distance string.

Definition at line 1070 of file MarbleWidget.cpp.

◆ downloadRegion

void Marble::MarbleWidget::downloadRegion ( QList< TileCoordsPyramid > const & pyramid)
slot

Definition at line 1163 of file MarbleWidget.cpp.

◆ floatItem()

AbstractFloatItem * Marble::MarbleWidget::floatItem ( const QString & nameId) const

Returns the FloatItem with the given id.

Returns
The pointer to the requested floatItem,

If no item is found the null pointer is returned.

Definition at line 1138 of file MarbleWidget.cpp.

◆ floatItems()

QList< AbstractFloatItem * > Marble::MarbleWidget::floatItems ( ) const

Returns a list of all FloatItems on the widget.

Returns
the list of the floatItems

Definition at line 1133 of file MarbleWidget.cpp.

◆ flyTo

void Marble::MarbleWidget::flyTo ( const GeoDataLookAt & lookAt,
FlyToMode mode = Automatic )
slot

Change the camera position to the given position.

Parameters
lookAtNew camera position. Changing the camera position means that both the current center position as well as the zoom value may change
modeInterpolation type for intermediate camera positions. Automatic (default) chooses a suitable interpolation among Instant, Lenar and Jump. Instant will directly set the new zoom and position values, while Linear results in a linear interpolation of intermediate center coordinates along the sphere and a linear interpolation of changes in the camera distance to the ground. Finally, Jump will behave the same as Linear with regard to the center position interpolation, but use a parabolic height increase towards the middle point of the intermediate positions. This appears like a jump of the camera.

Definition at line 1152 of file MarbleWidget.cpp.

◆ focusPoint()

GeoDataCoordinates Marble::MarbleWidget::focusPoint ( ) const
Returns
The current point of focus, e.g. the point that is not moved when changing the zoom level. If not set, it defaults to the center point.
See also
centerLongitude centerLatitude setFocusPoint resetFocusPoint

Definition at line 1173 of file MarbleWidget.cpp.

◆ geoCoordinates()

bool Marble::MarbleWidget::geoCoordinates ( int x,
int y,
qreal & lon,
qreal & lat,
GeoDataCoordinates::Unit unit = GeoDataCoordinates::Degree ) const

Get the earth coordinates corresponding to a pixel in the widget.

Parameters
xthe x coordinate of the pixel
ythe y coordinate of the pixel
lonthe longitude angle is returned through this parameter
latthe latitude angle is returned through this parameter
unitthe angle unit
Returns
true if the pixel (x, y) is within the globe false if the pixel (x, y) is outside the globe, i.e. in space.

Definition at line 666 of file MarbleWidget.cpp.

◆ goHome

void Marble::MarbleWidget::goHome ( FlyToMode mode = Automatic)
slot

Center the view on the default start point with the default zoom.

Definition at line 739 of file MarbleWidget.cpp.

◆ heading()

qreal Marble::MarbleWidget::heading ( ) const

Definition at line 1228 of file MarbleWidget.cpp.

◆ inputHandler()

MarbleWidgetInputHandler * Marble::MarbleWidget::inputHandler ( ) const

Returns the current input handler.

Definition at line 306 of file MarbleWidget.cpp.

◆ isLockedToSubSolarPoint()

bool Marble::MarbleWidget::isLockedToSubSolarPoint ( ) const

Return whether the globe is locked to the sub solar point.

Returns
if globe is locked to sub solar point

Definition at line 437 of file MarbleWidget.cpp.

◆ isSubSolarPointIconVisible()

bool Marble::MarbleWidget::isSubSolarPointIconVisible ( ) const

Return whether the sun icon is shown in the sub solar point.

Returns
visibility of the sun icon in the sub solar point

Definition at line 442 of file MarbleWidget.cpp.

◆ leaveEvent()

void Marble::MarbleWidget::leaveEvent ( QEvent * event)
overrideprotectedvirtual

Reimplementation of the leaveEvent() function in QWidget.

Reimplemented from QWidget.

Definition at line 633 of file MarbleWidget.cpp.

◆ levelToDebug

int Marble::MarbleWidget::levelToDebug ( ) const
slot

Definition at line 1238 of file MarbleWidget.cpp.

◆ lookAt()

GeoDataLookAt Marble::MarbleWidget::lookAt ( ) const

Return the lookAt.

Definition at line 1168 of file MarbleWidget.cpp.

◆ mapQuality()

MapQuality Marble::MarbleWidget::mapQuality ( ViewContext viewContext = Still) const

Retrieve the map quality depending on the view context.

Definition at line 998 of file MarbleWidget.cpp.

◆ mapRegion()

QRegion Marble::MarbleWidget::mapRegion ( ) const

Return the projected region which describes the (shape of the) projected surface.

Definition at line 681 of file MarbleWidget.cpp.

◆ mapScreenShot()

QPixmap Marble::MarbleWidget::mapScreenShot ( )

Return a QPixmap with the current contents of the widget.

Definition at line 376 of file MarbleWidget.cpp.

◆ mapTheme()

GeoSceneDocument * Marble::MarbleWidget::mapTheme ( ) const

Get the GeoSceneDocument object of the current map theme.

Definition at line 773 of file MarbleWidget.cpp.

◆ mapThemeId()

QString Marble::MarbleWidget::mapThemeId ( ) const

Get the ID of the current map theme To ensure that a unique identifier is being used the theme does NOT get represented by its name but the by relative location of the file that specifies the theme:

Example: mapThemeId = "earth/bluemarble/bluemarble.dgml"

Definition at line 745 of file MarbleWidget.cpp.

◆ maximumZoom()

int Marble::MarbleWidget::maximumZoom ( ) const

Return the minimum zoom value for the current map theme.

Definition at line 341 of file MarbleWidget.cpp.

◆ minimumZoom()

int Marble::MarbleWidget::minimumZoom ( ) const

Return the minimum zoom value for the current map theme.

Definition at line 336 of file MarbleWidget.cpp.

◆ model() [1/2]

MarbleModel * Marble::MarbleWidget::model ( )

Return the model that this view shows.

Definition at line 276 of file MarbleWidget.cpp.

◆ model() [2/2]

const MarbleModel * Marble::MarbleWidget::model ( ) const

Definition at line 281 of file MarbleWidget.cpp.

◆ moveDown

void Marble::MarbleWidget::moveDown ( FlyToMode mode = Automatic)
slot

Move down by the moveStep.

Definition at line 627 of file MarbleWidget.cpp.

◆ moveLeft

void Marble::MarbleWidget::moveLeft ( FlyToMode mode = Automatic)
slot

Move left by the moveStep.

Definition at line 609 of file MarbleWidget.cpp.

◆ moveRight

void Marble::MarbleWidget::moveRight ( FlyToMode mode = Automatic)
slot

Move right by the moveStep.

Definition at line 615 of file MarbleWidget.cpp.

◆ moveStep()

qreal Marble::MarbleWidget::moveStep ( ) const

Return how much the map will move if one of the move slots are called.

Returns
The move step.

Definition at line 321 of file MarbleWidget.cpp.

◆ moveUp

void Marble::MarbleWidget::moveUp ( FlyToMode mode = Automatic)
slot

Move up by the moveStep.

Definition at line 621 of file MarbleWidget.cpp.

◆ notifyMouseClick

void Marble::MarbleWidget::notifyMouseClick ( int x,
int y )
slot

Used to notify about the position of the mouse click.

Definition at line 965 of file MarbleWidget.cpp.

◆ paintEvent()

void Marble::MarbleWidget::paintEvent ( QPaintEvent * event)
overrideprotectedvirtual

Reimplementation of the paintEvent() function in QWidget.

Reimplemented from QWidget.

Definition at line 686 of file MarbleWidget.cpp.

◆ pluginSettingsChanged

void Marble::MarbleWidget::pluginSettingsChanged ( )
signal

This signal is emit when the settings of a plugin changed.

◆ popupLayer()

PopupLayer * Marble::MarbleWidget::popupLayer ( )

Definition at line 1213 of file MarbleWidget.cpp.

◆ popupMenu()

MarbleWidgetPopupMenu * Marble::MarbleWidget::popupMenu ( )

Definition at line 296 of file MarbleWidget.cpp.

◆ projection()

Projection Marble::MarbleWidget::projection ( ) const

Get the Projection used for the map.

Returns
Spherical a Globe
Equirectangular a flat map
Mercator another flat map

Definition at line 594 of file MarbleWidget.cpp.

◆ radius()

int Marble::MarbleWidget::radius ( ) const

Return the radius of the globe in pixels.

Definition at line 311 of file MarbleWidget.cpp.

◆ radiusFromDistance()

qreal Marble::MarbleWidget::radiusFromDistance ( qreal distance) const

Return the globe radius (pixel) for the given distance (km)

Definition at line 1188 of file MarbleWidget.cpp.

◆ readPluginSettings()

void Marble::MarbleWidget::readPluginSettings ( QSettings & settings)

Reads the plugin settings from the passed QSettings.

You shouldn't use this in a KDE application as these use KConfig. Here you could use MarblePart which is handling this automatically.

Parameters
settingsThe QSettings object to be used.

Definition at line 1099 of file MarbleWidget.cpp.

◆ regionSelected

void Marble::MarbleWidget::regionSelected ( const GeoDataLatLonBox & boundingBox)
signal

This signal is emit when a new rectangle region is selected over the map.

Parameters
boundingBoxThe geographical coordinates of the selected region

◆ reloadMap

void Marble::MarbleWidget::reloadMap ( )
slot

Re-download all visible tiles.

Definition at line 1158 of file MarbleWidget.cpp.

◆ removeLayer()

void Marble::MarbleWidget::removeLayer ( LayerInterface * layer)

Remove a layer from being included in rendering.

Definition at line 361 of file MarbleWidget.cpp.

◆ renderPluginInitialized

void Marble::MarbleWidget::renderPluginInitialized ( RenderPlugin * renderPlugin)
signal

Signal that a render item has been initialized.

◆ renderPlugins()

QList< RenderPlugin * > Marble::MarbleWidget::renderPlugins ( ) const

Returns a list of all RenderPlugins on the widget, this includes float items.

Returns
the list of RenderPlugins

Definition at line 1094 of file MarbleWidget.cpp.

◆ renderState()

RenderState Marble::MarbleWidget::renderState ( ) const

Detailed render status of the current map view.

Definition at line 386 of file MarbleWidget.cpp.

◆ renderStatus()

RenderStatus Marble::MarbleWidget::renderStatus ( ) const

Summarized render status of the current map view.

Todo
Enable this instead of the zoomView slot below for proper deprecation warnings around Marble 1.8
See also
renderState

Definition at line 381 of file MarbleWidget.cpp.

◆ renderStatusChanged

void Marble::MarbleWidget::renderStatusChanged ( RenderStatus status)
signal

Emitted when the layer rendering status has changed.

Parameters
statusNew render status

◆ resetFocusPoint()

void Marble::MarbleWidget::resetFocusPoint ( )

Invalidate any focus point set with setFocusPoint.

See also
focusPoint setFocusPoint

Definition at line 1183 of file MarbleWidget.cpp.

◆ resizeEvent()

void Marble::MarbleWidget::resizeEvent ( QResizeEvent * event)
overrideprotectedvirtual

Reimplementation of the resizeEvent() function in QWidget.

Reimplemented from QWidget.

Definition at line 638 of file MarbleWidget.cpp.

◆ rotateBy

void Marble::MarbleWidget::rotateBy ( const qreal deltaLon,
const qreal deltaLat,
FlyToMode mode = Instant )
slot

Rotate the view by the two angles phi and theta.

Parameters
deltaLonan angle that specifies the change in terms of longitude
deltaLatan angle that specifies the change in terms of latitude
modethe FlyToMode that will be used

This function rotates the view by two angles, deltaLon ("theta") and deltaLat ("phi"). If we start at (0, 0), the result will be the exact equivalent of (lon, lat), otherwise the resulting angle will be the sum of the previous position and the two offsets.

Definition at line 552 of file MarbleWidget.cpp.

◆ routingLayer()

RoutingLayer * Marble::MarbleWidget::routingLayer ( )

Definition at line 1208 of file MarbleWidget.cpp.

◆ screenCoordinates()

bool Marble::MarbleWidget::screenCoordinates ( qreal lon,
qreal lat,
qreal & x,
qreal & y ) const

Get the screen coordinates corresponding to geographical coordinates in the widget.

Parameters
lonthe lon coordinate of the requested pixel position
latthe lat coordinate of the requested pixel position
xthe x coordinate of the pixel is returned through this parameter
ythe y coordinate of the pixel is returned through this parameter
Returns
true if the geographical coordinates are visible on the screen false if the geographical coordinates are not visible on the screen

Definition at line 661 of file MarbleWidget.cpp.

◆ setAnimationsEnabled

void Marble::MarbleWidget::setAnimationsEnabled ( bool enabled)
slot

Set whether travels to a point should get animated.

Definition at line 1030 of file MarbleWidget.cpp.

◆ setCenterLatitude

void Marble::MarbleWidget::setCenterLatitude ( qreal lat,
FlyToMode mode = Instant )
slot

Set the latitude for the center point.

Parameters
latthe new value for the latitude in degree.
modethe FlyToMode that will be used.

Definition at line 582 of file MarbleWidget.cpp.

◆ setCenterLongitude

void Marble::MarbleWidget::setCenterLongitude ( qreal lon,
FlyToMode mode = Instant )
slot

Set the longitude for the center point.

Parameters
lonthe new value for the longitude in degree.
modethe FlyToMode that will be used.

Definition at line 588 of file MarbleWidget.cpp.

◆ setDebugLevelTags

void Marble::MarbleWidget::setDebugLevelTags ( bool visible)
slot

Set whether to render according to OSM indoor level tags.

Parameters
visiblevisibility of entities (placemarks, buildings etc.) level-wise

Definition at line 950 of file MarbleWidget.cpp.

◆ setDefaultAngleUnit()

void Marble::MarbleWidget::setDefaultAngleUnit ( AngleUnit angleUnit)

Definition at line 1040 of file MarbleWidget.cpp.

◆ setDefaultFont()

void Marble::MarbleWidget::setDefaultFont ( const QFont & font)

Definition at line 1050 of file MarbleWidget.cpp.

◆ setDistance

void Marble::MarbleWidget::setDistance ( qreal distance)
slot

Set the distance of the observer to the globe in km.

Parameters
distanceThe new distance in km.

Definition at line 1065 of file MarbleWidget.cpp.

◆ setFocusPoint()

void Marble::MarbleWidget::setFocusPoint ( const GeoDataCoordinates & focusPoint)

Change the point of focus, overridding any previously set focus point.

Parameters
focusPointNew focus point
See also
focusPoint resetFocusPoint

Definition at line 1178 of file MarbleWidget.cpp.

◆ setHeading

void Marble::MarbleWidget::setHeading ( qreal heading)
slot

Definition at line 1223 of file MarbleWidget.cpp.

◆ setHighlightEnabled()

void Marble::MarbleWidget::setHighlightEnabled ( bool enabled)

Toggle whether regions are highlighted when user selects them.

Definition at line 391 of file MarbleWidget.cpp.

◆ setInputEnabled

void Marble::MarbleWidget::setInputEnabled ( bool enabled)
slot

Definition at line 1075 of file MarbleWidget.cpp.

◆ setInputHandler()

void Marble::MarbleWidget::setInputHandler ( MarbleWidgetInputHandler * handler)

Set the input handler.

Definition at line 301 of file MarbleWidget.cpp.

◆ setLevelToDebug

void Marble::MarbleWidget::setLevelToDebug ( int level)
slot

Set the level to debug.

Parameters
levelthe level to debug

Definition at line 1233 of file MarbleWidget.cpp.

◆ setLockToSubSolarPoint

void Marble::MarbleWidget::setLockToSubSolarPoint ( bool visible)
slot

Set the globe locked to the sub solar point.

Parameters
visibleif globe is locked to the sub solar point

Definition at line 814 of file MarbleWidget.cpp.

◆ setMapQualityForViewContext

void Marble::MarbleWidget::setMapQualityForViewContext ( MapQuality quality,
ViewContext viewContext )
slot

Set the map quality for the specified view context.

Parameters
qualitymap quality for the specified view context
viewContextview context whose map quality should be set

Definition at line 1003 of file MarbleWidget.cpp.

◆ setMapThemeId

void Marble::MarbleWidget::setMapThemeId ( const QString & maptheme)
slot

Set a new map theme.

Parameters
mapthemeThe ID of the new maptheme. To ensure that a unique identifier is being used the theme does NOT get represented by its name but the by relative location of the file that specifies the theme:

Example: maptheme = "earth/bluemarble/bluemarble.dgml"

Definition at line 750 of file MarbleWidget.cpp.

◆ setProjection [1/2]

void Marble::MarbleWidget::setProjection ( int projection)
slot

Set the Projection used for the map.

Parameters
projectionprojection type (e.g. Spherical, Equirectangular, Mercator)

Definition at line 604 of file MarbleWidget.cpp.

◆ setProjection [2/2]

void Marble::MarbleWidget::setProjection ( Projection projection)
slot

Definition at line 599 of file MarbleWidget.cpp.

◆ setPropertyValue

void Marble::MarbleWidget::setPropertyValue ( const QString & name,
bool value )
slot

Sets the value of a map theme property.

Parameters
namename of the property
valuevalue of the property (usually: visibility)

Later on we might add a setPropertyType and a QVariant if needed.

Definition at line 778 of file MarbleWidget.cpp.

◆ setRadius

void Marble::MarbleWidget::setRadius ( int radius)
slot

Set the radius of the globe in pixels.

Parameters
radiusThe new globe radius value in pixels.

Definition at line 316 of file MarbleWidget.cpp.

◆ setSelection

void Marble::MarbleWidget::setSelection ( const QRect & region)
slot

Definition at line 1055 of file MarbleWidget.cpp.

◆ setShowAtmosphere

void Marble::MarbleWidget::setShowAtmosphere ( bool visible)
slot

Set whether the atmospheric glow is visible.

Parameters
visiblevisibility of the atmospheric glow

Definition at line 838 of file MarbleWidget.cpp.

◆ setShowBackground

void Marble::MarbleWidget::setShowBackground ( bool visible)
slot

Definition at line 905 of file MarbleWidget.cpp.

◆ setShowBorders

void Marble::MarbleWidget::setShowBorders ( bool visible)
slot

Set whether the borders visible.

Parameters
visiblevisibility of the borders

Definition at line 883 of file MarbleWidget.cpp.

◆ setShowCities

void Marble::MarbleWidget::setShowCities ( bool visible)
slot

Set whether the city place mark overlay is visible.

Parameters
visiblevisibility of the city place marks

Definition at line 858 of file MarbleWidget.cpp.

◆ setShowCityLights

void Marble::MarbleWidget::setShowCityLights ( bool visible)
slot

Set whether city lights instead of night shadow are visible.

Parameters
visiblevisibility of city lights

Definition at line 809 of file MarbleWidget.cpp.

◆ setShowClouds

void Marble::MarbleWidget::setShowClouds ( bool visible)
slot

Set whether the cloud cover is visible.

Parameters
visiblevisibility of the cloud cover

Definition at line 799 of file MarbleWidget.cpp.

◆ setShowCompass

void Marble::MarbleWidget::setShowCompass ( bool visible)
slot

Set whether the compass overlay is visible.

Parameters
visiblevisibility of the compass

Definition at line 794 of file MarbleWidget.cpp.

◆ setShowCrosshairs

void Marble::MarbleWidget::setShowCrosshairs ( bool visible)
slot

Set whether the crosshairs are visible.

Parameters
visiblevisibility of the crosshairs

Definition at line 843 of file MarbleWidget.cpp.

◆ setShowDebugBatchRender

void Marble::MarbleWidget::setShowDebugBatchRender ( bool visible)
slot

Set whether to enter the debug mode for batch rendering.

Parameters
visiblevisibility of the batch rendering

Definition at line 930 of file MarbleWidget.cpp.

◆ setShowDebugPlacemarks

void Marble::MarbleWidget::setShowDebugPlacemarks ( bool visible)
slot

Set whether to enter the debug mode for placemark drawing.

Parameters
visiblevisibility of the node debug mode

Definition at line 940 of file MarbleWidget.cpp.

◆ setShowDebugPolygons

void Marble::MarbleWidget::setShowDebugPolygons ( bool visible)
slot

Set whether to enter the debug mode for polygon node drawing.

Parameters
visiblevisibility of the node debug mode

Definition at line 920 of file MarbleWidget.cpp.

◆ setShowFrameRate

void Marble::MarbleWidget::setShowFrameRate ( bool visible)
slot

Set whether the frame rate gets shown.

Parameters
visiblevisibility of the frame rate

Definition at line 898 of file MarbleWidget.cpp.

◆ setShowGrid

void Marble::MarbleWidget::setShowGrid ( bool visible)
slot

Set whether the coordinate grid overlay is visible.

Parameters
visiblevisibility of the coordinate grid

Definition at line 848 of file MarbleWidget.cpp.

◆ setShowIceLayer

void Marble::MarbleWidget::setShowIceLayer ( bool visible)
slot

Set whether the ice layer is visible.

Parameters
visiblevisibility of the ice layer

Definition at line 878 of file MarbleWidget.cpp.

◆ setShowLakes

void Marble::MarbleWidget::setShowLakes ( bool visible)
slot

Set whether the lakes are visible.

Parameters
visiblevisibility of the lakes

Definition at line 893 of file MarbleWidget.cpp.

◆ setShowOtherPlaces

void Marble::MarbleWidget::setShowOtherPlaces ( bool visible)
slot

Set whether the other places overlay is visible.

Parameters
visiblevisibility of other places

Definition at line 868 of file MarbleWidget.cpp.

◆ setShowOverviewMap

void Marble::MarbleWidget::setShowOverviewMap ( bool visible)
slot

Set whether the overview map overlay is visible.

Parameters
visiblevisibility of the overview map

Definition at line 784 of file MarbleWidget.cpp.

◆ setShowPlaces

void Marble::MarbleWidget::setShowPlaces ( bool visible)
slot

Set whether the place mark overlay is visible.

Parameters
visiblevisibility of the place marks

Definition at line 853 of file MarbleWidget.cpp.

◆ setShowRelief

void Marble::MarbleWidget::setShowRelief ( bool visible)
slot

Set whether the relief is visible.

Parameters
visiblevisibility of the relief

Definition at line 873 of file MarbleWidget.cpp.

◆ setShowRivers

void Marble::MarbleWidget::setShowRivers ( bool visible)
slot

Set whether the rivers are visible.

Parameters
visiblevisibility of the rivers

Definition at line 888 of file MarbleWidget.cpp.

◆ setShowRuntimeTrace

void Marble::MarbleWidget::setShowRuntimeTrace ( bool visible)
slot

Set whether the runtime tracing for layers gets shown.

Parameters
visiblevisibility of the runtime tracing

Definition at line 910 of file MarbleWidget.cpp.

◆ setShowScaleBar

void Marble::MarbleWidget::setShowScaleBar ( bool visible)
slot

Set whether the scale bar overlay is visible.

Parameters
visiblevisibility of the scale bar

Definition at line 789 of file MarbleWidget.cpp.

◆ setShowSunShading

void Marble::MarbleWidget::setShowSunShading ( bool visible)
slot

Set whether the night shadow is visible.

Parameters
visiblevisibility of shadow

Definition at line 804 of file MarbleWidget.cpp.

◆ setShowTerrain

void Marble::MarbleWidget::setShowTerrain ( bool visible)
slot

Set whether the terrain place mark overlay is visible.

Parameters
visiblevisibility of the terrain place marks

Definition at line 863 of file MarbleWidget.cpp.

◆ setShowTileId

void Marble::MarbleWidget::setShowTileId ( bool visible)
slot

Set whether the is tile is visible NOTE: This is part of the transitional debug API and might be subject to changes until Marble 0.8.

Parameters
visiblevisibility of the tile

Definition at line 960 of file MarbleWidget.cpp.

◆ setSubSolarPointIconVisible

void Marble::MarbleWidget::setSubSolarPointIconVisible ( bool visible)
slot

Set whether the sun icon is shown in the sub solar point.

Parameters
visibleif the sun icon is shown in the sub solar point

Definition at line 822 of file MarbleWidget.cpp.

◆ setViewContext

void Marble::MarbleWidget::setViewContext ( ViewContext viewContext)
slot

Set the view context (i.e.

still or animated map)

Definition at line 1013 of file MarbleWidget.cpp.

◆ setVolatileTileCacheLimit

void Marble::MarbleWidget::setVolatileTileCacheLimit ( quint64 kiloBytes)
slot

Set the limit of the volatile (in RAM) tile cache.

Parameters
kiloBytesThe limit in kilobytes.

Definition at line 983 of file MarbleWidget.cpp.

◆ setZoom

void Marble::MarbleWidget::setZoom ( int zoom,
FlyToMode mode = Instant )
slot

Zoom the view to a certain zoomlevel.

Parameters
zoomthe new zoom level.
modethe FlyToMode that will be used.

The zoom level is an abstract value without physical interpretation. A zoom value around 1000 lets the viewer see all of the earth in the default window.

Definition at line 522 of file MarbleWidget.cpp.

◆ showAtmosphere()

bool Marble::MarbleWidget::showAtmosphere ( ) const

Return whether the atmospheric glow is visible.

Returns
The cloud cover visibility.

Definition at line 447 of file MarbleWidget.cpp.

◆ showBackground()

bool Marble::MarbleWidget::showBackground ( ) const

Definition at line 512 of file MarbleWidget.cpp.

◆ showBorders()

bool Marble::MarbleWidget::showBorders ( ) const

Return whether the borders are visible.

Returns
The border visibility.

Definition at line 492 of file MarbleWidget.cpp.

◆ showCities()

bool Marble::MarbleWidget::showCities ( ) const

Return whether the city place marks are visible.

Returns
The city place mark visibility.

Definition at line 467 of file MarbleWidget.cpp.

◆ showCityLights()

bool Marble::MarbleWidget::showCityLights ( ) const

Return whether the city lights are shown instead of the night shadow.

Returns
visibility of city lights

Definition at line 432 of file MarbleWidget.cpp.

◆ showClouds()

bool Marble::MarbleWidget::showClouds ( ) const

Return whether the cloud cover is visible.

Returns
The cloud cover visibility.

Definition at line 422 of file MarbleWidget.cpp.

◆ showCompass()

bool Marble::MarbleWidget::showCompass ( ) const

Return whether the compass bar is visible.

Returns
The compass visibility.

Definition at line 417 of file MarbleWidget.cpp.

◆ showCrosshairs()

bool Marble::MarbleWidget::showCrosshairs ( ) const

Return whether the crosshairs are visible.

Returns
The crosshairs' visibility.

Definition at line 452 of file MarbleWidget.cpp.

◆ showDebugBatchRender

bool Marble::MarbleWidget::showDebugBatchRender ( ) const
slot

Definition at line 935 of file MarbleWidget.cpp.

◆ showDebugPlacemarks

bool Marble::MarbleWidget::showDebugPlacemarks ( ) const
slot

Definition at line 945 of file MarbleWidget.cpp.

◆ showDebugPolygons

bool Marble::MarbleWidget::showDebugPolygons ( ) const
slot

Definition at line 925 of file MarbleWidget.cpp.

◆ showFrameRate()

bool Marble::MarbleWidget::showFrameRate ( ) const

Return whether the frame rate gets displayed.

Returns
the frame rates visibility

Definition at line 507 of file MarbleWidget.cpp.

◆ showGrid()

bool Marble::MarbleWidget::showGrid ( ) const

Return whether the coordinate grid is visible.

Returns
The coordinate grid visibility.

Definition at line 457 of file MarbleWidget.cpp.

◆ showIceLayer()

bool Marble::MarbleWidget::showIceLayer ( ) const

Return whether the ice layer is visible.

Returns
The ice layer visibility.

Definition at line 487 of file MarbleWidget.cpp.

◆ showLakes()

bool Marble::MarbleWidget::showLakes ( ) const

Return whether the lakes are visible.

Returns
The lakes' visibility.

Definition at line 502 of file MarbleWidget.cpp.

◆ showOtherPlaces()

bool Marble::MarbleWidget::showOtherPlaces ( ) const

Return whether other places are visible.

Returns
The visibility of other places.

Definition at line 477 of file MarbleWidget.cpp.

◆ showOverviewMap()

bool Marble::MarbleWidget::showOverviewMap ( ) const

Return whether the overview map is visible.

Returns
The overview map visibility.

Definition at line 407 of file MarbleWidget.cpp.

◆ showPlaces()

bool Marble::MarbleWidget::showPlaces ( ) const

Return whether the place marks are visible.

Returns
The place mark visibility.

Definition at line 462 of file MarbleWidget.cpp.

◆ showRelief()

bool Marble::MarbleWidget::showRelief ( ) const

Return whether the relief is visible.

Returns
The relief visibility.

Definition at line 482 of file MarbleWidget.cpp.

◆ showRivers()

bool Marble::MarbleWidget::showRivers ( ) const

Return whether the rivers are visible.

Returns
The rivers' visibility.

Definition at line 497 of file MarbleWidget.cpp.

◆ showRuntimeTrace

bool Marble::MarbleWidget::showRuntimeTrace ( ) const
slot

Definition at line 915 of file MarbleWidget.cpp.

◆ showScaleBar()

bool Marble::MarbleWidget::showScaleBar ( ) const

Return whether the scale bar is visible.

Returns
The scale bar visibility.

Definition at line 412 of file MarbleWidget.cpp.

◆ showSunShading()

bool Marble::MarbleWidget::showSunShading ( ) const

Return whether the night shadow is visible.

Returns
visibility of night shadow

Definition at line 427 of file MarbleWidget.cpp.

◆ showTerrain()

bool Marble::MarbleWidget::showTerrain ( ) const

Return whether the terrain place marks are visible.

Returns
The terrain place mark visibility.

Definition at line 472 of file MarbleWidget.cpp.

◆ styleBuilder()

const StyleBuilder * Marble::MarbleWidget::styleBuilder ( ) const
Since
0.26.0

Definition at line 1218 of file MarbleWidget.cpp.

◆ textureLayer

Marble::TextureLayer * Marble::MarbleWidget::textureLayer ( ) const
slot

Definition at line 366 of file MarbleWidget.cpp.

◆ themeChanged

void Marble::MarbleWidget::themeChanged ( const QString & theme)
signal

Signal that the theme has changed.

Parameters
themeName of the new theme.

◆ tileZoomLevel()

int Marble::MarbleWidget::tileZoomLevel ( ) const

Definition at line 331 of file MarbleWidget.cpp.

◆ vectorTileLayer

VectorTileLayer * Marble::MarbleWidget::vectorTileLayer ( ) const
slot

Definition at line 371 of file MarbleWidget.cpp.

◆ viewContext()

ViewContext Marble::MarbleWidget::viewContext ( ) const

Retrieve the view context (i.e.

still or animated map)

Definition at line 1008 of file MarbleWidget.cpp.

◆ viewport() [1/2]

ViewportParams * Marble::MarbleWidget::viewport ( )

Definition at line 286 of file MarbleWidget.cpp.

◆ viewport() [2/2]

const ViewportParams * Marble::MarbleWidget::viewport ( ) const

Definition at line 291 of file MarbleWidget.cpp.

◆ visibleLatLonAltBoxChanged

void Marble::MarbleWidget::visibleLatLonAltBoxChanged ( const GeoDataLatLonAltBox & visibleLatLonAltBox)
signal

This signal is emitted when the visible region of the map changes.

This typically happens when the user moves the map around or zooms.

◆ volatileTileCacheLimit()

quint64 Marble::MarbleWidget::volatileTileCacheLimit ( ) const

Returns the limit in kilobytes of the volatile (in RAM) tile cache.

Returns
the limit of volatile tile cache

Definition at line 517 of file MarbleWidget.cpp.

◆ whichFeatureAt()

QList< const GeoDataFeature * > Marble::MarbleWidget::whichFeatureAt ( const QPoint & curpos) const

Definition at line 346 of file MarbleWidget.cpp.

◆ whichItemAt()

QList< AbstractDataPluginItem * > Marble::MarbleWidget::whichItemAt ( const QPoint & curpos) const

Returns all widgets of dataPlugins on the position curpos.

Definition at line 351 of file MarbleWidget.cpp.

◆ writePluginSettings()

void Marble::MarbleWidget::writePluginSettings ( QSettings & settings) const

Writes the plugin settings in the passed QSettings.

You shouldn't use this in a KDE application as these use KConfig. Here you could use MarblePart which is handling this automatically.

Parameters
settingsThe QSettings object to be used.

Definition at line 1116 of file MarbleWidget.cpp.

◆ zoom()

int Marble::MarbleWidget::zoom ( ) const

Return the current zoom amount.

Definition at line 326 of file MarbleWidget.cpp.

◆ zoomChanged

void Marble::MarbleWidget::zoomChanged ( int zoom)
signal

Signal that the zoom has changed, and to what.

Parameters
zoomThe new zoom value.
See also
setZoom()

◆ zoomFromDistance()

qreal Marble::MarbleWidget::zoomFromDistance ( qreal distance) const

Returns the zoom value (no unit) corresponding to the given camera distance (km)

Definition at line 1198 of file MarbleWidget.cpp.

◆ zoomIn

void Marble::MarbleWidget::zoomIn ( FlyToMode mode = Automatic)
slot

Zoom in by the amount zoomStep.

Definition at line 540 of file MarbleWidget.cpp.

◆ zoomOut

void Marble::MarbleWidget::zoomOut ( FlyToMode mode = Automatic)
slot

Zoom out by the amount zoomStep.

Definition at line 546 of file MarbleWidget.cpp.

◆ zoomView

void Marble::MarbleWidget::zoomView ( int zoom,
FlyToMode mode = Instant )
slot
Deprecated
To be removed soon. Please use setZoom instead. Same parameters.

Definition at line 528 of file MarbleWidget.cpp.

◆ zoomViewBy

void Marble::MarbleWidget::zoomViewBy ( int zoomStep,
FlyToMode mode = Instant )
slot

Zoom the view by a certain step.

Parameters
zoomStepthe difference between the old zoom and the new
modethe FlyToMode that will be used.

Definition at line 534 of file MarbleWidget.cpp.


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 Fri Dec 6 2024 12:08:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.