• 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
GeoDataOrientation.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 Sanjiban Bairagya <sanjiban22393@gmail.com>
9 //
10 
11 #include "GeoDataOrientation.h"
12 #include "GeoDataTypes.h"
13 
14 namespace Marble {
15 
16 class GeoDataOrientationPrivate
17 {
18 public:
19  double m_heading;
20 
21  double m_tilt;
22 
23  double m_roll;
24 
25  GeoDataOrientationPrivate();
26 };
27 
28 GeoDataOrientationPrivate::GeoDataOrientationPrivate() :
29  m_heading(0), m_tilt(0), m_roll(0)
30 {
31  // nothing to do
32 }
33 
34 GeoDataOrientation::GeoDataOrientation() : d( new GeoDataOrientationPrivate )
35 {
36  // nothing to do
37 }
38 
39 GeoDataOrientation::GeoDataOrientation( const Marble::GeoDataOrientation &other ) :
40  GeoDataObject( other ), d( new GeoDataOrientationPrivate( *other.d ) )
41 {
42  // nothing to do
43 }
44 
45 GeoDataOrientation &GeoDataOrientation::operator=( const GeoDataOrientation &other )
46 {
47  GeoDataObject::operator=( other );
48  *d = *other.d;
49  return *this;
50 }
51 
52 GeoDataOrientation::~GeoDataOrientation()
53 {
54  delete d;
55 }
56 
57 const char *GeoDataOrientation::nodeType() const
58 {
59  return GeoDataTypes::GeoDataOrientationType;
60 }
61 
62 double GeoDataOrientation::heading() const
63 {
64  return d->m_heading;
65 }
66 
67 void GeoDataOrientation::setHeading( double heading )
68 {
69  d->m_heading = heading;
70 }
71 
72 double GeoDataOrientation::tilt() const
73 {
74  return d->m_tilt;
75 }
76 
77 void GeoDataOrientation::setTilt( double tilt )
78 {
79  d->m_tilt = tilt;
80 }
81 
82 double GeoDataOrientation::roll() const
83 {
84  return d->m_roll;
85 }
86 
87 void GeoDataOrientation::setRoll( double roll )
88 {
89  d->m_roll = roll;
90 }
91 
92 }
Marble::GeoDataTypes::GeoDataOrientationType
const char * GeoDataOrientationType
Definition: GeoDataTypes.cpp:59
Marble::GeoDataOrientation::nodeType
virtual const char * nodeType() const
Provides type information for downcasting a GeoNode.
Definition: GeoDataOrientation.cpp:57
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
Marble::GeoDataOrientation::setTilt
void setTilt(double tilt)
Definition: GeoDataOrientation.cpp:77
Marble::GeoDataOrientation::setRoll
void setRoll(double roll)
Definition: GeoDataOrientation.cpp:87
Marble::GeoDataOrientation::setHeading
void setHeading(double heading)
Definition: GeoDataOrientation.cpp:67
Marble::GeoDataOrientation::d
GeoDataOrientationPrivate *const d
Definition: GeoDataOrientation.h:57
Marble::GeoDataOrientation::operator=
GeoDataOrientation & operator=(const GeoDataOrientation &other)
Definition: GeoDataOrientation.cpp:45
Marble::GeoDataOrientation::GeoDataOrientation
GeoDataOrientation()
Definition: GeoDataOrientation.cpp:34
Marble::GeoDataObject::operator=
GeoDataObject & operator=(const GeoDataObject &)
Definition: GeoDataObject.cpp:54
Marble::GeoDataOrientation::roll
double roll() const
Returns the rotation of the camera in degrees around the Z axis.
Definition: GeoDataOrientation.cpp:82
Marble::GeoDataOrientation::tilt
double tilt() const
Returns the rotation of the camera in degrees, around the X axis.
Definition: GeoDataOrientation.cpp:72
Marble::GeoDataOrientation::heading
double heading() const
Returns by how much degrees the camera has been rotated about the normal.
Definition: GeoDataOrientation.cpp:62
Marble::GeoDataOrientation
Definition: GeoDataOrientation.h:21
GeoDataTypes.h
GeoDataOrientation.h
Marble::GeoDataOrientation::~GeoDataOrientation
~GeoDataOrientation()
Definition: GeoDataOrientation.cpp:52
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