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

marble/src

Marble::PlaceMarkManager

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>

Inheritance diagram for Marble::PlaceMarkManager:

Inheritance graph
[legend]

List of all members.


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 (  ) 

Destroys the place mark manager.

Definition at line 44 of file PlaceMarkManager.cpp.


Member Function Documentation

void PlaceMarkManager::addPlaceMarkFile ( const QString &  fileName  ) 

Loads a new place mark file into the manager.

Definition at line 105 of file PlaceMarkManager.cpp.

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 
)

Loads a new KML file into the manager.

Definition at line 176 of file PlaceMarkManager.cpp.

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.

void PlaceMarkManager::loadStandardPlaceMarks ( const QString &  target = QString()  ) 

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:
  • PlaceMarkManager.h
  • PlaceMarkManager.cpp

marble/src

Skip menu "marble/src"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal