• 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
GeoDataPhotoOverlay.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 2012 Dennis Nienhüser <earthwings@gentoo.org>
9 // Copyright 2013 Mohammed Nafees <nafees.technocool@gmail.com>
10 //
11 
12 #include "GeoDataPhotoOverlay.h"
13 #include "GeoDataTypes.h"
14 
15 namespace Marble {
16 
17 class GeoDataPhotoOverlayPrivate
18 {
19 public:
20  GeoDataPhotoOverlayPrivate();
21 
22  qreal m_rotation;
23  GeoDataViewVolume m_viewVolume;
24  GeoDataImagePyramid m_imagePyramid;
25  GeoDataPoint m_point;
26  GeoDataPhotoOverlay::Shape m_shape;
27 };
28 
29 GeoDataPhotoOverlayPrivate::GeoDataPhotoOverlayPrivate() :
30  m_rotation( 0.0 ),
31  m_viewVolume(),
32  m_imagePyramid(),
33  m_point(),
34  m_shape( GeoDataPhotoOverlay::Rectangle )
35 {
36  // nothing to do
37 }
38 
39 GeoDataPhotoOverlay::GeoDataPhotoOverlay() : d( new GeoDataPhotoOverlayPrivate )
40 {
41  // nothing to do
42 }
43 
44 GeoDataPhotoOverlay::GeoDataPhotoOverlay( const Marble::GeoDataPhotoOverlay &other ) :
45  GeoDataOverlay( other ), d( new GeoDataPhotoOverlayPrivate( *other.d ) )
46 {
47  // nothing to do
48 }
49 
50 GeoDataPhotoOverlay &GeoDataPhotoOverlay::operator=( const GeoDataPhotoOverlay &other )
51 {
52  *d = *other.d;
53  return *this;
54 }
55 
56 GeoDataPhotoOverlay::~GeoDataPhotoOverlay()
57 {
58  delete d;
59 }
60 
61 const char *GeoDataPhotoOverlay::nodeType() const
62 {
63  return GeoDataTypes::GeoDataPhotoOverlayType;
64 }
65 
66 qreal GeoDataPhotoOverlay::rotation() const
67 {
68  return d->m_rotation;
69 }
70 
71 void GeoDataPhotoOverlay::setRotation( const qreal &rotation )
72 {
73  d->m_rotation = rotation;
74 }
75 
76 GeoDataViewVolume& GeoDataPhotoOverlay::viewVolume()
77 {
78  return d->m_viewVolume;
79 }
80 
81 const GeoDataViewVolume& GeoDataPhotoOverlay::viewVolume() const
82 {
83  return d->m_viewVolume;
84 }
85 
86 void GeoDataPhotoOverlay::setViewVolume( const GeoDataViewVolume &viewVolume )
87 {
88  d->m_viewVolume = viewVolume;
89 }
90 
91 GeoDataImagePyramid& GeoDataPhotoOverlay::imagePyramid()
92 {
93  return d->m_imagePyramid;
94 }
95 
96 const GeoDataImagePyramid& GeoDataPhotoOverlay::imagePyramid() const
97 {
98  return d->m_imagePyramid;
99 }
100 
101 void GeoDataPhotoOverlay::setImagePyramid( const GeoDataImagePyramid &imagePyramid )
102 {
103  d->m_imagePyramid = imagePyramid;
104 }
105 
106 GeoDataPoint& GeoDataPhotoOverlay::point() const
107 {
108  return d->m_point;
109 }
110 
111 void GeoDataPhotoOverlay::setPoint( const GeoDataPoint &point )
112 {
113  d->m_point = point;
114 }
115 
116 GeoDataPhotoOverlay::Shape& GeoDataPhotoOverlay::shape()
117 {
118  return d->m_shape;
119 }
120 
121 const GeoDataPhotoOverlay::Shape& GeoDataPhotoOverlay::shape() const
122 {
123  return d->m_shape;
124 }
125 
126 void GeoDataPhotoOverlay::setShape( const Shape &shape )
127 {
128  d->m_shape = shape;
129 }
130 
131 }
Marble::GeoDataPoint
A Geometry object representing a 3d point.
Definition: GeoDataPoint.h:47
Marble::GeoDataPhotoOverlay::imagePyramid
GeoDataImagePyramid & imagePyramid()
Definition: GeoDataPhotoOverlay.cpp:91
Marble::GeoDataPhotoOverlay::setShape
void setShape(const Shape &shape)
Definition: GeoDataPhotoOverlay.cpp:126
Marble::GeoDataImagePyramid
Definition: GeoDataImagePyramid.h:22
Marble::GeoDataPhotoOverlay::shape
Shape & shape()
Definition: GeoDataPhotoOverlay.cpp:116
Marble::GeoDataPhotoOverlay::~GeoDataPhotoOverlay
~GeoDataPhotoOverlay()
Definition: GeoDataPhotoOverlay.cpp:56
Marble::GeoDataPhotoOverlay::setPoint
void setPoint(const GeoDataPoint &point)
Definition: GeoDataPhotoOverlay.cpp:111
Marble::GeoDataPhotoOverlay::viewVolume
GeoDataViewVolume & viewVolume()
Definition: GeoDataPhotoOverlay.cpp:76
Marble::GeoDataPhotoOverlay::point
GeoDataPoint & point() const
Definition: GeoDataPhotoOverlay.cpp:106
Marble::GeoDataViewVolume
Definition: GeoDataViewVolume.h:22
Rectangle
Marble::GeoDataPhotoOverlay
Definition: GeoDataPhotoOverlay.h:27
Marble::GeoDataPhotoOverlay::rotation
qreal rotation() const
Definition: GeoDataPhotoOverlay.cpp:66
Marble::GeoDataPhotoOverlay::Shape
Shape
Definition: GeoDataPhotoOverlay.h:41
Marble::GeoDataPhotoOverlay::setViewVolume
void setViewVolume(const GeoDataViewVolume &viewVolume)
Definition: GeoDataPhotoOverlay.cpp:86
Marble::GeoDataPhotoOverlay::GeoDataPhotoOverlay
GeoDataPhotoOverlay()
Definition: GeoDataPhotoOverlay.cpp:39
Marble::GeoDataOverlay
Definition: GeoDataOverlay.h:27
Marble::GeoDataPhotoOverlay::setRotation
void setRotation(const qreal &rotation)
Definition: GeoDataPhotoOverlay.cpp:71
Marble::GeoDataPhotoOverlay::operator=
GeoDataPhotoOverlay & operator=(const GeoDataPhotoOverlay &other)
Definition: GeoDataPhotoOverlay.cpp:50
Marble::GeoDataPhotoOverlay::nodeType
virtual const char * nodeType() const
Provides type information for downcasting a GeoNode.
Definition: GeoDataPhotoOverlay.cpp:61
GeoDataTypes.h
GeoDataPhotoOverlay.h
Marble::GeoDataPhotoOverlay::setImagePyramid
void setImagePyramid(const GeoDataImagePyramid &imagePyramid)
Definition: GeoDataPhotoOverlay.cpp:101
Marble::GeoDataTypes::GeoDataPhotoOverlayType
const char * GeoDataPhotoOverlayType
Definition: GeoDataTypes.cpp:61
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