• 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
ScreenOverlayGraphicsItem.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 Mohammed Nafees <nafees.technocool@gmail.com>
9 // Copyright 2012 Dennis Nienhüser <earthwings@gentoo.org>
10 //
11 
12 #ifndef SCREENOVERLAYGRAPHICSITEM_H
13 #define SCREENOVERLAYGRAPHICSITEM_H
14 
15 #include "GeoDataScreenOverlay.h"
16 #include "GeoDataVec2.h"
17 #include "GeoPainter.h"
18 #include "ScreenGraphicsItem.h"
19 #include "marble_export.h"
20 
21 #include <QPixmap>
22 
23 namespace Marble {
24 
25 class MARBLE_EXPORT ScreenOverlayGraphicsItem : public ScreenGraphicsItem
26 {
27 public:
28  explicit ScreenOverlayGraphicsItem( const GeoDataScreenOverlay *screenOverlay );
29 
30  const GeoDataScreenOverlay* screenOverlay() const;
31 
32  void setProjection( const ViewportParams *viewport );
33 
34 protected:
35  virtual void paint( QPainter* painter );
36 
37 private:
38  static qreal pixelValue( GeoDataVec2::Unit unit, qreal screenSize, qreal imageSize, qreal value );
39 
40  const GeoDataScreenOverlay *m_screenOverlay;
41 
42  QPixmap m_pixmap;
43 };
44 
45 }
46 
47 #endif
Marble::ScreenOverlayGraphicsItem
Definition: ScreenOverlayGraphicsItem.h:25
Marble::GeoDataVec2::Unit
Unit
Definition: GeoDataVec2.h:25
Marble::GeoDataScreenOverlay
Definition: GeoDataScreenOverlay.h:22
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
QPainter
GeoPainter.h
GeoDataScreenOverlay.h
ScreenGraphicsItem.h
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
QPixmap
Marble::imageSize
const QSize imageSize(28, 28)
marble_export.h
Marble::ScreenGraphicsItem
Definition: ScreenGraphicsItem.h:30
GeoDataVec2.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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