• 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
  • blendings
SunLightBlending.h
Go to the documentation of this file.
1 // Copyright 2010 Jens-Michael Hoffmann <jmho@c-xx.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_SUN_LIGHT_BLENDING_H
17 #define MARBLE_SUN_LIGHT_BLENDING_H
18 
19 #include <QtGlobal>
20 #include <QColor>
21 
22 #include "Blending.h"
23 
24 namespace Marble
25 {
26 
27 class SunLocator;
28 
29 class SunLightBlending: public Blending
30 {
31  public:
32  explicit SunLightBlending( const SunLocator * sunLocator );
33  virtual ~SunLightBlending();
34  virtual void blend( QImage * const bottom, TextureTile const * const top ) const;
35 
36  void setLevelZeroLayout( int levelZeroColumns, int levelZeroRows );
37 
38  private:
39  static int maxDivisor( int maximum, int fullLength );
40  const SunLocator * const m_sunLocator;
41  int m_levelZeroColumns;
42  int m_levelZeroRows;
43 };
44 
45 }
46 
47 #endif
Marble::SunLightBlending
Definition: SunLightBlending.h:29
Marble::Blending
Definition: Blending.h:25
Marble::TextureTile
A class that resembles an image tile (extends Tile).
Definition: TextureTile.h:60
Marble::SunLocator
Definition: SunLocator.h:33
Marble::SunLightBlending::SunLightBlending
SunLightBlending(const SunLocator *sunLocator)
Definition: SunLightBlending.cpp:31
Marble::SunLightBlending::~SunLightBlending
virtual ~SunLightBlending()
Definition: SunLightBlending.cpp:39
QImage
Blending.h
Marble::SunLightBlending::blend
virtual void blend(QImage *const bottom, TextureTile const *const top) const
Definition: SunLightBlending.cpp:43
Marble::SunLightBlending::setLevelZeroLayout
void setLevelZeroLayout(int levelZeroColumns, int levelZeroRows)
Definition: SunLightBlending.cpp:132
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 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