• 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
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 GeoDataImagePyramid::~GeoDataImagePyramid()
57 {
58  delete d;
59 }
60 
61 const char *GeoDataImagePyramid::nodeType() const
62 {
63  return GeoDataTypes::GeoDataImagePyramidType;
64 }
65 
66 int GeoDataImagePyramid::tileSize() const
67 {
68  return d->m_tileSize;
69 }
70 
71 void GeoDataImagePyramid::setTileSize( const int &tileSize )
72 {
73  d->m_tileSize = tileSize;
74 }
75 
76 int GeoDataImagePyramid::maxWidth() const
77 {
78  return d->m_maxWidth;
79 }
80 
81 void GeoDataImagePyramid::setMaxWidth( const int &maxWidth )
82 {
83  d->m_maxWidth = maxWidth;
84 }
85 
86 int GeoDataImagePyramid::maxHeight() const
87 {
88  return d->m_maxHeight;
89 }
90 
91 void GeoDataImagePyramid::setMaxHeight( const int &maxHeight )
92 {
93  d->m_maxHeight = maxHeight;
94 }
95 
96 GeoDataImagePyramid::GridOrigin GeoDataImagePyramid::gridOrigin() const
97 {
98  return d->m_gridOrigin;
99 }
100 
101 void GeoDataImagePyramid::setGridOrigin( const GridOrigin &gridOrigin )
102 {
103  d->m_gridOrigin = gridOrigin;
104 }
105 
106 }
Marble::GeoDataImagePyramid
Definition: GeoDataImagePyramid.h:22
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
Marble::GeoDataImagePyramid::gridOrigin
GridOrigin gridOrigin() const
Definition: GeoDataImagePyramid.cpp:96
GeoDataImagePyramid.h
Marble::GeoDataImagePyramid::maxHeight
int maxHeight() const
Definition: GeoDataImagePyramid.cpp:86
Marble::GeoDataImagePyramid::nodeType
virtual const char * nodeType() const
Provides type information for downcasting a GeoNode.
Definition: GeoDataImagePyramid.cpp:61
Marble::GeoDataImagePyramid::maxWidth
int maxWidth() const
Definition: GeoDataImagePyramid.cpp:76
Marble::GeoDataImagePyramid::GeoDataImagePyramid
GeoDataImagePyramid()
Definition: GeoDataImagePyramid.cpp:38
Marble::GeoDataImagePyramid::operator=
GeoDataImagePyramid & operator=(const GeoDataImagePyramid &other)
Definition: GeoDataImagePyramid.cpp:49
Marble::GeoDataObject::operator=
GeoDataObject & operator=(const GeoDataObject &)
Definition: GeoDataObject.cpp:54
Marble::GeoDataImagePyramid::setGridOrigin
void setGridOrigin(const GridOrigin &gridOrigin)
Definition: GeoDataImagePyramid.cpp:101
Marble::GeoDataImagePyramid::setTileSize
void setTileSize(const int &tileSize)
Definition: GeoDataImagePyramid.cpp:71
Marble::GeoDataImagePyramid::GridOrigin
GridOrigin
Definition: GeoDataImagePyramid.h:36
Marble::GeoDataTypes::GeoDataImagePyramidType
const char * GeoDataImagePyramidType
Definition: GeoDataTypes.cpp:83
GeoDataTypes.h
Marble::GeoDataImagePyramid::~GeoDataImagePyramid
~GeoDataImagePyramid()
Definition: GeoDataImagePyramid.cpp:56
Marble::GeoDataImagePyramid::setMaxWidth
void setMaxWidth(const int &maxWidth)
Definition: GeoDataImagePyramid.cpp:81
Marble::GeoDataImagePyramid::setMaxHeight
void setMaxHeight(const int &maxHeight)
Definition: GeoDataImagePyramid.cpp:91
Marble::GeoDataImagePyramid::tileSize
int tileSize() const
Definition: GeoDataImagePyramid.cpp:66
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 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