• 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
GeoDataScale.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 Mayank Madan <maddiemadan@gmail.com>
9 // Sanjiban Bairagya <sanjiban22393@gmail.com>
10 //
11 
12 #include "GeoDataScale.h"
13 #include "GeoDataTypes.h"
14 
15 namespace Marble {
16 
17 class GeoDataScalePrivate
18 {
19 public:
20  double m_x;
21 
22  double m_y;
23 
24  double m_z;
25 
26  GeoDataScalePrivate();
27 };
28 
29 GeoDataScalePrivate::GeoDataScalePrivate() :
30  m_x(1), m_y(1), m_z(1)
31 {
32  // nothing to do
33 }
34 
35 GeoDataScale::GeoDataScale() : d( new GeoDataScalePrivate )
36 {
37  // nothing to do
38 }
39 
40 GeoDataScale::GeoDataScale( const Marble::GeoDataScale &other ) :
41  GeoDataObject( other ), d( new GeoDataScalePrivate( *other.d ) )
42 {
43  // nothing to do
44 }
45 
46 GeoDataScale &GeoDataScale::operator=( const GeoDataScale &other )
47 {
48  GeoDataObject::operator=( other );
49  *d = *other.d;
50  return *this;
51 }
52 
53 GeoDataScale::~GeoDataScale()
54 {
55  delete d;
56 }
57 
58 const char *GeoDataScale::nodeType() const
59 {
60  return GeoDataTypes::GeoDataScaleType;
61 }
62 
63 double GeoDataScale::x() const
64 {
65  return d->m_x;
66 }
67 
68 void GeoDataScale::setX( double x )
69 {
70  d->m_x = x;
71 }
72 
73 double GeoDataScale::y() const
74 {
75  return d->m_y;
76 }
77 
78 void GeoDataScale::setY( double y )
79 {
80  d->m_y = y;
81 }
82 
83 double GeoDataScale::z() const
84 {
85  return d->m_z;
86 }
87 
88 void GeoDataScale::setZ( double z )
89 {
90  d->m_z = z;
91 }
92 
93 }
Marble::GeoDataScale::setX
void setX(double x)
Definition: GeoDataScale.cpp:68
Marble::GeoDataScale::operator=
GeoDataScale & operator=(const GeoDataScale &other)
Definition: GeoDataScale.cpp:46
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
Marble::GeoDataScale::z
double z() const
Definition: GeoDataScale.cpp:83
Marble::GeoDataScale::y
double y() const
Definition: GeoDataScale.cpp:73
Marble::GeoDataTypes::GeoDataScaleType
const char * GeoDataScaleType
Definition: GeoDataTypes.cpp:78
Marble::GeoDataScale::GeoDataScale
GeoDataScale()
Definition: GeoDataScale.cpp:35
Marble::GeoDataScale::setY
void setY(double y)
Definition: GeoDataScale.cpp:78
Marble::GeoDataScale::x
double x() const
Definition: GeoDataScale.cpp:63
Marble::GeoDataScale
Definition: GeoDataScale.h:22
Marble::GeoDataScale::nodeType
virtual const char * nodeType() const
Provides type information for downcasting a GeoNode.
Definition: GeoDataScale.cpp:58
Marble::GeoDataObject::operator=
GeoDataObject & operator=(const GeoDataObject &)
Definition: GeoDataObject.cpp:54
GeoDataScale.h
Marble::GeoDataScale::~GeoDataScale
~GeoDataScale()
Definition: GeoDataScale.cpp:53
GeoDataTypes.h
Marble::GeoDataScale::setZ
void setZ(double z)
Definition: GeoDataScale.cpp:88
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