• 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
GeoDataImagePyramid.cpp
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 2013 Mohammed Nafees <nafees.technocool@gmail.com>
9 //
10 
11 #include "GeoDataImagePyramid.h"
12 
13 #include "GeoDataTypes.h"
14 
15 namespace Marble
16 {
17 
18 class GeoDataImagePyramidPrivate
19 {
20 public:
21  GeoDataImagePyramidPrivate();
22 
23  int m_tileSize;
24  int m_maxWidth;
25  int m_maxHeight;
26  GeoDataImagePyramid::GridOrigin m_gridOrigin;
27 };
28 
29 GeoDataImagePyramidPrivate::GeoDataImagePyramidPrivate() :
30  m_tileSize( 256 ),
31  m_maxWidth(),
32  m_maxHeight(),
33  m_gridOrigin()
34 {
35  // nothing to do
36 }
37 
38 GeoDataImagePyramid::GeoDataImagePyramid() : d( new GeoDataImagePyramidPrivate )
39 {
40  // nothing to do
41 }
42 
43 GeoDataImagePyramid::GeoDataImagePyramid( const Marble::GeoDataImagePyramid &other ) :
44  GeoDataObject(), d( new GeoDataImagePyramidPrivate( *other.d ) )
45 {
46  // nothing to do
47 }
48 
49 GeoDataImagePyramid &GeoDataImagePyramid::operator=( const GeoDataImagePyramid &other )
50 {
51  GeoDataObject::operator=( other );
52  *d = *other.d;
53  return *this;
54 }
55 
56 bool GeoDataImagePyramid::operator==( const GeoDataImagePyramid& other )
57 {
58  return equals(other) &&
59  d->m_tileSize == other.d->m_tileSize &&
60  d->m_maxWidth == other.d->m_maxWidth &&
61  d->m_maxHeight == other.d->m_maxHeight &&
62  d->m_gridOrigin == other.d->m_gridOrigin;
63 }
64 
65 bool GeoDataImagePyramid::operator!=( const GeoDataImagePyramid& other )
66 {
67  return !this->operator==(other);
68 }
69 
70 GeoDataImagePyramid::~GeoDataImagePyramid()
71 {
72  delete d;
73 }
74 
75 const char *GeoDataImagePyramid::nodeType() const
76 {
77  return GeoDataTypes::GeoDataImagePyramidType;
78 }
79 
80 int GeoDataImagePyramid::tileSize() const
81 {
82  return d->m_tileSize;
83 }
84 
85 void GeoDataImagePyramid::setTileSize( const int &tileSize )
86 {
87  d->m_tileSize = tileSize;
88 }
89 
90 int GeoDataImagePyramid::maxWidth() const
91 {
92  return d->m_maxWidth;
93 }
94 
95 void GeoDataImagePyramid::setMaxWidth( const int &maxWidth )
96 {
97  d->m_maxWidth = maxWidth;
98 }
99 
100 int GeoDataImagePyramid::maxHeight() const
101 {
102  return d->m_maxHeight;
103 }
104 
105 void GeoDataImagePyramid::setMaxHeight( const int &maxHeight )
106 {
107  d->m_maxHeight = maxHeight;
108 }
109 
110 GeoDataImagePyramid::GridOrigin GeoDataImagePyramid::gridOrigin() const
111 {
112  return d->m_gridOrigin;
113 }
114 
115 void GeoDataImagePyramid::setGridOrigin( const GridOrigin &gridOrigin )
116 {
117  d->m_gridOrigin = gridOrigin;
118 }
119 
120 }
Marble::GeoDataImagePyramid
Definition: GeoDataImagePyramid.h:22
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
Marble::GeoDataObject::equals
virtual bool equals(const GeoDataObject &other) const
Compares the value of id and targetId of the two objects.
Definition: GeoDataObject.cpp:126
Marble::GeoDataImagePyramid::gridOrigin
GridOrigin gridOrigin() const
Definition: GeoDataImagePyramid.cpp:110
GeoDataImagePyramid.h
Marble::GeoDataImagePyramid::maxHeight
int maxHeight() const
Definition: GeoDataImagePyramid.cpp:100
Marble::GeoDataImagePyramid::nodeType
virtual const char * nodeType() const
Provides type information for downcasting a GeoNode.
Definition: GeoDataImagePyramid.cpp:75
Marble::GeoDataImagePyramid::maxWidth
int maxWidth() const
Definition: GeoDataImagePyramid.cpp:90
Marble::GeoDataImagePyramid::GeoDataImagePyramid
GeoDataImagePyramid()
Definition: GeoDataImagePyramid.cpp:38
Marble::GeoDataImagePyramid::operator=
GeoDataImagePyramid & operator=(const GeoDataImagePyramid &other)
Definition: GeoDataImagePyramid.cpp:49
Marble::GeoDataImagePyramid::operator!=
bool operator!=(const GeoDataImagePyramid &other)
Definition: GeoDataImagePyramid.cpp:65
Marble::GeoDataObject::operator=
GeoDataObject & operator=(const GeoDataObject &)
Definition: GeoDataObject.cpp:54
Marble::GeoDataImagePyramid::setGridOrigin
void setGridOrigin(const GridOrigin &gridOrigin)
Definition: GeoDataImagePyramid.cpp:115
Marble::GeoDataImagePyramid::setTileSize
void setTileSize(const int &tileSize)
Definition: GeoDataImagePyramid.cpp:85
Marble::GeoDataImagePyramid::GridOrigin
GridOrigin
Definition: GeoDataImagePyramid.h:38
Marble::GeoDataTypes::GeoDataImagePyramidType
const char * GeoDataImagePyramidType
Definition: GeoDataTypes.cpp:92
GeoDataTypes.h
Marble::GeoDataImagePyramid::~GeoDataImagePyramid
~GeoDataImagePyramid()
Definition: GeoDataImagePyramid.cpp:70
Marble::GeoDataImagePyramid::operator==
bool operator==(const GeoDataImagePyramid &other)
Definition: GeoDataImagePyramid.cpp:56
Marble::GeoDataImagePyramid::setMaxWidth
void setMaxWidth(const int &maxWidth)
Definition: GeoDataImagePyramid.cpp:95
Marble::GeoDataImagePyramid::setMaxHeight
void setMaxHeight(const int &maxHeight)
Definition: GeoDataImagePyramid.cpp:105
Marble::GeoDataImagePyramid::tileSize
int tileSize() const
Definition: GeoDataImagePyramid.cpp:80
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