• 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
GeoDataPolygon.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 2008-2009 Patrick Spendrin <ps_ml@gmx.de>
9 // Copyright 2008 Inge Wallin <inge@lysator.liu.se>
10 //
11 
12 
13 #ifndef MARBLE_GEODATAPOLYGON_H
14 #define MARBLE_GEODATAPOLYGON_H
15 
16 #include <QVector>
17 
18 #include "MarbleGlobal.h"
19 
20 #include "geodata_export.h"
21 #include "GeoDataGeometry.h"
22 #include "GeoDataLinearRing.h"
23 #include "GeoDataLatLonAltBox.h"
24 
25 namespace Marble
26 {
27 
28 class GeoDataPolygonPrivate;
29 
81 class GEODATA_EXPORT GeoDataPolygon : public GeoDataGeometry
82 {
83  public:
87  explicit GeoDataPolygon( TessellationFlags f = Tessellate );
88 
89 
93  explicit GeoDataPolygon( const GeoDataGeometry &other );
94 
95 
99  virtual ~GeoDataPolygon();
100 
101 
107  virtual bool isClosed() const;
108 
109 
116  bool tessellate() const;
117 
118 
127  void setTessellate( bool tessellate );
128 
129 
133  TessellationFlags tessellationFlags() const;
134 
135 
139  void setTessellationFlags( TessellationFlags f );
140 
141 
147  virtual const GeoDataLatLonAltBox& latLonAltBox() const;
148 
154  GeoDataLinearRing &outerBoundary();
155 
161  const GeoDataLinearRing &outerBoundary() const;
162 
168  void setOuterBoundary( const GeoDataLinearRing& boundary );
169 
175  QVector<GeoDataLinearRing>& innerBoundaries();
176 
182  const QVector<GeoDataLinearRing>& innerBoundaries() const;
183 
189  void appendInnerBoundary( const GeoDataLinearRing& boundary );
190 
197  virtual bool contains( const GeoDataCoordinates &coordinates ) const;
198 
199  // Serialization
204  virtual void pack( QDataStream& stream ) const;
205 
206 
211  virtual void unpack( QDataStream& stream );
212 
213 
214  protected:
215  GeoDataPolygonPrivate *p() const;
216 };
217 
218 class GEODATA_EXPORT GeoDataOuterBoundary : public GeoDataPolygon
219 {
220 };
221 
222 class GEODATA_EXPORT GeoDataInnerBoundary : public GeoDataPolygon
223 {
224 };
225 
226 }
227 
228 #endif // GEODATAPOLYGON_H
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::GeoDataLinearRing
A LinearRing that allows to store a closed, contiguous set of line segments.
Definition: GeoDataLinearRing.h:68
Marble::GeoDataGeometry
A base class for all geodata features.
Definition: GeoDataGeometry.h:47
Marble::GeoDataPolygon
A polygon that can have "holes".
Definition: GeoDataPolygon.h:81
Marble::GeoDataOuterBoundary
Definition: GeoDataPolygon.h:218
MarbleGlobal.h
Marble::GeoDataPolygonPrivate
Definition: GeoDataPolygon_p.h:21
Marble::GeoDataInnerBoundary
Definition: GeoDataPolygon.h:222
GeoDataLinearRing.h
GeoDataLatLonAltBox.h
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
GeoDataGeometry.h
Marble::Tessellate
Definition: MarbleGlobal.h:32
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