• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

Marble

Marble is an application that displays a view of the earth. It is both a valuable application in its own right, but also an example program that shows how you can use the Marble widgets in your own applications.

We have designed Marble so that you can use its components easily to enhance your application with geo services. This manual enumerates the components and describes how to use them in your own application.

The Marble application makes use of the following classes and widgets:

  1. MarbleWidget, the main widget in any application using the Marble framework. 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 MarbleControlBox, or the mouse.
  2. MarbleModel, the data storage class that holds the data that is visualized in the MarbleWidget. The MarbleModel is created internally and can be accessed using the model() method.

    This data model contains several separate datatypes, among them: tiles which provide the background map, 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.

  3. MarbleControlBox, the most advanced control widget for MarbleWidget. It can be used to navigate around the globe, zoom, search for placemarks like cities, control aspects of the view such as showing water bodies, ice, terrain types, and cities. It can also be used to control which dataset is used to provide the background for the image and the projection.

These three classes provide the core of the classes that comprise the Marble framework. You can use only them and get a very capable application.

In addition to this, there is also a simpler control widget called the MarbleNavigator that only controls panning and zooming. The MarbleNavigator is incorporated into the MarbleControlBox in the first tab. This control widget can be used in simpler application where theming, searching and other advanced controls are not needed.

To help you get started, we provide small example programs which you can find in the examples/cpp directory of the sources. They are also available online at KDE TechBase.

See also
Marble::MarbleWidget
Marble::MarbleModel
Marble::MarbleControlBox
Marble::MarbleNavigator
KDE TechBase: MarbleCPlusPlus
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal