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

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • data
GeoDataMultiGeometry_p.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 2009 Patrick Spendrin <ps_ml@gmx.de>
9 //
10 
11 #ifndef MARBLE_GEODATAMULTIGEOMETRYPRIVATE_H
12 #define MARBLE_GEODATAMULTIGEOMETRYPRIVATE_H
13 
14 #include "GeoDataGeometry_p.h"
15 
16 #include "GeoDataTypes.h"
17 
18 namespace Marble
19 {
20 
21 class GeoDataMultiGeometryPrivate : public GeoDataGeometryPrivate
22 {
23  public:
24  GeoDataMultiGeometryPrivate()
25  {
26  }
27 
28  ~GeoDataMultiGeometryPrivate()
29  {
30  qDeleteAll(m_vector);
31  }
32 
33  GeoDataMultiGeometryPrivate& operator=( const GeoDataMultiGeometryPrivate &other)
34  {
35  GeoDataGeometryPrivate::operator=( other );
36  qDeleteAll( m_vector );
37  foreach( GeoDataGeometry *geometry, other.m_vector ) {
38  m_vector.append( new GeoDataGeometry( *geometry ) );
39  }
40  return *this;
41  }
42 
43  virtual GeoDataGeometryPrivate* copy()
44  {
45  GeoDataMultiGeometryPrivate* copy = new GeoDataMultiGeometryPrivate;
46  *copy = *this;
47  return copy;
48  }
49 
50  virtual const char* nodeType() const
51  {
52  return GeoDataTypes::GeoDataMultiGeometryType;
53  }
54 
55  virtual EnumGeometryId geometryId() const
56  {
57  return GeoDataMultiGeometryId;
58  }
59  QVector<GeoDataGeometry*> m_vector;
60 };
61 
62 } // namespace Marble
63 
64 #endif
Marble::GeoDataTypes::GeoDataMultiGeometryType
const char * GeoDataMultiGeometryType
Definition: GeoDataTypes.cpp:60
Marble::GeoDataMultiGeometryPrivate::GeoDataMultiGeometryPrivate
GeoDataMultiGeometryPrivate()
Definition: GeoDataMultiGeometry_p.h:24
Marble::GeoDataGeometry
A base class for all geodata features.
Definition: GeoDataGeometry.h:47
GeoDataGeometry_p.h
Marble::GeoDataGeometryPrivate
Definition: GeoDataGeometry_p.h:25
Marble::GeoDataMultiGeometryPrivate::m_vector
QVector< GeoDataGeometry * > m_vector
Definition: GeoDataMultiGeometry_p.h:59
Marble::GeoDataMultiGeometryId
Definition: Serializable.h:46
Marble::GeoDataMultiGeometryPrivate::geometryId
virtual EnumGeometryId geometryId() const
Definition: GeoDataMultiGeometry_p.h:55
Marble::GeoDataGeometryPrivate::operator=
GeoDataGeometryPrivate & operator=(const GeoDataGeometryPrivate &other)
Definition: GeoDataGeometry_p.h:47
QVector
Marble::GeoDataMultiGeometryPrivate
Definition: GeoDataMultiGeometry_p.h:21
Marble::GeoDataMultiGeometryPrivate::operator=
GeoDataMultiGeometryPrivate & operator=(const GeoDataMultiGeometryPrivate &other)
Definition: GeoDataMultiGeometry_p.h:33
Marble::EnumGeometryId
EnumGeometryId
Definition: Serializable.h:40
Marble::GeoDataMultiGeometryPrivate::nodeType
virtual const char * nodeType() const
Definition: GeoDataMultiGeometry_p.h:50
GeoDataTypes.h
Marble::GeoDataMultiGeometryPrivate::~GeoDataMultiGeometryPrivate
~GeoDataMultiGeometryPrivate()
Definition: GeoDataMultiGeometry_p.h:28
Marble::GeoDataMultiGeometryPrivate::copy
virtual GeoDataGeometryPrivate * copy()
Definition: GeoDataMultiGeometry_p.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 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
  • 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