• 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
GeoDataRegion_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 Torsten Rahn <rahn@kde.org>
9 //
10 
11 #ifndef MARBLE_GEODATAREGIONPRIVATE_H
12 #define MARBLE_GEODATAREGIONPRIVATE_H
13 
14 #include "GeoDataRegion.h"
15 
16 #include "GeoDataTypes.h"
17 
18 namespace Marble
19 {
20 
21 class GeoDataRegionPrivate
22 {
23  public:
24  GeoDataRegionPrivate()
25  : m_parent( 0 ),
26  m_latLonAltBox( 0 ),
27  m_lod( 0 )
28  {
29  }
30 
31  GeoDataRegionPrivate( const GeoDataRegionPrivate& other )
32  : m_parent( other.m_parent )
33  {
34  if ( other.m_latLonAltBox ) {
35  m_latLonAltBox = new GeoDataLatLonAltBox( *other.m_latLonAltBox );
36  }
37  else {
38  m_latLonAltBox = 0;
39  }
40 
41  if ( other.m_lod ) {
42  m_lod = new GeoDataLod( *other.m_lod );
43  }
44  else {
45  m_lod = 0;
46  }
47  }
48 
49 
50  explicit GeoDataRegionPrivate( GeoDataFeature * feature )
51  : m_parent( feature ),
52  m_latLonAltBox( 0 ),
53  m_lod( 0 )
54  {
55  }
56 
57  ~GeoDataRegionPrivate()
58  {
59  delete m_latLonAltBox;
60  delete m_lod;
61  }
62 
63 
64  const char* nodeType() const
65  {
66  return GeoDataTypes::GeoDataRegionType;
67  }
68 
69  GeoDataFeature * m_parent;
70  GeoDataLatLonAltBox * m_latLonAltBox;
71  GeoDataLod * m_lod;
72 
73  private:
74  // Preventing usage of operator=
75  GeoDataRegionPrivate &operator=( const GeoDataRegionPrivate& );
76 };
77 
78 } // namespace Marble
79 
80 #endif
Marble::GeoDataRegionPrivate::~GeoDataRegionPrivate
~GeoDataRegionPrivate()
Definition: GeoDataRegion_p.h:57
Marble::GeoDataTypes::GeoDataRegionType
const char * GeoDataRegionType
Definition: GeoDataTypes.cpp:67
Marble::GeoDataRegionPrivate::GeoDataRegionPrivate
GeoDataRegionPrivate()
Definition: GeoDataRegion_p.h:24
GeoDataRegion.h
Marble::GeoDataRegionPrivate::nodeType
const char * nodeType() const
Definition: GeoDataRegion_p.h:64
Marble::GeoDataLod
The level of detail which indicates visibility and importance.
Definition: GeoDataLod.h:44
Marble::GeoDataRegionPrivate::m_lod
GeoDataLod * m_lod
Definition: GeoDataRegion_p.h:71
Marble::GeoDataRegionPrivate::m_parent
GeoDataFeature * m_parent
Definition: GeoDataRegion_p.h:69
Marble::GeoDataRegionPrivate::m_latLonAltBox
GeoDataLatLonAltBox * m_latLonAltBox
Definition: GeoDataRegion_p.h:70
Marble::GeoDataRegionPrivate::GeoDataRegionPrivate
GeoDataRegionPrivate(GeoDataFeature *feature)
Definition: GeoDataRegion_p.h:50
Marble::GeoDataFeature
A base class for all geodata features.
Definition: GeoDataFeature.h:55
Marble::GeoDataRegionPrivate::GeoDataRegionPrivate
GeoDataRegionPrivate(const GeoDataRegionPrivate &other)
Definition: GeoDataRegion_p.h:31
GeoDataTypes.h
Marble::GeoDataRegionPrivate
Definition: GeoDataRegion_p.h:21
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:50 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