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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • plugins
  • runner
  • osm
  • handlers
OsmNodeFactory.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2011 Konstantin Oblaukhov <oblaukhov.konstantin@gmail.com>
9 //
10 
11 #ifndef MARBLE_OSMNODEFACTORY_H
12 #define MARBLE_OSMNODEFACTORY_H
13 
14 #include <QMap>
15 
16 namespace Marble
17 {
18 
19 class GeoDataPoint;
20 
21 namespace osm
22 {
23 
24 // This is a class for keeping all the nodes accessible
25 // for when needed by ways. Ways have only the ids of
26 // nodes so with that id the GeoDataPoint is returned
27 
28 class OsmNodeFactory
29 {
30 public:
31  static void appendPoint( quint64 id, GeoDataPoint *p );
32  static GeoDataPoint *getPoint( quint64 id );
33 
39  static void clear();
40 
41 private:
42  static QMap<quint64, GeoDataPoint *> m_points;
43 };
44 
45 }
46 }
47 
48 #endif // MARBLE_OSMNODEFACTORY_H
Marble::GeoDataPoint
A Geometry object representing a 3d point.
Definition: GeoDataPoint.h:47
Marble::osm::OsmNodeFactory::getPoint
static GeoDataPoint * getPoint(quint64 id)
Definition: OsmNodeFactory.cpp:29
Marble::osm::OsmNodeFactory
Definition: OsmNodeFactory.h:28
Marble::osm::OsmNodeFactory::clear
static void clear()
Clean up nodes Removes all nodes from factory.
Definition: OsmNodeFactory.cpp:34
Marble::osm::OsmNodeFactory::appendPoint
static void appendPoint(quint64 id, GeoDataPoint *p)
Definition: OsmNodeFactory.cpp:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 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