• 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
GeoDataFlyTo.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 //
10 
11 #include "GeoDataFlyTo.h"
12 #include "GeoDataTypes.h"
13 #include "GeoDataAbstractView.h"
14 
15 namespace Marble {
16 
17 class GeoDataFlyToPrivate
18 {
19 public:
20  double m_duration;
21 
22  GeoDataFlyTo::FlyToMode m_flyToMode;
23 
24  GeoDataAbstractView* m_view;
25 
26  GeoDataFlyToPrivate();
27 };
28 
29 GeoDataFlyToPrivate::GeoDataFlyToPrivate() :
30  m_duration( 0.0 ), m_flyToMode(), m_view( 0 )
31 {
32 
33 }
34 
35 GeoDataFlyTo::GeoDataFlyTo() : d( new GeoDataFlyToPrivate )
36 {
37 
38 }
39 
40 GeoDataFlyTo::GeoDataFlyTo( const Marble::GeoDataFlyTo &other ) :
41  GeoDataObject( other ), d( new GeoDataFlyToPrivate( *other.d ) )
42 {
43 
44 }
45 
46 GeoDataFlyTo &GeoDataFlyTo::operator=( const GeoDataFlyTo &other )
47 {
48  GeoDataObject::operator=( other );
49  *d = *other.d;
50  return *this;
51 }
52 
53 GeoDataFlyTo::~GeoDataFlyTo()
54 {
55  delete d;
56 }
57 
58 const char *GeoDataFlyTo::nodeType() const
59 {
60  return GeoDataTypes::GeoDataFlyToType;
61 }
62 
63 const GeoDataAbstractView *GeoDataFlyTo::view() const
64 {
65  return d->m_view;
66 }
67 
68 GeoDataAbstractView *GeoDataFlyTo::view()
69 {
70  return d->m_view;
71 }
72 
73 void GeoDataFlyTo::setView( GeoDataAbstractView *view )
74 {
75  d->m_view = view;
76 }
77 
78 double GeoDataFlyTo::duration() const
79 {
80  return d->m_duration;
81 }
82 
83 void GeoDataFlyTo::setDuration( double duration )
84 {
85  d->m_duration = duration;
86 }
87 
88 GeoDataFlyTo::FlyToMode GeoDataFlyTo::flyToMode() const
89 {
90  return d->m_flyToMode;
91 }
92 
93 void GeoDataFlyTo::setFlyToMode( const GeoDataFlyTo::FlyToMode flyToMode )
94 {
95  d->m_flyToMode = flyToMode;
96 }
97 
98 }
Marble::GeoDataAbstractView
Definition: GeoDataAbstractView.h:28
GeoDataAbstractView.h
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
Marble::GeoDataFlyTo::FlyToMode
FlyToMode
Definition: GeoDataFlyTo.h:25
Marble::GeoDataFlyTo::operator=
GeoDataFlyTo & operator=(const GeoDataFlyTo &other)
Definition: GeoDataFlyTo.cpp:46
Marble::GeoDataFlyTo::setDuration
void setDuration(double duration)
Definition: GeoDataFlyTo.cpp:83
Marble::GeoDataFlyTo
Definition: GeoDataFlyTo.h:22
Marble::GeoDataTypes::GeoDataFlyToType
const char * GeoDataFlyToType
Definition: GeoDataTypes.cpp:37
Marble::GeoDataFlyTo::setView
void setView(GeoDataAbstractView *view)
Definition: GeoDataFlyTo.cpp:73
Marble::GeoDataFlyTo::flyToMode
FlyToMode flyToMode() const
Definition: GeoDataFlyTo.cpp:88
Marble::GeoDataFlyTo::GeoDataFlyTo
GeoDataFlyTo()
Definition: GeoDataFlyTo.cpp:35
Marble::GeoDataFlyTo::nodeType
virtual const char * nodeType() const
Provides type information for downcasting a GeoNode.
Definition: GeoDataFlyTo.cpp:58
Marble::GeoDataFlyTo::duration
double duration() const
Definition: GeoDataFlyTo.cpp:78
GeoDataFlyTo.h
Marble::GeoDataObject::operator=
GeoDataObject & operator=(const GeoDataObject &)
Definition: GeoDataObject.cpp:54
Marble::GeoDataFlyTo::setFlyToMode
void setFlyToMode(const FlyToMode flyToMode)
Definition: GeoDataFlyTo.cpp:93
GeoDataTypes.h
Marble::GeoDataFlyTo::view
const GeoDataAbstractView * view() const
Definition: GeoDataFlyTo.cpp:63
Marble::GeoDataFlyTo::~GeoDataFlyTo
~GeoDataFlyTo()
Definition: GeoDataFlyTo.cpp:53
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