• 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
  • lib
  • marble
  • geodata
  • data
GeoDataContainer.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 2007 Murad Tagirov <tmurad@gmail.com>
9 // Copyright 2007 Inge Wallin <inge@lysator.liu.se>
10 // Copyright 2009 Patrick Spendrin <ps_ml@gmx.de>
11 //
12 
13 
14 #ifndef MARBLE_GEODATACONTAINER_H
15 #define MARBLE_GEODATACONTAINER_H
16 
17 #include <QVector>
18 
19 #include "geodata_export.h"
20 
21 #include "GeoDataFeature.h"
22 
23 namespace Marble
24 {
25 
26 class GeoDataContainerPrivate;
27 
28 class GeoDataFolder;
29 class GeoDataPlacemark;
30 class GeoDataLatLonAltBox;
31 
47 class GEODATA_EXPORT GeoDataContainer : public GeoDataFeature
48 {
49  public:
51  GeoDataContainer();
52  GeoDataContainer( const GeoDataContainer& other );
53  GeoDataContainerPrivate* p() const;
55  virtual ~GeoDataContainer();
56 
57 
65  GeoDataLatLonAltBox latLonAltBox() const;
66 
73  QVector<GeoDataFolder*> folderList() const;
74 
81  QVector<GeoDataFeature*> featureList() const;
82 
89  QVector<GeoDataPlacemark*> placemarkList() const;
90 
94  GeoDataFeature* child( int );
95 
99  const GeoDataFeature* child( int ) const;
100 
104  int childPosition( const GeoDataFeature *child) const;
105 
106  void insert( GeoDataFeature *other, int index );
107 
111  void append( GeoDataFeature *other );
112 
113  void remove( int index );
114 
118  int size() const;
119 
123  GeoDataFeature& at( int pos );
124  const GeoDataFeature& at( int pos ) const;
125 
129  GeoDataFeature& last();
130  const GeoDataFeature& last() const;
134  GeoDataFeature& first();
135  const GeoDataFeature& first() const;
136 
137  QVector<GeoDataFeature*>::Iterator begin();
138  QVector<GeoDataFeature*>::Iterator end();
139  QVector<GeoDataFeature*>::ConstIterator constBegin() const;
140  QVector<GeoDataFeature*>::ConstIterator constEnd() const;
141  void clear();
142 
147  virtual void pack( QDataStream& stream ) const;
152  virtual void unpack( QDataStream& stream );
153 private:
154  friend class GeoDataDocument;
155  friend class GeoDataFolder;
156  explicit GeoDataContainer( GeoDataContainerPrivate *priv );
157 };
158 
159 }
160 
161 #endif
Marble::GeoDataDocument
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:64
Marble::GeoDataContainer
A base class that can hold GeoDataFeatures.
Definition: GeoDataContainer.h:47
GeoDataFeature.h
Marble::GeoDataFolder
Definition: GeoDataFolder.h:50
Marble::GeoDataContainerPrivate
Definition: GeoDataContainer_p.h:21
Marble::GeoDataFeature
A base class for all geodata features.
Definition: GeoDataFeature.h:55
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
Marble::GeoDataLatLonAltBox
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 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