• 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
SunLocator.h
Go to the documentation of this file.
1 // Copyright 2007-2009 David Roberts <dvdr18@gmail.com>
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library. If not, see <http://www.gnu.org/licenses/>.
15 
16 #ifndef MARBLE_SUNLOCATOR_H
17 #define MARBLE_SUNLOCATOR_H
18 
19 
20 #include <QObject>
21 #include <QString>
22 #include <QColor>
23 
24 //FIXME: This class shouldn't be exposed but is needed by the worldclock plasmoid
25 #include "marble_export.h"
26 
27 namespace Marble
28 {
29 class MarbleClock;
30 class SunLocatorPrivate;
31 class Planet;
32 
33 class MARBLE_EXPORT SunLocator : public QObject
34 {
35  Q_OBJECT
36 
37  public:
38  SunLocator( const MarbleClock *clock, const Planet *planet );
39  virtual ~SunLocator();
40 
41  qreal shading(qreal lon, qreal a, qreal c) const;
42  void shadePixel(QRgb& pixcol, qreal shade) const;
43  void shadePixelComposite(QRgb& pixcol, const QRgb& dpixcol, qreal shade) const;
44 
45  void setPlanet( const Planet *planet );
46 
47  qreal getLon() const;
48  qreal getLat() const;
49 
50  public Q_SLOTS:
51  void update();
52 
53  Q_SIGNALS:
54  void positionChanged( qreal lon, qreal lat );
55 
56  private:
57  void updatePosition();
58 
59  SunLocatorPrivate * const d;
60 
61  Q_DISABLE_COPY( SunLocator )
62 };
63 
64 }
65 
66 #endif
QObject
Marble::SunLocator
Definition: SunLocator.h:33
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
Marble::Planet
Definition: Planet.h:25
marble_export.h
Marble::MarbleClock
Definition: MarbleClock.h:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:53 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