• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • graphicsitem
GeoPhotoGraphicsItem.h
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 //
10 
11 #ifndef MARBLE_GEOPHOTOGRAPHICSITEM_H
12 #define MARBLE_GEOPHOTOGRAPHICSITEM_H
13 
14 #include "GeoDataPoint.h"
15 #include "GeoGraphicsItem.h"
16 #include "marble_export.h"
17 
18 #include <QImage>
19 
20 namespace Marble
21 {
22 
23 class MARBLE_EXPORT GeoPhotoGraphicsItem : public GeoGraphicsItem
24 {
25 public:
26  explicit GeoPhotoGraphicsItem( const GeoDataFeature *feature );
27 
28  void setPoint( const GeoDataPoint& point );
29 
30  GeoDataPoint point() const;
31 
32  void setPhoto( const QImage &photo );
33 
34  QImage photo() const;
35 
36  void setPhotoFile( const QString &filename );
37 
38  QString photoPath() const;
39 
40  virtual void paint( GeoPainter* painter, const ViewportParams *viewport );
41 
42  virtual const GeoDataLatLonAltBox& latLonAltBox() const;
43 
44 protected:
45  GeoDataPoint m_point;
46 
47  QImage m_photo;
48 
49  QString m_photoPath;
50 };
51 
52 }
53 
54 #endif
Marble::GeoDataPoint
A Geometry object representing a 3d point.
Definition: GeoDataPoint.h:47
Marble::GeoPhotoGraphicsItem::m_photo
QImage m_photo
Definition: GeoPhotoGraphicsItem.h:47
Marble::GeoPainter
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
Marble::GeoGraphicsItem
Definition: GeoGraphicsItem.h:30
Marble::GeoPhotoGraphicsItem::m_point
GeoDataPoint m_point
Definition: GeoPhotoGraphicsItem.h:45
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
QString
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
QImage
GeoGraphicsItem.h
Marble::GeoPhotoGraphicsItem
Definition: GeoPhotoGraphicsItem.h:23
GeoDataPoint.h
marble_export.h
Marble::GeoDataFeature
A base class for all geodata features.
Definition: GeoDataFeature.h:57
Marble::GeoPhotoGraphicsItem::m_photoPath
QString m_photoPath
Definition: GeoPhotoGraphicsItem.h:49
Marble::GeoDataLatLonAltBox
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 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
  • 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