• 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
GeoDataLineString_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_GEODATALINESTRINGPRIVATE_H
12 #define MARBLE_GEODATALINESTRINGPRIVATE_H
13 
14 #include "GeoDataGeometry_p.h"
15 
16 #include "GeoDataTypes.h"
17 
18 namespace Marble
19 {
20 
21 class GeoDataLineStringPrivate : public GeoDataGeometryPrivate
22 {
23  public:
24  explicit GeoDataLineStringPrivate( TessellationFlags f )
25  : m_rangeCorrected( 0 ),
26  m_dirtyRange( true ),
27  m_dirtyBox( true ),
28  m_tessellationFlags( f )
29  {
30  }
31 
32  GeoDataLineStringPrivate()
33  : m_rangeCorrected( 0 ),
34  m_dirtyRange( true ),
35  m_dirtyBox( true )
36  {
37  }
38 
39  ~GeoDataLineStringPrivate()
40  {
41  delete m_rangeCorrected;
42  }
43 
44  GeoDataLineStringPrivate& operator=( const GeoDataLineStringPrivate &other)
45  {
46  GeoDataGeometryPrivate::operator=( other );
47  m_vector = other.m_vector;
48  m_rangeCorrected = 0;
49  m_dirtyRange = true;
50  m_dirtyBox = other.m_dirtyBox;
51  m_tessellationFlags = other.m_tessellationFlags;
52  return *this;
53  }
54 
55 
56  virtual GeoDataGeometryPrivate* copy()
57  {
58  GeoDataLineStringPrivate* copy = new GeoDataLineStringPrivate;
59  *copy = *this;
60  return copy;
61  }
62 
63  virtual const char* nodeType() const
64  {
65  return GeoDataTypes::GeoDataLineStringType;
66  }
67 
68  virtual EnumGeometryId geometryId() const
69  {
70  return GeoDataLineStringId;
71  }
72 
73  void toPoleCorrected( const GeoDataLineString & q, GeoDataLineString & poleCorrected ) const;
74 
75  void toDateLineCorrected( const GeoDataLineString & q,
76  QVector<GeoDataLineString*> & lineStrings ) const;
77 
78  void interpolateDateLine( const GeoDataCoordinates & previousCoords,
79  const GeoDataCoordinates & currentCoords,
80  GeoDataCoordinates & previousAtDateline,
81  GeoDataCoordinates & currentAtDateline,
82  TessellationFlags f ) const;
83 
84  GeoDataCoordinates findDateLine( const GeoDataCoordinates & previousCoords,
85  const GeoDataCoordinates & currentCoords,
86  int recursionCounter ) const;
87 
88  QVector<GeoDataCoordinates> m_vector;
89 
90  mutable GeoDataLineString* m_rangeCorrected;
91  mutable bool m_dirtyRange;
92 
93  mutable bool m_dirtyBox; // tells whether there have been changes to the
94  // GeoDataPoints since the LatLonAltBox has
95  // been calculated. Saves performance.
96  TessellationFlags m_tessellationFlags;
97 };
98 
99 } // namespace Marble
100 
101 #endif
Marble::GeoDataLineStringPrivate::GeoDataLineStringPrivate
GeoDataLineStringPrivate(TessellationFlags f)
Definition: GeoDataLineString_p.h:24
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::GeoDataLineStringPrivate::~GeoDataLineStringPrivate
~GeoDataLineStringPrivate()
Definition: GeoDataLineString_p.h:39
Marble::GeoDataLineStringPrivate::GeoDataLineStringPrivate
GeoDataLineStringPrivate()
Definition: GeoDataLineString_p.h:32
Marble::GeoDataLineStringPrivate::interpolateDateLine
void interpolateDateLine(const GeoDataCoordinates &previousCoords, const GeoDataCoordinates &currentCoords, GeoDataCoordinates &previousAtDateline, GeoDataCoordinates &currentAtDateline, TessellationFlags f) const
Definition: GeoDataLineString.cpp:59
Marble::GeoDataLineStringPrivate::m_dirtyRange
bool m_dirtyRange
Definition: GeoDataLineString_p.h:91
Marble::GeoDataLineStringPrivate::m_dirtyBox
bool m_dirtyBox
Definition: GeoDataLineString_p.h:93
GeoDataGeometry_p.h
Marble::GeoDataLineStringPrivate::toPoleCorrected
void toPoleCorrected(const GeoDataLineString &q, GeoDataLineString &poleCorrected) const
Definition: GeoDataLineString.cpp:415
Marble::GeoDataLineStringPrivate::m_tessellationFlags
TessellationFlags m_tessellationFlags
Definition: GeoDataLineString_p.h:96
Marble::GeoDataGeometryPrivate
Definition: GeoDataGeometry_p.h:25
Marble::GeoDataLineStringPrivate::copy
virtual GeoDataGeometryPrivate * copy()
Definition: GeoDataLineString_p.h:56
Marble::GeoDataLineStringPrivate::geometryId
virtual EnumGeometryId geometryId() const
Definition: GeoDataLineString_p.h:68
Marble::GeoDataLineStringPrivate::m_vector
QVector< GeoDataCoordinates > m_vector
Definition: GeoDataLineString_p.h:88
Marble::GeoDataTypes::GeoDataLineStringType
const char * GeoDataLineStringType
Definition: GeoDataTypes.cpp:53
Marble::GeoDataLineString
A LineString that allows to store a contiguous set of line segments.
Definition: GeoDataLineString.h:75
Marble::GeoDataLineStringPrivate::m_rangeCorrected
GeoDataLineString * m_rangeCorrected
Definition: GeoDataLineString_p.h:90
Marble::GeoDataGeometryPrivate::operator=
GeoDataGeometryPrivate & operator=(const GeoDataGeometryPrivate &other)
Definition: GeoDataGeometry_p.h:47
Marble::GeoDataLineStringPrivate
Definition: GeoDataLineString_p.h:21
QVector
Marble::GeoDataLineStringPrivate::toDateLineCorrected
void toDateLineCorrected(const GeoDataLineString &q, QVector< GeoDataLineString * > &lineStrings) const
Definition: GeoDataLineString.cpp:481
Marble::EnumGeometryId
EnumGeometryId
Definition: Serializable.h:40
Marble::GeoDataLineStringPrivate::findDateLine
GeoDataCoordinates findDateLine(const GeoDataCoordinates &previousCoords, const GeoDataCoordinates &currentCoords, int recursionCounter) const
Definition: GeoDataLineString.cpp:90
Marble::GeoDataLineStringPrivate::nodeType
virtual const char * nodeType() const
Definition: GeoDataLineString_p.h:63
GeoDataTypes.h
Marble::GeoDataLineStringPrivate::operator=
GeoDataLineStringPrivate & operator=(const GeoDataLineStringPrivate &other)
Definition: GeoDataLineString_p.h:44
Marble::GeoDataLineStringId
Definition: Serializable.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