• 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
GeoDataPolygon_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_GEODATAPOLYGONPRIVATE_H
12 #define MARBLE_GEODATAPOLYGONPRIVATE_H
13 
14 #include "GeoDataGeometry_p.h"
15 
16 #include "GeoDataTypes.h"
17 
18 namespace Marble
19 {
20 
21 class GeoDataPolygonPrivate : public GeoDataGeometryPrivate
22 {
23  public:
24  explicit GeoDataPolygonPrivate( TessellationFlags f )
25  : m_dirtyBox( true ),
26  m_tessellationFlags( f )
27  {
28  }
29 
30  GeoDataPolygonPrivate()
31  : m_dirtyBox( true )
32  {
33  }
34 
35  virtual GeoDataGeometryPrivate* copy()
36  {
37  GeoDataPolygonPrivate* copy = new GeoDataPolygonPrivate;
38  *copy = *this;
39  return copy;
40  }
41 
42  virtual const char* nodeType() const
43  {
44  return GeoDataTypes::GeoDataPolygonType;
45  }
46 
47  virtual EnumGeometryId geometryId() const
48  {
49  return GeoDataPolygonId;
50  }
51 
52  GeoDataLinearRing outer;
53  QVector<GeoDataLinearRing> inner;
54  bool m_dirtyBox; // tells whether there have been changes to the
55  // GeoDataPoints since the LatLonAltBox has
56  // been calculated. Saves performance.
57  TessellationFlags m_tessellationFlags;
58 };
59 
60 } // namespace Marble
61 
62 #endif
Marble::GeoDataLinearRing
A LinearRing that allows to store a closed, contiguous set of line segments.
Definition: GeoDataLinearRing.h:68
Marble::GeoDataTypes::GeoDataPolygonType
const char * GeoDataPolygonType
Definition: GeoDataTypes.cpp:69
GeoDataGeometry_p.h
Marble::GeoDataPolygonPrivate::m_dirtyBox
bool m_dirtyBox
Definition: GeoDataPolygon_p.h:54
Marble::GeoDataPolygonPrivate::GeoDataPolygonPrivate
GeoDataPolygonPrivate(TessellationFlags f)
Definition: GeoDataPolygon_p.h:24
Marble::GeoDataGeometryPrivate
Definition: GeoDataGeometry_p.h:25
Marble::GeoDataPolygonPrivate::m_tessellationFlags
TessellationFlags m_tessellationFlags
Definition: GeoDataPolygon_p.h:57
Marble::GeoDataPolygonPrivate::GeoDataPolygonPrivate
GeoDataPolygonPrivate()
Definition: GeoDataPolygon_p.h:30
Marble::GeoDataPolygonPrivate
Definition: GeoDataPolygon_p.h:21
Marble::GeoDataPolygonPrivate::geometryId
virtual EnumGeometryId geometryId() const
Definition: GeoDataPolygon_p.h:47
QVector
Marble::GeoDataPolygonPrivate::copy
virtual GeoDataGeometryPrivate * copy()
Definition: GeoDataPolygon_p.h:35
Marble::GeoDataPolygonPrivate::nodeType
virtual const char * nodeType() const
Definition: GeoDataPolygon_p.h:42
Marble::EnumGeometryId
EnumGeometryId
Definition: Serializable.h:40
Marble::GeoDataPolygonPrivate::outer
GeoDataLinearRing outer
Definition: GeoDataPolygon_p.h:52
GeoDataTypes.h
Marble::GeoDataPolygonPrivate::inner
QVector< GeoDataLinearRing > inner
Definition: GeoDataPolygon_p.h:53
Marble::GeoDataPolygonId
Definition: Serializable.h:45
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