marble/src
Marble::PlaceMarkManager Class Reference
This class is responsible for loading the place mark objects from the different files and file formats. More...
#include <PlaceMarkManager.h>

Signals | |
| void | geoDataDocumentLoaded (GeoDataDocument &) |
Public Member Functions | |
| void | addPlaceMarkFile (const QString &fileName) |
| void | clearPlaceMarks () |
| MarbleGeometryModel * | geomodel () const |
| void | loadKml (const QString &fileName, bool clearPrevious=false) |
| void | loadKmlFromData (const QString &data, bool clearPrevious=false) |
| void | loadStandardPlaceMarks (const QString &target=QString()) |
| MarblePlacemarkModel * | model () const |
| PlaceMarkManager (QObject *parent=0) | |
| void | setGeoModel (MarbleGeometryModel *model) |
| ~PlaceMarkManager () | |
Detailed Description
This class is responsible for loading the place mark objects from the different files and file formats.The loaded data are accessable via the MarblePlacemarkModel returned by model().
Definition at line 35 of file PlaceMarkManager.h.
Constructor & Destructor Documentation
| PlaceMarkManager::PlaceMarkManager | ( | QObject * | parent = 0 |
) | [explicit] |
Creates a new place mark manager.
- Parameters:
-
parent The parent object.
Definition at line 35 of file PlaceMarkManager.cpp.
| PlaceMarkManager::~PlaceMarkManager | ( | ) |
Member Function Documentation
| void PlaceMarkManager::addPlaceMarkFile | ( | const QString & | fileName | ) |
| void PlaceMarkManager::clearPlaceMarks | ( | ) |
Definition at line 78 of file PlaceMarkManager.cpp.
| void Marble::PlaceMarkManager::geoDataDocumentLoaded | ( | GeoDataDocument & | ) | [signal] |
| MarbleGeometryModel * PlaceMarkManager::geomodel | ( | ) | const |
Returns the GeometryModel which represents the GeoData tree of the place mark manager.
The above MarblePlacemarkModel only represents a part of the data (namely Placemarks)
Note: The manager has not the ownership of the model.
Definition at line 63 of file PlaceMarkManager.cpp.
| void PlaceMarkManager::loadKml | ( | const QString & | fileName, | |
| bool | clearPrevious = false | |||
| ) |
| void PlaceMarkManager::loadKmlFromData | ( | const QString & | data, | |
| bool | clearPrevious = false | |||
| ) |
Loads a new KML data as string into the manager.
Definition at line 226 of file PlaceMarkManager.cpp.
This methods loads the standard place mark files.
Note: Call this method after you have create a method!
Definition at line 83 of file PlaceMarkManager.cpp.
| MarblePlacemarkModel * PlaceMarkManager::model | ( | ) | const |
Returns the model which represents the data of the place mark manager.
Note: The manager has not the ownership of the model.
Definition at line 58 of file PlaceMarkManager.cpp.
| void PlaceMarkManager::setGeoModel | ( | MarbleGeometryModel * | model | ) |
Sets the GeometryModel to which the graphical views can be attached.
Definition at line 68 of file PlaceMarkManager.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference